MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0223ms) 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.4670ms) 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.5288ms) 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.2999ms) 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 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.2141ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7632ms) 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.4239ms) 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.4289ms) 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.2561ms) 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.2761ms) 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.2069ms) 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.3171ms) 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.2992ms) 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.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52728f1387f6430c0b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"164f312b82f4f50f374e225234e4f98fef11c8d7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"DizE8npYbteZkRprz2o4", "api_key"=>"665c42de70b5714cbd4e7c3dc08e9d9f28cfaf1f", "updated_at"=>2013-10-31 17:10:43 UTC, "created_at"=>2013-10-31 17:10:43 UTC}] flags=[] (0.1731ms) 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} (336.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52728f1487f6430c0b000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:10:43 UTC, "updated_at"=>2013-10-31 17:10:44 UTC, "memberships"=>[{"_id"=>"52728f1487f6430c0b000003", "role"=>"admin", "account_id"=>"52728f1387f6430c0b000001"}]}] flags=[] (0.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f1487f6430c0b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b000002", "_id"=>{"$ne"=>"52728f1487f6430c0b000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52728f1487f6430c0b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52728f1487f6430c0b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.2146ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b000004"]}}, "$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"=>["52728f1487f6430c0b000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f1487f6430c0b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b000002", "_id"=>{"$ne"=>"52728f1487f6430c0b000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.5451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f1487f6430c0b000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52728f1487f6430c0b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (2.1679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f1487f6430c0b000005"]}} 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"=>"52728f1487f6430c0b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52728f1487f6430c0b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52728f1487f6430c0b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52728f1487f6430c0b000007", "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC, "entries_custom_fields"=>[{"_id"=>"52728f1487f6430c0b000007", "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.3967ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52728f1487f6430c0b000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52728f1487f6430c0b000008", "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", "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f1487f6430c0b000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52728f1487f6430c0b000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4332ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000006"]}}} (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f1487f6430c0b000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f1487f6430c0b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f1487f6430c0b000006", "content_type_id"=>"52728f1487f6430c0b000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52728f1487f6430c0b000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f1487f6430c0b00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.0370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f1487f6430c0b000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7631ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000006"]}}} (1.5130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000006"]}}} (1.7753ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f1487f6430c0b00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f1487f6430c0b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f1487f6430c0b000006", "content_type_id"=>"52728f1487f6430c0b000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52728f1487f6430c0b000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.2351ms) 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 (2.2027ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f1487f6430c0b000002", "parent_id"=>"52728f1487f6430c0b000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.0310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000004", "site_id"=>"52728f1487f6430c0b000002", "_id"=>{"$ne"=>"52728f1487f6430c0b00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52728f1487f6430c0b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f1487f6430c0b00000b", "parent_ids"=>["52728f1487f6430c0b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52728f1487f6430c0b000002", "parent_id"=>"52728f1487f6430c0b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b00000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b00000b"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["52728f1487f6430c0b00000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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 (2.4350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f1487f6430c0b000002", "parent_id"=>"52728f1487f6430c0b000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000004", "site_id"=>"52728f1487f6430c0b000002", "_id"=>{"$ne"=>"52728f1487f6430c0b00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.2788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000004", "site_id"=>"52728f1487f6430c0b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.2540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52728f1487f6430c0b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f1487f6430c0b00000c", "parent_ids"=>["52728f1487f6430c0b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52728f1487f6430c0b000002", "parent_id"=>"52728f1487f6430c0b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b00000c"]}}, "$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"=>"52728f1487f6430c0b00000c"}, "$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"=>["52728f1487f6430c0b00000c"]}} 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"=>{"site_id"=>"52728f1487f6430c0b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.3019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52728f1487f6430c0b000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5509ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52728f1487f6430c0b000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:10:44 UTC}} flags=[] (1.6327ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7002ms) 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.2910ms) 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.8759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52728f1487f6430c0b00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:10:43 UTC, "updated_at"=>2013-10-31 17:10:44 UTC, "memberships"=>[{"_id"=>"52728f1487f6430c0b00000e", "role"=>"admin", "account_id"=>"52728f1387f6430c0b000001"}]}] flags=[] (2.3918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f1487f6430c0b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.9622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b00000d", "_id"=>{"$ne"=>"52728f1487f6430c0b00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52728f1487f6430c0b00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52728f1487f6430c0b00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b00000d", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f1487f6430c0b00000f"]}} 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={"site_id"=>"52728f1487f6430c0b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.9658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b00000d", "_id"=>{"$ne"=>"52728f1487f6430c0b000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f1487f6430c0b000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52728f1487f6430c0b00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (1.5821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b00000d", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f1487f6430c0b000010"]}} 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={"site_id"=>"52728f1487f6430c0b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b00000d", "_id"=>{"$ne"=>"52728f1487f6430c0b000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f1487f6430c0b00000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f1487f6430c0b000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52728f1487f6430c0b00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b00000d", "template_dependencies.en"=>{"$in"=>["52728f1487f6430c0b000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f1487f6430c0b000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f1487f6430c0b000011"]}} 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=locomotive_content_types selector={"site_id"=>"52728f1487f6430c0b00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.0749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52728f1487f6430c0b000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52728f1487f6430c0b00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52728f1487f6430c0b000013", "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC, "entries_custom_fields"=>[{"_id"=>"52728f1487f6430c0b000013", "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.7359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f1487f6430c0b000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f1487f6430c0b000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0602ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f1487f6430c0b000012"]}}} (0.5920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f1487f6430c0b000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f1487f6430c0b000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f1487f6430c0b000012", "content_type_id"=>"52728f1487f6430c0b000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52728f1487f6430c0b00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:10:44 UTC, "created_at"=>2013-10-31 17:10:44 UTC}] flags=[] (0.1712ms) Started GET "/locomotive" for 127.0.0.1 at 2013-10-31 18:10: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.8972ms) 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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["52728f1387f6430c0b000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4530ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (22.8ms) Completed 200 OK in 48.9ms (Views: 42.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-10-31 18:10:46 +0100 Compiled jquery.js (5ms) (pid 7367) Compiled locomotive/not_logged_in.js (179ms) (pid 7367) Served asset /locomotive/not_logged_in.js - 200 OK (195ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-10-31 18:10:46 +0100 Compiled locomotive/blueprint/screen.css (0ms) (pid 7367) Compiled locomotive/font-awesome.css (356ms) (pid 7367) Compiled locomotive/not_logged_in/installation.css (1535ms) (pid 7367) Compiled locomotive/not_logged_in/layout.css (1142ms) (pid 7367) Compiled locomotive/not_logged_in.css (3068ms) (pid 7367) Served asset /locomotive/not_logged_in.css - 200 OK (3079ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-10-31 18:10:49 +0100 Served asset /locomotive/background/body.png - 200 OK (7ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-10-31 18:10:49 +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.8919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["52728f1387f6430c0b000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9851ms) 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.7429ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"52728f1387f6430c0b000001"} update={"$set"=>{"remember_created_at"=>2013-10-31 17:10:49 UTC, "updated_at"=>2013-10-31 17:10:49 UTC}} flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"52728f1387f6430c0b000001"} update={"$set"=>{"last_sign_in_at"=>2013-10-31 17:10:49 UTC, "current_sign_in_at"=>2013-10-31 17:10:49 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-10-31 17:10:49 UTC}} flags=[] (0.2160ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 34.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-10-31 18: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 (1.0080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"52728f1387f6430c0b000001"}, "$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"=>["52728f1387f6430c0b000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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, "target_klass_name"=>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} (1.3008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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, "target_klass_name"=>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} (1.7669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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.0571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"52728f1487f6430c0b000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9489ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (37.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (13.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (73.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"52728f1387f6430c0b000001", :role=>:admin}}}} (0.7453ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_head.html.haml (15.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"52728f1387f6430c0b000001"}} (0.5798ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/global_actions/show.html.haml (2.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"52728f1387f6430c0b000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8698ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (6.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (29.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (2.5ms) Completed 200 OK in 185.4ms (Views: 151.7ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-10-31 18:10:50 +0100 Compiled jquery-ui.js (7ms) (pid 7367) Compiled jquery_ujs.js (0ms) (pid 7367) Compiled underscore.js (1ms) (pid 7367) Compiled backbone.js (1ms) (pid 7367) Compiled codemirror.js (5ms) (pid 7367) Compiled tinymce/preinit.js (1ms) (pid 7367) Compiled tinymce/jquery.tinymce.js (0ms) (pid 7367) Compiled tinymce/tiny_mce.js (3ms) (pid 7367) Compiled tinymce-jquery.js (35ms) (pid 7367) Compiled select2/select2.js (2ms) (pid 7367) Compiled codemirror/addons/mode/overlay.js (0ms) (pid 7367) Compiled codemirror/modes/css.js (0ms) (pid 7367) Compiled codemirror/modes/javascript.js (0ms) (pid 7367) Compiled codemirror/modes/xml.js (0ms) (pid 7367) Compiled codemirror/modes/htmlmixed.js (0ms) (pid 7367) Compiled locomotive/ICanHandlebarz.js (0ms) (pid 7367) Compiled locomotive/backbone.modelbinding.js (0ms) (pid 7367) Compiled locomotive/backbone.sync.js (0ms) (pid 7367) Compiled locomotive/cmd.js (0ms) (pid 7367) Compiled locomotive/cookies.js (0ms) (pid 7367) Compiled locomotive/datepicker_i18n.js (8ms) (pid 7367) Compiled locomotive/editable_field.js (0ms) (pid 7367) Compiled locomotive/form_submit_notification.js (0ms) (pid 7367) Compiled locomotive/growl.js (0ms) (pid 7367) Compiled locomotive/handlebars.js (1ms) (pid 7367) Compiled locomotive/jquery-ui-timepicker-addon.js (1ms) (pid 7367) Compiled locomotive/liquid_mode.js (0ms) (pid 7367) Compiled locomotive/menu_toggler.js (0ms) (pid 7367) Compiled locomotive/resize.js (0ms) (pid 7367) Compiled locomotive/slugify.js (0ms) (pid 7367) Compiled locomotive/smartupdater.js (0ms) (pid 7367) Compiled locomotive/subscribe.js (0ms) (pid 7367) Compiled locomotive/tag-it.min.js (0ms) (pid 7367) Compiled locomotive/toggle.js (0ms) (pid 7367) Compiled locomotive/vendor.js (96ms) (pid 7367) Compiled locomotive/utils/aloha_settings.js (92ms) (pid 7367) Compiled locomotive/utils/core_ext.js (0ms) (pid 7367) Compiled locomotive/utils/growl.js (0ms) (pid 7367) Compiled locomotive/utils/handlebar_helpers.js (69ms) (pid 7367) Compiled locomotive/utils/tinymce_settings.js (77ms) (pid 7367) Compiled locomotive/models/account.js (75ms) (pid 7367) Compiled locomotive/models/content_asset.js (77ms) (pid 7367) Compiled locomotive/models/content_entry.js (135ms) (pid 7367) Compiled locomotive/models/content_type.js (100ms) (pid 7367) Compiled locomotive/models/custom_field.js (109ms) (pid 7367) Compiled locomotive/models/custom_field_select_option.js (92ms) (pid 7367) Compiled locomotive/models/domain.js (62ms) (pid 7367) Compiled locomotive/models/editable_element.js (107ms) (pid 7367) Compiled locomotive/models/membership.js (99ms) (pid 7367) Compiled locomotive/models/page.js (109ms) (pid 7367) Compiled locomotive/models/site.js (120ms) (pid 7367) Compiled locomotive/models/snippet.js (76ms) (pid 7367) Compiled locomotive/models/theme_asset.js (82ms) (pid 7367) Compiled locomotive/models/translation.js (76ms) (pid 7367) Compiled locomotive/views/application_view.js (198ms) (pid 7367) Compiled locomotive/views/content_assets/picker_item_view.js (96ms) (pid 7367) Compiled locomotive/views/shared/asset_picker_view.js (164ms) (pid 7367) Compiled locomotive/views/content_assets/picker_view.js (298ms) (pid 7367) Compiled locomotive/views/shared/form_view.js (255ms) (pid 7367) Compiled locomotive/views/content_entries/_form_view.js (550ms) (pid 7367) Compiled locomotive/views/content_entries/_popup_form_view.js (176ms) (pid 7367) Compiled locomotive/views/content_entries/edit_view.js (86ms) (pid 7367) Compiled locomotive/views/content_entries/index_view.js (93ms) (pid 7367) Compiled locomotive/views/content_entries/new_view.js (74ms) (pid 7367) Compiled locomotive/views/content_types/_form_view.js (150ms) (pid 7367) Compiled locomotive/views/content_types/custom_field_entry_view.js (188ms) (pid 7367) Compiled locomotive/views/content_types/custom_fields_view.js (132ms) (pid 7367) Compiled locomotive/views/content_types/edit_view.js (80ms) (pid 7367) Compiled locomotive/views/content_types/new_view.js (81ms) (pid 7367) Compiled locomotive/views/content_types/select_options_view.js (123ms) (pid 7367) Compiled locomotive/views/sites/domains_view.js (124ms) (pid 7367) Compiled locomotive/views/current_site/edit_view.js (268ms) (pid 7367) Compiled locomotive/views/editable_elements/control_view.js (87ms) (pid 7367) Compiled locomotive/views/editable_elements/edit_all_view.js (135ms) (pid 7367) Compiled locomotive/views/editable_elements/file_view.js (142ms) (pid 7367) Compiled locomotive/views/editable_elements/text_view.js (145ms) (pid 7367) Compiled locomotive/views/inline_editor/application_view.js (189ms) (pid 7367) Compiled locomotive/views/inline_editor/toolbar_view.js (214ms) (pid 7367) Compiled locomotive/views/my_account/edit_view.js (89ms) (pid 7367) Compiled locomotive/views/pages/_form_view.js (262ms) (pid 7367) Compiled locomotive/views/pages/edit_view.js (112ms) (pid 7367) Compiled locomotive/views/pages/index_view.js (94ms) (pid 7367) Compiled locomotive/views/pages/list_view.js (98ms) (pid 7367) Compiled locomotive/views/pages/new_view.js (73ms) (pid 7367) Compiled locomotive/views/shared/fields/belongs_to_view.js (118ms) (pid 7367) Compiled locomotive/views/shared/fields/file_view.js (160ms) (pid 7367) Compiled locomotive/views/shared/fields/has_many_view.js (163ms) (pid 7367) Compiled locomotive/views/shared/fields/many_to_many_view.js (185ms) (pid 7367) Compiled locomotive/views/shared/fields/select_view.js (201ms) (pid 7367) Compiled locomotive/views/shared/list_item_view.js (73ms) (pid 7367) Compiled locomotive/views/shared/list_view.js (96ms) (pid 7367) Compiled locomotive/views/sites/domain_entry_view.js (83ms) (pid 7367) Compiled locomotive/views/sites/membership_entry_view.js (83ms) (pid 7367) Compiled locomotive/views/sites/memberships_view.js (88ms) (pid 7367) Compiled locomotive/views/sites/new_view.js (92ms) (pid 7367) Compiled locomotive/views/snippets/_form_view.js (159ms) (pid 7367) Compiled locomotive/views/snippets/edit_view.js (83ms) (pid 7367) Compiled locomotive/views/snippets/list_item_view.js (74ms) (pid 7367) Compiled locomotive/views/snippets/list_view.js (97ms) (pid 7367) Compiled locomotive/views/snippets/new_view.js (101ms) (pid 7367) Compiled locomotive/views/theme_assets/_form_view.js (212ms) (pid 7367) Compiled locomotive/views/theme_assets/edit_view.js (115ms) (pid 7367) Compiled locomotive/views/theme_assets/image_picker_view.js (197ms) (pid 7367) Compiled locomotive/views/theme_assets/index_view.js (196ms) (pid 7367) Compiled locomotive/views/theme_assets/list_item_view.js (99ms) (pid 7367) Compiled locomotive/views/theme_assets/list_view.js (85ms) (pid 7367) Compiled locomotive/views/theme_assets/new_view.js (73ms) (pid 7367) Compiled locomotive/views/translations/_form_view.js (97ms) (pid 7367) Compiled locomotive/views/translations/edit_view.js (101ms) (pid 7367) Compiled locomotive/views/translations/new_view.js (93ms) (pid 7367) Compiled locomotive/application.js (9424ms) (pid 7367) Compiled locomotive.js (9721ms) (pid 7367) Served asset /locomotive.js - 200 OK (9754ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-10-31 18:10:59 +0100 Compiled locomotive/jquery/ui.css (333ms) (pid 7367) Compiled locomotive/jquery.tagit.css (0ms) (pid 7367) Compiled formtastic.css (0ms) (pid 7367) Compiled select2/select2.css (199ms) (pid 7367) Compiled codemirror.css (0ms) (pid 7367) Compiled codemirror/themes/neat.css (0ms) (pid 7367) Compiled locomotive/toggle.css (275ms) (pid 7367) Compiled locomotive/liquid_mode.css (0ms) (pid 7367) Compiled locomotive/shared/_helpers.css (503ms) (pid 7367) Compiled locomotive/shared/_picker.css (809ms) (pid 7367) Compiled locomotive/shared/common.css (503ms) (pid 7367) Compiled locomotive/shared/content_locale_picker.css (737ms) (pid 7367) Compiled locomotive/shared/growl.css (81ms) (pid 7367) Compiled locomotive/backoffice/_box.css (1109ms) (pid 7367) Compiled locomotive/backoffice/_buttons.css (403ms) (pid 7367) Compiled locomotive/backoffice/application.css (2346ms) (pid 7367) Compiled locomotive/backoffice/codemirror_changes.css (396ms) (pid 7367) Compiled locomotive/backoffice/content_assets.css (1220ms) (pid 7367) Compiled locomotive/backoffice/datepicker.css (430ms) (pid 7367) Compiled locomotive/backoffice/dialog_changes.css (1076ms) (pid 7367) Compiled locomotive/backoffice/editable_elements.css (1844ms) (pid 7367) Compiled locomotive/backoffice/formtastic_changes.css (1364ms) (pid 7367) Compiled locomotive/backoffice/layout.css (1073ms) (pid 7367) Compiled locomotive/backoffice/menu/sub.css (210ms) (pid 7367) WARNING: This version of the transform module has been deprecated and will be removed. on line 3 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss from line 5 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss Compiled locomotive/backoffice/menu/main.css (197ms) (pid 7367) Compiled locomotive/backoffice/menu/default.css (284ms) (pid 7367) Compiled locomotive/backoffice/menu.css (705ms) (pid 7367) Compiled locomotive/backoffice/menu/_colors.css (135ms) (pid 7367) Compiled locomotive/backoffice/menu/_helpers.css (3ms) (pid 7367) Compiled locomotive/backoffice/pagination.css (839ms) (pid 7367) Compiled locomotive/backoffice/sites_picker.css (713ms) (pid 7367) Compiled locomotive/backoffice/tagit_changes.css (321ms) (pid 7367) Compiled locomotive.css (17642ms) (pid 7367) Served asset /locomotive.css - 200 OK (17658ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-10-31 18:11:17 +0100 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2013-10-31 18:11:17 +0100 Served asset /locomotive/nocoffee.png - 200 OK (4ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2013-10-31 18:11:17 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (5ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-10-31 18:11:17 +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.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"52728f1387f6430c0b000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["52728f1387f6430c0b000001"]}} 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"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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, "target_klass_name"=>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} (1.1859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52728f1487f6430c0b000002"}, "$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.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"52728f1487f6430c0b000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6342ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (14.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52728f1487f6430c0b000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8349ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_select_templates.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_form.html.haml (54.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52728f1487f6430c0b000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5407ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/_form.html.haml (72.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_form_actions.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (100.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"52728f1387f6430c0b000001", :role=>:admin}}}} (0.5398ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"52728f1387f6430c0b000001"}} (0.5889ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"52728f1387f6430c0b000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6061ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (6.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 133.2ms (Views: 118.9ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-10-31 18:11:18 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (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.9568ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.9650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4307ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3449ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4319ms) 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.5279ms) 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.0300ms) 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.6649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52728f3687f6430c0b000016", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2b9970d6d0eb6f6ddd4efff7c8c6aefa06072379", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"cPnghVuFxz3F3fLRKo6m", "api_key"=>"8ee0212ec569ea1bed83434c5de55be1b0d6941a", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1559ms) 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.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52728f3687f6430c0b000017", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:10:43 UTC, "updated_at"=>2013-10-31 17:11:18 UTC, "memberships"=>[{"_id"=>"52728f3687f6430c0b000018", "role"=>"admin", "account_id"=>"52728f3687f6430c0b000016"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b000017", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000017", "_id"=>{"$ne"=>"52728f3687f6430c0b000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52728f3687f6430c0b000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52728f3687f6430c0b000017", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.3698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000019"]}} 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={"site_id"=>"52728f3687f6430c0b000017", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000017", "_id"=>{"$ne"=>"52728f3687f6430c0b00001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.2368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000017"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.2282ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b00001a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52728f3687f6430c0b000017", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b00001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b00001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b00001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52728f3687f6430c0b000017", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52728f3687f6430c0b00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52728f3687f6430c0b000017", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52728f3687f6430c0b00001c", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC, "entries_custom_fields"=>[{"_id"=>"52728f3687f6430c0b00001c", "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.3569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52728f3687f6430c0b00001b"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52728f3687f6430c0b00001d", "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", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}}} flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b00001e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b00001b", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}}} (0.5331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f3687f6430c0b00001e", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f3687f6430c0b00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f3687f6430c0b00001b", "content_type_id"=>"52728f3687f6430c0b00001b", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52728f3687f6430c0b000017", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b00001f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b00001b", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.4399ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}}} (2.4290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}}} (1.6682ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f3687f6430c0b00001f", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f3687f6430c0b00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f3687f6430c0b00001b", "content_type_id"=>"52728f3687f6430c0b00001b", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52728f3687f6430c0b000017", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2003ms) 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 (3.0570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b000017", "parent_id"=>"52728f3687f6430c0b000019", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000019", "site_id"=>"52728f3687f6430c0b000017", "_id"=>{"$ne"=>"52728f3687f6430c0b000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52728f3687f6430c0b000019"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6337ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000020", "parent_ids"=>["52728f3687f6430c0b000019"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52728f3687f6430c0b000017", "parent_id"=>"52728f3687f6430c0b000019", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000020"]}}, "$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"=>"52728f3687f6430c0b000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000020"]}} 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=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.3122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b000017", "parent_id"=>"52728f3687f6430c0b000019", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000019", "site_id"=>"52728f3687f6430c0b000017", "_id"=>{"$ne"=>"52728f3687f6430c0b000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000019", "site_id"=>"52728f3687f6430c0b000017"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52728f3687f6430c0b000019"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52728f3687f6430c0b000021", "parent_ids"=>["52728f3687f6430c0b000019"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52728f3687f6430c0b000017", "parent_id"=>"52728f3687f6430c0b000019", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000021"]}}, "$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"=>"52728f3687f6430c0b000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000021"]}} 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"=>"52728f3687f6430c0b000017", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.2171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52728f3687f6430c0b000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6718ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52728f3687f6430c0b000019"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:11:18 UTC}} flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) 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.3172ms) 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} (2.4159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52728f3687f6430c0b000022", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:10:43 UTC, "updated_at"=>2013-10-31 17:11:18 UTC, "memberships"=>[{"_id"=>"52728f3687f6430c0b000023", "role"=>"admin", "account_id"=>"52728f3687f6430c0b000016"}]}] flags=[] (1.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b000022", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000022", "_id"=>{"$ne"=>"52728f3687f6430c0b000024"}, "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"=>"52728f3687f6430c0b000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52728f3687f6430c0b000022", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000022", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000024"]}}, "$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"=>"52728f3687f6430c0b000024"}, "$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"=>["52728f3687f6430c0b000024"]}} 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"=>"52728f3687f6430c0b000022", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000022", "_id"=>{"$ne"=>"52728f3687f6430c0b000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000022"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52728f3687f6430c0b000022", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000022", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000025"]}} 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"=>"52728f3687f6430c0b000022", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000022", "_id"=>{"$ne"=>"52728f3687f6430c0b000026"}, "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"=>"52728f3687f6430c0b000022"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5224ms) 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.2377ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000026", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52728f3687f6430c0b000022", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000022", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000026"]}}, "$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"=>"52728f3687f6430c0b000026"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000026"]}} 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"=>"52728f3687f6430c0b000022", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52728f3687f6430c0b000027", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52728f3687f6430c0b000022", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52728f3687f6430c0b000028", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC, "entries_custom_fields"=>[{"_id"=>"52728f3687f6430c0b000028", "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.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b000029"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b000027"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (62.8459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b000027", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7252ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b000027"]}}} (0.5999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f3687f6430c0b000029", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f3687f6430c0b000027", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f3687f6430c0b000027", "content_type_id"=>"52728f3687f6430c0b000027", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52728f3687f6430c0b000022", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b00001e"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b00001f"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7869ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00001b"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52728f3687f6430c0b00001b"} update={"$set"=>{"updated_at"=>2013-10-31 17:11:18 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b00001b"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.4420ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:11: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.6928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) Rendered text template (0.0ms) Completed 200 OK in 8.1ms (Views: 2.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-10-31 18:11:18 +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.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000017", "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.6850ms) Completed 500 Internal Server Error in 5.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.6030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5229ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (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.2770ms) 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.3610ms) 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.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52728f3687f6430c0b00002a", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f154b1d8a4803a9f6ee666843a497535bfb5a41e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"c8yywwnx78HoYS6kPqqq", "api_key"=>"90d562823cd0812617b1e4924fd6f96bd13228e2", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1140ms) 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.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52728f3687f6430c0b00002b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:10:43 UTC, "updated_at"=>2013-10-31 17:11:18 UTC, "memberships"=>[{"_id"=>"52728f3687f6430c0b00002c", "role"=>"admin", "account_id"=>"52728f3687f6430c0b00002a"}]}] flags=[] (0.1717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b00002b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b00002b", "_id"=>{"$ne"=>"52728f3687f6430c0b00002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4172ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b00002d", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52728f3687f6430c0b00002b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b00002d"]}}, "$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"=>"52728f3687f6430c0b00002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b00002d"]}} 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"=>"52728f3687f6430c0b00002b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b00002b", "_id"=>{"$ne"=>"52728f3687f6430c0b00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b00002b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b00002e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52728f3687f6430c0b00002b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (1.6420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b00002e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b00002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b00002e"]}} 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"=>"52728f3687f6430c0b00002b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4368ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52728f3687f6430c0b00002f", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52728f3687f6430c0b00002b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52728f3687f6430c0b000030", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC, "entries_custom_fields"=>[{"_id"=>"52728f3687f6430c0b000030", "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.1888ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52728f3687f6430c0b00002f"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52728f3687f6430c0b000031", "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", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}}} flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b000032"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b00002f", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00002f"]}}} (0.5760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f3687f6430c0b000032", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f3687f6430c0b00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f3687f6430c0b00002f", "content_type_id"=>"52728f3687f6430c0b00002f", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52728f3687f6430c0b00002b", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b000033"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00002f"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b00002f", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.2079ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00002f"]}}} (1.6129ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00002f"]}}} (0.4072ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00002f"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f3687f6430c0b000033", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f3687f6430c0b00002f", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f3687f6430c0b00002f", "content_type_id"=>"52728f3687f6430c0b00002f", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52728f3687f6430c0b00002b", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2050ms) 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 (2.2290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b00002b", "parent_id"=>"52728f3687f6430c0b00002d", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b00002d", "site_id"=>"52728f3687f6430c0b00002b", "_id"=>{"$ne"=>"52728f3687f6430c0b000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.8280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52728f3687f6430c0b00002d"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000034", "parent_ids"=>["52728f3687f6430c0b00002d"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52728f3687f6430c0b00002b", "parent_id"=>"52728f3687f6430c0b00002d", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000034"]}}, "$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"=>"52728f3687f6430c0b000034"}, "$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"=>["52728f3687f6430c0b000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1092ms) 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 (2.1398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b00002b", "parent_id"=>"52728f3687f6430c0b00002d", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b00002d", "site_id"=>"52728f3687f6430c0b00002b", "_id"=>{"$ne"=>"52728f3687f6430c0b000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b00002d", "site_id"=>"52728f3687f6430c0b00002b"}, "$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"=>"52728f3687f6430c0b00002d"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000035", "parent_ids"=>["52728f3687f6430c0b00002d"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52728f3687f6430c0b00002b", "parent_id"=>"52728f3687f6430c0b00002d", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000035"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"52728f3687f6430c0b000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000035"]}} 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"=>{"site_id"=>"52728f3687f6430c0b00002b", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.2280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52728f3687f6430c0b00002b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7538ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52728f3687f6430c0b00002d"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:11:18 UTC}} flags=[] (1.5862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b00002d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) 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.7141ms) 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.6818ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52728f3687f6430c0b000036", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:10:43 UTC, "updated_at"=>2013-10-31 17:11:18 UTC, "memberships"=>[{"_id"=>"52728f3687f6430c0b000037", "role"=>"admin", "account_id"=>"52728f3687f6430c0b00002a"}]}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b000036", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000036", "_id"=>{"$ne"=>"52728f3687f6430c0b000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000038", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52728f3687f6430c0b000036", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000036", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000038"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000038"}, "$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"=>["52728f3687f6430c0b000038"]}} 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"=>"52728f3687f6430c0b000036", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.9309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000036", "_id"=>{"$ne"=>"52728f3687f6430c0b000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.1892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000036"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b000039", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52728f3687f6430c0b000036", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000036", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b000039"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4873ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52728f3687f6430c0b000039"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52728f3687f6430c0b000036", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52728f3687f6430c0b000036", "_id"=>{"$ne"=>"52728f3687f6430c0b00003a"}, "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"=>"52728f3687f6430c0b000036"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) 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.2949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52728f3687f6430c0b00003a", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52728f3687f6430c0b000036", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b000036", "template_dependencies.en"=>{"$in"=>["52728f3687f6430c0b00003a"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52728f3687f6430c0b00003a"}, "$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"=>["52728f3687f6430c0b00003a"]}} 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_content_types selector={"site_id"=>"52728f3687f6430c0b000036", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.1369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52728f3687f6430c0b00003b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52728f3687f6430c0b000036", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52728f3687f6430c0b00003c", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC, "entries_custom_fields"=>[{"_id"=>"52728f3687f6430c0b00003c", "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.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52728f3687f6430c0b00003d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00003b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.8432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52728f3687f6430c0b00003b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52728f3687f6430c0b00003b"]}}} (0.6700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52728f3687f6430c0b00003d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52728f3687f6430c0b00003b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52728f3687f6430c0b00003b", "content_type_id"=>"52728f3687f6430c0b00003b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52728f3687f6430c0b000036", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:11:18 UTC, "created_at"=>2013-10-31 17:11:18 UTC}] flags=[] (0.2208ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:11: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 (1.9400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7159ms) Rendered text template (0.0ms) Completed 200 OK in 8.6ms (Views: 0.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:11: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 (1.4119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52728f3687f6430c0b00002b", "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.5841ms) Completed 500 Internal Server Error in 5.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.5279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5050ms) 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.4110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3781ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0989ms) 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.5541ms) 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.5579ms) 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.3693ms) 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.2789ms) 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.1900ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4641ms) 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.3500ms) 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.6011ms) 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.8919ms) 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.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527290ad87f64384c4000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d28e23f73ae676c2b410941c032caee38643f70e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qPFouYAxZ5pYG3QFBapu", "api_key"=>"f76ec990b9fa33dca7620fca372e613b87af4efb", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.1962ms) 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.9589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527290ad87f64384c4000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:17:32 UTC, "updated_at"=>2013-10-31 17:17:33 UTC, "memberships"=>[{"_id"=>"527290ad87f64384c4000003", "role"=>"admin", "account_id"=>"527290ad87f64384c4000001"}]}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290ad87f64384c4000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290ad87f64384c4000002", "_id"=>{"$ne"=>"527290ad87f64384c4000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"527290ad87f64384c4000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527290ad87f64384c4000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527290ad87f64384c4000004"}, "$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"=>{"site_id"=>"527290ad87f64384c4000002", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c4000004"]}}, "$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"=>["527290ad87f64384c4000004"]}} 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=locomotive_pages selector={"site_id"=>"527290ad87f64384c4000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290ad87f64384c4000002", "_id"=>{"$ne"=>"527290ad87f64384c4000005"}, "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"=>"527290ad87f64384c4000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5074ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290ad87f64384c4000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527290ad87f64384c4000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c4000002", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c4000005"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"527290ad87f64384c4000005"}, "$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"=>["527290ad87f64384c4000005"]}} 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_content_types selector={"site_id"=>"527290ad87f64384c4000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5074ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527290ad87f64384c4000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527290ad87f64384c4000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527290ad87f64384c4000007", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC, "entries_custom_fields"=>[{"_id"=>"527290ad87f64384c4000007", "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.2532ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527290ad87f64384c4000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527290ad87f64384c4000008", "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", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}}} flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290ad87f64384c4000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527290ad87f64384c4000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5357ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000006"]}}} (0.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527290ad87f64384c4000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527290ad87f64384c4000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527290ad87f64384c4000006", "content_type_id"=>"527290ad87f64384c4000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527290ad87f64384c4000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290ad87f64384c400000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527290ad87f64384c4000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000006"]}}} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000006"]}}} (0.3119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527290ad87f64384c400000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527290ad87f64384c4000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527290ad87f64384c4000006", "content_type_id"=>"527290ad87f64384c4000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527290ad87f64384c4000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.2050ms) 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.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290ad87f64384c4000002", "parent_id"=>"527290ad87f64384c4000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"527290ad87f64384c4000004", "site_id"=>"527290ad87f64384c4000002", "_id"=>{"$ne"=>"527290ad87f64384c400000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527290ad87f64384c4000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"527290ad87f64384c400000b", "parent_ids"=>["527290ad87f64384c4000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527290ad87f64384c4000002", "parent_id"=>"527290ad87f64384c4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c4000002", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c400000b"]}}, "$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"=>"527290ad87f64384c400000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527290ad87f64384c400000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290ad87f64384c4000002", "parent_id"=>"527290ad87f64384c4000004", "$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"=>"527290ad87f64384c4000004", "site_id"=>"527290ad87f64384c4000002", "_id"=>{"$ne"=>"527290ad87f64384c400000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527290ad87f64384c4000004", "site_id"=>"527290ad87f64384c4000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"527290ad87f64384c4000004"}]}]}, "$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"=>"527290ad87f64384c400000c", "parent_ids"=>["527290ad87f64384c4000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527290ad87f64384c4000002", "parent_id"=>"527290ad87f64384c4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c4000002", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c400000c"]}}, "$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"=>"527290ad87f64384c400000c"}, "$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"=>["527290ad87f64384c400000c"]}} 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"=>"527290ad87f64384c4000002", "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_sites selector={"$query"=>{"_id"=>"527290ad87f64384c4000002"}, "$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"=>"527290ad87f64384c4000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:17:33 UTC}} flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c4000002", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c4000004"]}}, "$orderby"=>{"position"=>1}} 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_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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3552ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527290ad87f64384c400000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:17:32 UTC, "updated_at"=>2013-10-31 17:17:33 UTC, "memberships"=>[{"_id"=>"527290ad87f64384c400000e", "role"=>"admin", "account_id"=>"527290ad87f64384c4000001"}]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290ad87f64384c400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527290ad87f64384c400000d", "_id"=>{"$ne"=>"527290ad87f64384c400000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527290ad87f64384c400000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527290ad87f64384c400000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c400000d", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c400000f"]}}, "$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"=>"527290ad87f64384c400000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527290ad87f64384c400000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290ad87f64384c400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290ad87f64384c400000d", "_id"=>{"$ne"=>"527290ad87f64384c4000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6196ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290ad87f64384c400000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290ad87f64384c4000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527290ad87f64384c400000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c400000d", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c4000010"]}}, "$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"=>"527290ad87f64384c4000010"}, "$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"=>["527290ad87f64384c4000010"]}} 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"=>"527290ad87f64384c400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290ad87f64384c400000d", "_id"=>{"$ne"=>"527290ad87f64384c4000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290ad87f64384c400000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290ad87f64384c4000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527290ad87f64384c400000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c400000d", "template_dependencies.en"=>{"$in"=>["527290ad87f64384c4000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527290ad87f64384c4000011"}, "$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"=>["527290ad87f64384c4000011"]}} 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"=>"527290ad87f64384c400000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527290ad87f64384c4000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527290ad87f64384c400000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527290ad87f64384c4000013", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC, "entries_custom_fields"=>[{"_id"=>"527290ad87f64384c4000013", "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.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290ad87f64384c4000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527290ad87f64384c4000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290ad87f64384c4000012"]}}} (0.5181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527290ad87f64384c4000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527290ad87f64384c4000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527290ad87f64384c4000012", "content_type_id"=>"527290ad87f64384c4000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527290ad87f64384c400000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:17:33 UTC, "created_at"=>2013-10-31 17:17:33 UTC}] flags=[] (0.1607ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:17: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.8171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c4000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9890ms) Rendered text template (0.0ms) Completed 200 OK in 12.5ms (Views: 6.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:17:33 +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.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290ad87f64384c4000002", "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.6061ms) Rendered text template (0.0ms) Completed 200 OK in 512.6ms (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.6931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2407ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9511ms) 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.5889ms) 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.3099ms) 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.4752ms) 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.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527290af87f64384c4000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ee7f42c8df2ba10caa9ff5031ea5fff55cfb640b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Mujn3K2qeqDrcFgmomB3", "api_key"=>"8e2205f8dacb6774c398457d2e068865ba0aeb5f", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.1690ms) 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.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527290af87f64384c4000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:17:32 UTC, "updated_at"=>2013-10-31 17:17:35 UTC, "memberships"=>[{"_id"=>"527290af87f64384c4000017", "role"=>"admin", "account_id"=>"527290af87f64384c4000015"}]}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290af87f64384c4000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"527290af87f64384c4000016", "_id"=>{"$ne"=>"527290af87f64384c4000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290af87f64384c4000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527290af87f64384c4000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.3228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000018"]}}, "$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"=>"527290af87f64384c4000018"}, "$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"=>["527290af87f64384c4000018"]}} 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"=>"527290af87f64384c4000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290af87f64384c4000016", "_id"=>{"$ne"=>"527290af87f64384c4000019"}, "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"=>"527290af87f64384c4000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4523ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290af87f64384c4000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527290af87f64384c4000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000019"]}}, "$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"=>"527290af87f64384c4000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527290af87f64384c4000019"]}} 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_content_types selector={"site_id"=>"527290af87f64384c4000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527290af87f64384c400001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527290af87f64384c4000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527290af87f64384c400001b", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC, "entries_custom_fields"=>[{"_id"=>"527290af87f64384c400001b", "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.2270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527290af87f64384c400001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527290af87f64384c400001c", "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", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}}} flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290af87f64384c400001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"527290af87f64384c400001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}}} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527290af87f64384c400001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527290af87f64384c400001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527290af87f64384c400001a", "content_type_id"=>"527290af87f64384c400001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527290af87f64384c4000016", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290af87f64384c400001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}} 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"=>"527290af87f64384c400001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}}} (0.3798ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}}} (0.3009ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527290af87f64384c400001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527290af87f64384c400001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527290af87f64384c400001a", "content_type_id"=>"527290af87f64384c400001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527290af87f64384c4000016", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.1731ms) 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 (2.1179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290af87f64384c4000016", "parent_id"=>"527290af87f64384c4000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527290af87f64384c4000018", "site_id"=>"527290af87f64384c4000016", "_id"=>{"$ne"=>"527290af87f64384c400001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527290af87f64384c4000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290af87f64384c400001f", "parent_ids"=>["527290af87f64384c4000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527290af87f64384c4000016", "parent_id"=>"527290af87f64384c4000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "template_dependencies.en"=>{"$in"=>["527290af87f64384c400001f"]}}, "$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"=>"527290af87f64384c400001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527290af87f64384c400001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290af87f64384c4000016", "parent_id"=>"527290af87f64384c4000018", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"527290af87f64384c4000018", "site_id"=>"527290af87f64384c4000016", "_id"=>{"$ne"=>"527290af87f64384c4000020"}, "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"=>{"parent_id"=>"527290af87f64384c4000018", "site_id"=>"527290af87f64384c4000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527290af87f64384c4000018"}]}]}, "$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"=>"527290af87f64384c4000020", "parent_ids"=>["527290af87f64384c4000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527290af87f64384c4000016", "parent_id"=>"527290af87f64384c4000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527290af87f64384c4000020"}, "$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"=>["527290af87f64384c4000020"]}} 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"=>{"site_id"=>"527290af87f64384c4000016", "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_sites selector={"$query"=>{"_id"=>"527290af87f64384c4000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527290af87f64384c4000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:17:35 UTC}} flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000018"]}}, "$orderby"=>{"position"=>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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5720ms) 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"=>"527290af87f64384c4000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:17:32 UTC, "updated_at"=>2013-10-31 17:17:35 UTC, "memberships"=>[{"_id"=>"527290af87f64384c4000022", "role"=>"admin", "account_id"=>"527290af87f64384c4000015"}]}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527290af87f64384c4000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527290af87f64384c4000021", "_id"=>{"$ne"=>"527290af87f64384c4000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290af87f64384c4000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527290af87f64384c4000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000021", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527290af87f64384c4000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527290af87f64384c4000023"]}} 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={"site_id"=>"527290af87f64384c4000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290af87f64384c4000021", "_id"=>{"$ne"=>"527290af87f64384c4000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6714ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290af87f64384c4000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290af87f64384c4000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527290af87f64384c4000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000021", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527290af87f64384c4000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527290af87f64384c4000024"]}} 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"=>"527290af87f64384c4000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290af87f64384c4000021", "_id"=>{"$ne"=>"527290af87f64384c4000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527290af87f64384c4000021"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527290af87f64384c4000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527290af87f64384c4000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000021", "template_dependencies.en"=>{"$in"=>["527290af87f64384c4000025"]}}, "$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"=>"527290af87f64384c4000025"}, "$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"=>["527290af87f64384c4000025"]}} 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"=>"527290af87f64384c4000021", "slug"=>"examples"} 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"=>"527290af87f64384c4000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527290af87f64384c4000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527290af87f64384c4000027", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC, "entries_custom_fields"=>[{"_id"=>"527290af87f64384c4000027", "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.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290af87f64384c4000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c4000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527290af87f64384c4000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4742ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c4000026"]}}} (0.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527290af87f64384c4000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527290af87f64384c4000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527290af87f64384c4000026", "content_type_id"=>"527290af87f64384c4000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527290af87f64384c4000021", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:17:35 UTC, "created_at"=>2013-10-31 17:17:35 UTC}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527290af87f64384c400001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}} 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_content_entries selector={"_id"=>{"$ne"=>"527290af87f64384c400001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7522ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1771ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527290af87f64384c400001a"} update={"$set"=>{"updated_at"=>2013-10-31 17:17:35 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0911ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527290af87f64384c400001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1380ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:17:35 +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.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5648ms) 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 2013-10-31 18:17:35 +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.9868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "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.7789ms) Rendered text template (0.0ms) Completed 200 OK in 509.6ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527290af87f64384c400001a"} 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"=>"527290af87f64384c400001a", "updated_at"=>{"$lt"=>2013-10-31 17:17:35 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527290af87f64384c400001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527290af87f64384c4000016"}, "$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_types selector={"$query"=>{"_id"=>"527290af87f64384c400001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527290af87f64384c400001d"} update={"$set"=>{"updated_at"=>2013-10-31 17:17:35 UTC}} flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527290af87f64384c4000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"527290af87f64384c400001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527290af87f64384c400001e"} update={"$set"=>{"updated_at"=>2013-10-31 17:17:35 UTC}} flags=[] (0.2050ms) Started GET "/en/" for 127.0.0.1 at 2013-10-31 18:17:35 +0100 Started GET "/en" for 127.0.0.1 at 2013-10-31 18:17:35 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6292ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-10-31 18:17:35 +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.5322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527290af87f64384c4000016", "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.7209ms) Rendered text template (0.0ms) Completed 200 OK in 505.3ms (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.6711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3447ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0209ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9422ms) 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.5848ms) 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.6669ms) 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.9081ms) 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.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527291d987f643fb75000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"179df4ef85f1e396b73c630d1b985ceabd69db82", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"z2EEzFdfrP3JxW49TniW", "api_key"=>"800f0cca002a6825ec7c57df270be43a925bf62f", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2799ms) 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.8280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527291d987f643fb75000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:22:32 UTC, "updated_at"=>2013-10-31 17:22:33 UTC, "memberships"=>[{"_id"=>"527291d987f643fb75000003", "role"=>"admin", "account_id"=>"527291d987f643fb75000001"}]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527291d987f643fb75000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527291d987f643fb75000002", "_id"=>{"$ne"=>"527291d987f643fb75000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527291d987f643fb75000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527291d987f643fb75000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527291d987f643fb75000004"}, "$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"=>{"site_id"=>"527291d987f643fb75000002", "template_dependencies.en"=>{"$in"=>["527291d987f643fb75000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527291d987f643fb75000004"]}} 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={"site_id"=>"527291d987f643fb75000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527291d987f643fb75000002", "_id"=>{"$ne"=>"527291d987f643fb75000005"}, "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"=>"527291d987f643fb75000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6053ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527291d987f643fb75000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527291d987f643fb75000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "template_dependencies.en"=>{"$in"=>["527291d987f643fb75000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527291d987f643fb75000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527291d987f643fb75000005"]}} 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"=>"527291d987f643fb75000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527291d987f643fb75000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527291d987f643fb75000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527291d987f643fb75000007", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC, "entries_custom_fields"=>[{"_id"=>"527291d987f643fb75000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527291d987f643fb75000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527291d987f643fb75000008", "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", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}}} flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527291d987f643fb75000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527291d987f643fb75000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000006"]}}} (0.3870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527291d987f643fb75000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527291d987f643fb75000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527291d987f643fb75000006", "content_type_id"=>"527291d987f643fb75000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527291d987f643fb75000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527291d987f643fb7500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527291d987f643fb75000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000006"]}}} (0.4289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000006"]}}} (0.2842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5097ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527291d987f643fb7500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527291d987f643fb75000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527291d987f643fb75000006", "content_type_id"=>"527291d987f643fb75000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527291d987f643fb75000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.1781ms) 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.4870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527291d987f643fb75000002", "parent_id"=>"527291d987f643fb75000004", "$or"=>[{"slug.en"=>"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"=>"527291d987f643fb75000004", "site_id"=>"527291d987f643fb75000002", "_id"=>{"$ne"=>"527291d987f643fb7500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527291d987f643fb75000004"}]}]}, "$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"=>"527291d987f643fb7500000b", "parent_ids"=>["527291d987f643fb75000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527291d987f643fb75000002", "parent_id"=>"527291d987f643fb75000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "template_dependencies.en"=>{"$in"=>["527291d987f643fb7500000b"]}}, "$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"=>"527291d987f643fb7500000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527291d987f643fb7500000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"527291d987f643fb75000002", "parent_id"=>"527291d987f643fb75000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527291d987f643fb75000004", "site_id"=>"527291d987f643fb75000002", "_id"=>{"$ne"=>"527291d987f643fb7500000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527291d987f643fb75000004", "site_id"=>"527291d987f643fb75000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527291d987f643fb75000004"}]}]}, "$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"=>"527291d987f643fb7500000c", "parent_ids"=>["527291d987f643fb75000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527291d987f643fb75000002", "parent_id"=>"527291d987f643fb75000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "template_dependencies.en"=>{"$in"=>["527291d987f643fb7500000c"]}}, "$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"=>"527291d987f643fb7500000c"}, "$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"=>["527291d987f643fb7500000c"]}} 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_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"527291d987f643fb75000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527291d987f643fb75000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:22:33 UTC}} flags=[] (0.1707ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "template_dependencies.en"=>{"$in"=>["527291d987f643fb75000004"]}}, "$orderby"=>{"position"=>1}} 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_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.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527291d987f643fb7500000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:22:32 UTC, "updated_at"=>2013-10-31 17:22:33 UTC, "memberships"=>[{"_id"=>"527291d987f643fb7500000e", "role"=>"admin", "account_id"=>"527291d987f643fb75000001"}]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527291d987f643fb7500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527291d987f643fb7500000d", "_id"=>{"$ne"=>"527291d987f643fb7500000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"527291d987f643fb7500000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527291d987f643fb7500000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb7500000d", "template_dependencies.en"=>{"$in"=>["527291d987f643fb7500000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527291d987f643fb7500000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527291d987f643fb7500000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527291d987f643fb7500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"527291d987f643fb7500000d", "_id"=>{"$ne"=>"527291d987f643fb75000010"}, "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"=>"527291d987f643fb7500000d"}, "$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"=>"527291d987f643fb75000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527291d987f643fb7500000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb7500000d", "template_dependencies.en"=>{"$in"=>["527291d987f643fb75000010"]}}, "$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"=>"527291d987f643fb75000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527291d987f643fb75000010"]}} 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"=>"527291d987f643fb7500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4833ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527291d987f643fb7500000d", "_id"=>{"$ne"=>"527291d987f643fb75000011"}, "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"=>"527291d987f643fb7500000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527291d987f643fb75000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527291d987f643fb7500000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb7500000d", "template_dependencies.en"=>{"$in"=>["527291d987f643fb75000011"]}}, "$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"=>"527291d987f643fb75000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5183ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527291d987f643fb75000011"]}} 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_content_types selector={"site_id"=>"527291d987f643fb7500000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"527291d987f643fb75000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527291d987f643fb7500000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527291d987f643fb75000013", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC, "entries_custom_fields"=>[{"_id"=>"527291d987f643fb75000013", "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.2947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527291d987f643fb75000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527291d987f643fb75000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527291d987f643fb75000012"]}}} (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527291d987f643fb75000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527291d987f643fb75000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527291d987f643fb75000012", "content_type_id"=>"527291d987f643fb75000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527291d987f643fb7500000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:22:33 UTC, "created_at"=>2013-10-31 17:22:33 UTC}] flags=[] (0.1910ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:22:34 +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.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) Rendered text template (0.0ms) Completed 200 OK in 12.6ms (Views: 7.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:22:34 +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.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527291d987f643fb75000002", "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 530.5ms (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.7200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9658ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2033ms) 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.7000ms) 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 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.0791ms) 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.5429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272924d87f643e5ee000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a254f15d235cd71f7c4084cb7034bcc42c696089", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"TmxHydCWvUenDVjysnCZ", "api_key"=>"8836571f64f7302dfa228f4836e30af2c0921451", "updated_at"=>2013-10-31 17:24:29 UTC, "created_at"=>2013-10-31 17:24:29 UTC}] flags=[] (0.1731ms) 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.7851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272924d87f643e5ee000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:24:29 UTC, "updated_at"=>2013-10-31 17:24:29 UTC, "memberships"=>[{"_id"=>"5272924d87f643e5ee000003", "role"=>"admin", "account_id"=>"5272924d87f643e5ee000001"}]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272924d87f643e5ee000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924d87f643e5ee000002", "_id"=>{"$ne"=>"5272924e87f643e5ee000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5272924e87f643e5ee000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272924d87f643e5ee000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272924e87f643e5ee000004"}, "$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"=>{"site_id"=>"5272924d87f643e5ee000002", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272924e87f643e5ee000004"]}} 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"=>"5272924d87f643e5ee000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924d87f643e5ee000002", "_id"=>{"$ne"=>"5272924e87f643e5ee000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924d87f643e5ee000002"}, "$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"=>"5272924e87f643e5ee000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272924d87f643e5ee000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee000005"]}}, "$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"=>"5272924e87f643e5ee000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272924e87f643e5ee000005"]}} 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"=>"5272924d87f643e5ee000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272924e87f643e5ee000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272924d87f643e5ee000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272924e87f643e5ee000007", "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC, "entries_custom_fields"=>[{"_id"=>"5272924e87f643e5ee000007", "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.2270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272924e87f643e5ee000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272924e87f643e5ee000008", "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", "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}}} flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272924e87f643e5ee000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272924e87f643e5ee000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000006"]}}} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272924e87f643e5ee000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272924e87f643e5ee000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272924e87f643e5ee000006", "content_type_id"=>"5272924e87f643e5ee000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272924d87f643e5ee000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272924e87f643e5ee00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272924e87f643e5ee000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000006"]}}} (0.5162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000006"]}}} (0.3502ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4742ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272924e87f643e5ee00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272924e87f643e5ee000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272924e87f643e5ee000006", "content_type_id"=>"5272924e87f643e5ee000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272924d87f643e5ee000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 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.6592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272924d87f643e5ee000002", "parent_id"=>"5272924e87f643e5ee000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5272924e87f643e5ee000004", "site_id"=>"5272924d87f643e5ee000002", "_id"=>{"$ne"=>"5272924e87f643e5ee00000b"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272924e87f643e5ee000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5272924e87f643e5ee00000b", "parent_ids"=>["5272924e87f643e5ee000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272924d87f643e5ee000002", "parent_id"=>"5272924e87f643e5ee000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee00000b"]}}, "$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"=>"5272924e87f643e5ee00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272924e87f643e5ee00000b"]}} 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.5698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272924d87f643e5ee000002", "parent_id"=>"5272924e87f643e5ee000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5272924e87f643e5ee000004", "site_id"=>"5272924d87f643e5ee000002", "_id"=>{"$ne"=>"5272924e87f643e5ee00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272924e87f643e5ee000004", "site_id"=>"5272924d87f643e5ee000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272924e87f643e5ee000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272924e87f643e5ee00000c", "parent_ids"=>["5272924e87f643e5ee000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272924d87f643e5ee000002", "parent_id"=>"5272924e87f643e5ee000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee00000c"]}}, "$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"=>"5272924e87f643e5ee00000c"}, "$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"=>["5272924e87f643e5ee00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1702ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{}} (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272924d87f643e5ee000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.9891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272924e87f643e5ee000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:24:30 UTC}} flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3330ms) 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.7269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272924e87f643e5ee00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:24:29 UTC, "updated_at"=>2013-10-31 17:24:30 UTC, "memberships"=>[{"_id"=>"5272924e87f643e5ee00000e", "role"=>"admin", "account_id"=>"5272924d87f643e5ee000001"}]}] flags=[] (0.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272924e87f643e5ee00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5546ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924e87f643e5ee00000d", "_id"=>{"$ne"=>"5272924e87f643e5ee00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272924e87f643e5ee00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272924e87f643e5ee00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924e87f643e5ee00000d", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272924e87f643e5ee00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272924e87f643e5ee00000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272924e87f643e5ee00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924e87f643e5ee00000d", "_id"=>{"$ne"=>"5272924e87f643e5ee000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924e87f643e5ee00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272924e87f643e5ee000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272924e87f643e5ee00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924e87f643e5ee00000d", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272924e87f643e5ee000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272924e87f643e5ee000010"]}} 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={"site_id"=>"5272924e87f643e5ee00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924e87f643e5ee00000d", "_id"=>{"$ne"=>"5272924e87f643e5ee000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272924e87f643e5ee00000d"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5272924e87f643e5ee000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272924e87f643e5ee00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924e87f643e5ee00000d", "template_dependencies.en"=>{"$in"=>["5272924e87f643e5ee000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272924e87f643e5ee000011"}, "$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"=>["5272924e87f643e5ee000011"]}} 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_content_types selector={"site_id"=>"5272924e87f643e5ee00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272924e87f643e5ee000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272924e87f643e5ee00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272924e87f643e5ee000013", "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC, "entries_custom_fields"=>[{"_id"=>"5272924e87f643e5ee000013", "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.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272924e87f643e5ee000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272924e87f643e5ee000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5844ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272924e87f643e5ee000012"]}}} (0.5827ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272924e87f643e5ee000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272924e87f643e5ee000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272924e87f643e5ee000012", "content_type_id"=>"5272924e87f643e5ee000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272924e87f643e5ee00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:24:30 UTC, "created_at"=>2013-10-31 17:24:30 UTC}] flags=[] (0.1760ms) Started GET "/" for 127.0.0.1 at 2013-10-31 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.8340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5503ms) Rendered text template (0.0ms) Completed 200 OK in 13.0ms (Views: 6.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:24:30 +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.8452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272924d87f643e5ee000002", "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.7529ms) Rendered text template (0.0ms) Completed 200 OK in 520.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.5879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1027ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4741ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5262ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9973ms) 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.6089ms) 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.6289ms) 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.8361ms) 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.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272930787f64337d8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"31b7886d992d516d3c0bc6e7bd9d95a112492d96", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"A7kZgYN1DGDokKRq3H8n", "api_key"=>"1dd0a4e16055d9a8f869e07985bae02385d7c5ff", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.1359ms) 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.8271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272930787f64337d8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:27:34 UTC, "updated_at"=>2013-10-31 17:27:35 UTC, "memberships"=>[{"_id"=>"5272930787f64337d8000003", "role"=>"admin", "account_id"=>"5272930787f64337d8000001"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272930787f64337d8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d8000002", "_id"=>{"$ne"=>"5272930787f64337d8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272930787f64337d8000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272930787f64337d8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.2146ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272930787f64337d8000004"}, "$orderby"=>{"position"=>1}} 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"=>"5272930787f64337d8000002", "template_dependencies.en"=>{"$in"=>["5272930787f64337d8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272930787f64337d8000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272930787f64337d8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d8000002", "_id"=>{"$ne"=>"5272930787f64337d8000005"}, "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"=>"5272930787f64337d8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272930787f64337d8000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272930787f64337d8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "template_dependencies.en"=>{"$in"=>["5272930787f64337d8000005"]}}, "$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"=>"5272930787f64337d8000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272930787f64337d8000005"]}} 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"=>"5272930787f64337d8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272930787f64337d8000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272930787f64337d8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272930787f64337d8000007", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC, "entries_custom_fields"=>[{"_id"=>"5272930787f64337d8000007", "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.2890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272930787f64337d8000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272930787f64337d8000008", "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", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272930787f64337d8000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272930787f64337d8000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000006"]}}} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272930787f64337d8000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272930787f64337d8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272930787f64337d8000006", "content_type_id"=>"5272930787f64337d8000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272930787f64337d8000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272930787f64337d800000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272930787f64337d8000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000006"]}}} (0.3700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000006"]}}} (0.2372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272930787f64337d800000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272930787f64337d8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272930787f64337d8000006", "content_type_id"=>"5272930787f64337d8000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272930787f64337d8000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.1669ms) 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.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272930787f64337d8000002", "parent_id"=>"5272930787f64337d8000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5272930787f64337d8000004", "site_id"=>"5272930787f64337d8000002", "_id"=>{"$ne"=>"5272930787f64337d800000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272930787f64337d8000004"}]}]}, "$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"=>"5272930787f64337d800000b", "parent_ids"=>["5272930787f64337d8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272930787f64337d8000002", "parent_id"=>"5272930787f64337d8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "template_dependencies.en"=>{"$in"=>["5272930787f64337d800000b"]}}, "$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"=>"5272930787f64337d800000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5152ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272930787f64337d800000b"]}} 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=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5272930787f64337d8000002", "parent_id"=>"5272930787f64337d8000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5272930787f64337d8000004", "site_id"=>"5272930787f64337d8000002", "_id"=>{"$ne"=>"5272930787f64337d800000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272930787f64337d8000004", "site_id"=>"5272930787f64337d8000002"}, "$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"=>"5272930787f64337d8000004"}]}]}, "$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"=>"5272930787f64337d800000c", "parent_ids"=>["5272930787f64337d8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272930787f64337d8000002", "parent_id"=>"5272930787f64337d8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "template_dependencies.en"=>{"$in"=>["5272930787f64337d800000c"]}}, "$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"=>"5272930787f64337d800000c"}, "$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"=>["5272930787f64337d800000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1068ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{}} (0.2978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272930787f64337d8000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272930787f64337d8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:27:35 UTC}} flags=[] (0.1616ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "template_dependencies.en"=>{"$in"=>["5272930787f64337d8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4632ms) 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.5391ms) 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.3667ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272930787f64337d800000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:27:34 UTC, "updated_at"=>2013-10-31 17:27:35 UTC, "memberships"=>[{"_id"=>"5272930787f64337d800000e", "role"=>"admin", "account_id"=>"5272930787f64337d8000001"}]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272930787f64337d800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d800000d", "_id"=>{"$ne"=>"5272930787f64337d800000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5272930787f64337d800000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272930787f64337d800000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.3393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d800000d", "template_dependencies.en"=>{"$in"=>["5272930787f64337d800000f"]}}, "$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"=>"5272930787f64337d800000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272930787f64337d800000f"]}} 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"=>"5272930787f64337d800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d800000d", "_id"=>{"$ne"=>"5272930787f64337d8000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d800000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272930787f64337d8000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272930787f64337d800000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d800000d", "template_dependencies.en"=>{"$in"=>["5272930787f64337d8000010"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5272930787f64337d8000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272930787f64337d8000010"]}} 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"=>"5272930787f64337d800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d800000d", "_id"=>{"$ne"=>"5272930787f64337d8000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272930787f64337d800000d"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272930787f64337d8000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272930787f64337d800000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.3438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d800000d", "template_dependencies.en"=>{"$in"=>["5272930787f64337d8000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272930787f64337d8000011"}, "$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"=>["5272930787f64337d8000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272930787f64337d800000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272930787f64337d8000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272930787f64337d800000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272930787f64337d8000013", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC, "entries_custom_fields"=>[{"_id"=>"5272930787f64337d8000013", "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.2012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272930787f64337d8000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000012"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5272930787f64337d8000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272930787f64337d8000012"]}}} (1.0350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272930787f64337d8000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272930787f64337d8000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272930787f64337d8000012", "content_type_id"=>"5272930787f64337d8000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272930787f64337d800000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:27:35 UTC, "created_at"=>2013-10-31 17:27:35 UTC}] flags=[] (0.3531ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:27:35 +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.7012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7529ms) Rendered text template (0.0ms) Completed 200 OK in 13.2ms (Views: 7.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:27:35 +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.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272930787f64337d8000002", "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.6199ms) Rendered text template (0.0ms) Completed 200 OK in 517.8ms (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.6440ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2543ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6080ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9830ms) 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.7122ms) 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.6051ms) 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.9360ms) 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.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272938287f643bf06000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"820046a0e09c69b07f319216f6059d5036cb4635", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qgwz6pCeDpeYNhDxoSCX", "api_key"=>"50dcdacf86e23e765c9986effef16943b8527dd1", "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC}] flags=[] (0.1788ms) 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.7930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272938287f643bf06000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:29:37 UTC, "updated_at"=>2013-10-31 17:29:38 UTC, "memberships"=>[{"_id"=>"5272938287f643bf06000003", "role"=>"admin", "account_id"=>"5272938287f643bf06000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272938287f643bf06000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272938287f643bf06000002", "_id"=>{"$ne"=>"5272938287f643bf06000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272938287f643bf06000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272938287f643bf06000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272938287f643bf06000004"}, "$orderby"=>{"position"=>1}} 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"=>"5272938287f643bf06000002", "template_dependencies.en"=>{"$in"=>["5272938287f643bf06000004"]}}, "$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"=>["5272938287f643bf06000004"]}} 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"=>"5272938287f643bf06000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272938287f643bf06000002", "_id"=>{"$ne"=>"5272938287f643bf06000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272938287f643bf06000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272938287f643bf06000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272938287f643bf06000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272938287f643bf06000002", "template_dependencies.en"=>{"$in"=>["5272938287f643bf06000005"]}}, "$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"=>"5272938287f643bf06000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272938287f643bf06000005"]}} 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"=>"5272938287f643bf06000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272938287f643bf06000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272938287f643bf06000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272938287f643bf06000007", "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC, "entries_custom_fields"=>[{"_id"=>"5272938287f643bf06000007", "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.3018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272938287f643bf06000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272938287f643bf06000008", "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", "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC}}} flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272938287f643bf06000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272938287f643bf06000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272938287f643bf06000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4313ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272938287f643bf06000006"]}}} (0.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272938287f643bf06000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272938287f643bf06000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272938287f643bf06000006", "content_type_id"=>"5272938287f643bf06000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272938287f643bf06000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272938287f643bf0600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272938287f643bf06000006"]}} 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_content_entries selector={"content_type_id"=>"5272938287f643bf06000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272938287f643bf06000006"]}}} (0.3221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272938287f643bf06000006"]}}} (0.2820ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272938287f643bf06000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272938287f643bf0600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272938287f643bf06000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272938287f643bf06000006", "content_type_id"=>"5272938287f643bf06000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272938287f643bf06000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:29:38 UTC, "created_at"=>2013-10-31 17:29:38 UTC}] flags=[] (0.1669ms) 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.0591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272938287f643bf06000002", "parent_id"=>"5272938287f643bf06000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6561ms) 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.5388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3413ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7210ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4938ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9918ms) 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.5741ms) 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.6490ms) 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.9699ms) 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.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527293a887f643ee51000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"decadacf21d6f95cdf3ab06f49efb154bc8d477e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ziJkEipyJyGHp9z6gQjf", "api_key"=>"23d134068037b1d0e646b658c8b0505293b79a31", "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.1509ms) 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.8309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527293a887f643ee51000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:30:16 UTC, "updated_at"=>2013-10-31 17:30:16 UTC, "memberships"=>[{"_id"=>"527293a887f643ee51000003", "role"=>"admin", "account_id"=>"527293a887f643ee51000001"}]}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527293a887f643ee51000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527293a887f643ee51000002", "_id"=>{"$ne"=>"527293a887f643ee51000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527293a887f643ee51000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527293a887f643ee51000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527293a887f643ee51000004"}, "$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"=>{"site_id"=>"527293a887f643ee51000002", "template_dependencies.en"=>{"$in"=>["527293a887f643ee51000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527293a887f643ee51000004"]}} 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"=>"527293a887f643ee51000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527293a887f643ee51000002", "_id"=>{"$ne"=>"527293a887f643ee51000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527293a887f643ee51000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527293a887f643ee51000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527293a887f643ee51000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee51000002", "template_dependencies.en"=>{"$in"=>["527293a887f643ee51000005"]}}, "$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"=>"527293a887f643ee51000005"}, "$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"=>["527293a887f643ee51000005"]}} 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_content_types selector={"site_id"=>"527293a887f643ee51000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527293a887f643ee51000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527293a887f643ee51000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527293a887f643ee51000007", "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC, "entries_custom_fields"=>[{"_id"=>"527293a887f643ee51000007", "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.2477ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527293a887f643ee51000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527293a887f643ee51000008", "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", "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}}} flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527293a887f643ee51000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527293a887f643ee51000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000006"]}}} (0.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527293a887f643ee51000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527293a887f643ee51000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527293a887f643ee51000006", "content_type_id"=>"527293a887f643ee51000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527293a887f643ee51000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527293a887f643ee5100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527293a887f643ee51000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000006"]}}} (0.3760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000006"]}}} (0.3290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527293a887f643ee5100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527293a887f643ee51000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527293a887f643ee51000006", "content_type_id"=>"527293a887f643ee51000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527293a887f643ee51000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (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.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527293a887f643ee51000002", "parent_id"=>"527293a887f643ee51000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527293a887f643ee51000004", "site_id"=>"527293a887f643ee51000002", "_id"=>{"$ne"=>"527293a887f643ee5100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527293a887f643ee51000004"}]}]}, "$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"=>"527293a887f643ee5100000b", "parent_ids"=>["527293a887f643ee51000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"

This is what you were looking for:

\n \n"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"search"}, "site_id"=>"527293a887f643ee51000002", "parent_id"=>"527293a887f643ee51000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.3028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee51000002", "template_dependencies.en"=>{"$in"=>["527293a887f643ee5100000b"]}}, "$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"=>"527293a887f643ee5100000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527293a887f643ee5100000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{}} (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee51000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527293a887f643ee51000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527293a887f643ee51000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:30:16 UTC}} flags=[] (0.1657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee51000002", "template_dependencies.en"=>{"$in"=>["527293a887f643ee51000004"]}}, "$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.5529ms) 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.3378ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527293a887f643ee5100000c", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:30:16 UTC, "updated_at"=>2013-10-31 17:30:16 UTC, "memberships"=>[{"_id"=>"527293a887f643ee5100000d", "role"=>"admin", "account_id"=>"527293a887f643ee51000001"}]}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527293a887f643ee5100000c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527293a887f643ee5100000c", "_id"=>{"$ne"=>"527293a887f643ee5100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527293a887f643ee5100000e", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527293a887f643ee5100000c", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee5100000c", "template_dependencies.en"=>{"$in"=>["527293a887f643ee5100000e"]}}, "$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"=>"527293a887f643ee5100000e"}, "$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"=>["527293a887f643ee5100000e"]}} 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"=>"527293a887f643ee5100000c", "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"=>"527293a887f643ee5100000c", "_id"=>{"$ne"=>"527293a887f643ee5100000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"527293a887f643ee5100000c"}, "$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"=>"527293a887f643ee5100000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527293a887f643ee5100000c", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee5100000c", "template_dependencies.en"=>{"$in"=>["527293a887f643ee5100000f"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"527293a887f643ee5100000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527293a887f643ee5100000f"]}} 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"=>"527293a887f643ee5100000c", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"527293a887f643ee5100000c", "_id"=>{"$ne"=>"527293a887f643ee51000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527293a887f643ee5100000c"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6831ms) 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.3047ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527293a887f643ee51000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527293a887f643ee5100000c", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee5100000c", "template_dependencies.en"=>{"$in"=>["527293a887f643ee51000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527293a887f643ee51000010"}, "$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"=>["527293a887f643ee51000010"]}} 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_content_types selector={"site_id"=>"527293a887f643ee5100000c", "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"=>"527293a887f643ee51000011", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527293a887f643ee5100000c", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527293a887f643ee51000012", "updated_at"=>2013-10-31 17:30:16 UTC, "created_at"=>2013-10-31 17:30:16 UTC, "entries_custom_fields"=>[{"_id"=>"527293a887f643ee51000012", "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.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527293a887f643ee51000013"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000011"]}} 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_content_entries selector={"content_type_id"=>"527293a887f643ee51000011", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527293a887f643ee51000011"]}}} (0.7470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527293a887f643ee51000013", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527293a887f643ee51000011", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527293a887f643ee51000011", "content_type_id"=>"527293a887f643ee51000011", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527293a887f643ee5100000c", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:30:17 UTC, "created_at"=>2013-10-31 17:30:17 UTC}] flags=[] (0.1988ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:30: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.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee51000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5922ms) Rendered text template (0.0ms) Completed 200 OK in 13.8ms (Views: 8.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:30:17 +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.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527293a887f643ee51000002", "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.6142ms) Rendered text template (0.0ms) Completed 200 OK in 528.7ms (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.6320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9501ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9041ms) 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.6170ms) 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.5288ms) 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.9370ms) 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.4032ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272943c87f64346c9000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2d0894005456e69f62cfa87f4b1645b608995d8e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"5vfmjGPcXBE7qWnjUng4", "api_key"=>"8cd5b0c869ec33bac30d1023f777103cd67ef0ae", "updated_at"=>2013-10-31 17:32:44 UTC, "created_at"=>2013-10-31 17:32:44 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.7858ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272943c87f64346c9000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:32:44 UTC, "updated_at"=>2013-10-31 17:32:44 UTC, "memberships"=>[{"_id"=>"5272943c87f64346c9000003", "role"=>"admin", "account_id"=>"5272943c87f64346c9000001"}]}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272943c87f64346c9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272943c87f64346c9000002", "_id"=>{"$ne"=>"5272943d87f64346c9000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272943d87f64346c9000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272943c87f64346c9000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272943d87f64346c9000004"}, "$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"=>{"site_id"=>"5272943c87f64346c9000002", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c9000004"]}}, "$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"=>["5272943d87f64346c9000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272943c87f64346c9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2584ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272943c87f64346c9000002", "_id"=>{"$ne"=>"5272943d87f64346c9000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272943c87f64346c9000002"}, "$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"=>"5272943d87f64346c9000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272943c87f64346c9000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943c87f64346c9000002", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c9000005"]}}, "$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"=>"5272943d87f64346c9000005"}, "$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"=>["5272943d87f64346c9000005"]}} 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"=>"5272943c87f64346c9000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272943d87f64346c9000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272943c87f64346c9000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272943d87f64346c9000007", "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC, "entries_custom_fields"=>[{"_id"=>"5272943d87f64346c9000007", "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.2792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272943d87f64346c9000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272943d87f64346c9000008", "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", "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}}} flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272943d87f64346c9000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272943d87f64346c9000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000006"]}}} (0.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272943d87f64346c9000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272943d87f64346c9000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272943d87f64346c9000006", "content_type_id"=>"5272943d87f64346c9000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272943c87f64346c9000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272943d87f64346c900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272943d87f64346c9000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000006"]}}} (0.3941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000006"]}}} (0.2971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272943d87f64346c900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272943d87f64346c9000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272943d87f64346c9000006", "content_type_id"=>"5272943d87f64346c9000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272943c87f64346c9000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.1981ms) 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.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272943c87f64346c9000002", "parent_id"=>"5272943d87f64346c9000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272943d87f64346c9000004", "site_id"=>"5272943c87f64346c9000002", "_id"=>{"$ne"=>"5272943d87f64346c900000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272943d87f64346c9000004"}]}]}, "$orderby"=>{"depth"=>1}} 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=locomotive_pages documents=[{"_id"=>"5272943d87f64346c900000b", "parent_ids"=>["5272943d87f64346c9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272943c87f64346c9000002", "parent_id"=>"5272943d87f64346c9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943c87f64346c9000002", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c900000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3374ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272943d87f64346c900000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3273ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272943d87f64346c900000b"]}} 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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272943c87f64346c9000002", "parent_id"=>"5272943d87f64346c9000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272943d87f64346c9000004", "site_id"=>"5272943c87f64346c9000002", "_id"=>{"$ne"=>"5272943d87f64346c900000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5272943d87f64346c9000004", "site_id"=>"5272943c87f64346c9000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272943d87f64346c9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272943d87f64346c900000c", "parent_ids"=>["5272943d87f64346c9000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272943c87f64346c9000002", "parent_id"=>"5272943d87f64346c9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943c87f64346c9000002", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c900000c"]}}, "$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"=>"5272943d87f64346c900000c"}, "$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"=>["5272943d87f64346c900000c"]}} 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"=>"5272943c87f64346c9000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5272943c87f64346c9000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272943d87f64346c9000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:32:45 UTC}} flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943c87f64346c9000002", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c9000004"]}}, "$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.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.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272943d87f64346c900000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:32:44 UTC, "updated_at"=>2013-10-31 17:32:45 UTC, "memberships"=>[{"_id"=>"5272943d87f64346c900000e", "role"=>"admin", "account_id"=>"5272943c87f64346c9000001"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272943d87f64346c900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272943d87f64346c900000d", "_id"=>{"$ne"=>"5272943d87f64346c900000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5272943d87f64346c900000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272943d87f64346c900000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943d87f64346c900000d", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c900000f"]}}, "$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"=>"5272943d87f64346c900000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3326ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272943d87f64346c900000f"]}} 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"=>"5272943d87f64346c900000d", "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"=>"5272943d87f64346c900000d", "_id"=>{"$ne"=>"5272943d87f64346c9000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272943d87f64346c900000d"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"5272943d87f64346c9000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272943d87f64346c900000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943d87f64346c900000d", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c9000010"]}}, "$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"=>"5272943d87f64346c9000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3402ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272943d87f64346c9000010"]}} 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={"site_id"=>"5272943d87f64346c900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4673ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272943d87f64346c900000d", "_id"=>{"$ne"=>"5272943d87f64346c9000011"}, "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"=>"5272943d87f64346c900000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) 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.2680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272943d87f64346c9000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272943d87f64346c900000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943d87f64346c900000d", "template_dependencies.en"=>{"$in"=>["5272943d87f64346c9000011"]}}, "$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"=>"5272943d87f64346c9000011"}, "$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"=>["5272943d87f64346c9000011"]}} 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"=>"5272943d87f64346c900000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272943d87f64346c9000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272943d87f64346c900000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272943d87f64346c9000013", "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC, "entries_custom_fields"=>[{"_id"=>"5272943d87f64346c9000013", "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.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272943d87f64346c9000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000012"]}} 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"=>"5272943d87f64346c9000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4032ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272943d87f64346c9000012"]}}} (0.4518ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272943d87f64346c9000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272943d87f64346c9000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272943d87f64346c9000012", "content_type_id"=>"5272943d87f64346c9000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272943d87f64346c900000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:32:45 UTC, "created_at"=>2013-10-31 17:32:45 UTC}] flags=[] (0.1709ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:32:45 +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 (1.5821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943c87f64346c9000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1630ms) Rendered text template (0.0ms) Completed 200 OK in 22.6ms (Views: 11.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:32:45 +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.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272943c87f64346c9000002", "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.5989ms) Rendered text template (0.0ms) Completed 200 OK in 513.2ms (Views: 1.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.8860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2827ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3072ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9692ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4990ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8938ms) 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.4988ms) 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.6711ms) 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.9160ms) 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.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272945d87f6437cea000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f53ad41b1a1adbd8b2147be50ceaedff740d81ce", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"EyVnVqKqPoEG8xtvRYP2", "api_key"=>"72196c117f2662c78ed721d1831a032a941ad101", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 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.8998ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272945d87f6437cea000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:33:16 UTC, "updated_at"=>2013-10-31 17:33:17 UTC, "memberships"=>[{"_id"=>"5272945d87f6437cea000003", "role"=>"admin", "account_id"=>"5272945d87f6437cea000001"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272945d87f6437cea000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272945d87f6437cea000002", "_id"=>{"$ne"=>"5272945d87f6437cea000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272945d87f6437cea000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272945d87f6437cea000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272945d87f6437cea000004"}, "$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"=>{"site_id"=>"5272945d87f6437cea000002", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea000004"]}}, "$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"=>["5272945d87f6437cea000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272945d87f6437cea000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272945d87f6437cea000002", "_id"=>{"$ne"=>"5272945d87f6437cea000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272945d87f6437cea000002"}, "$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"=>"5272945d87f6437cea000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272945d87f6437cea000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea000002", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea000005"]}}, "$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"=>"5272945d87f6437cea000005"}, "$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"=>["5272945d87f6437cea000005"]}} 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_content_types selector={"site_id"=>"5272945d87f6437cea000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272945d87f6437cea000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272945d87f6437cea000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272945d87f6437cea000007", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC, "entries_custom_fields"=>[{"_id"=>"5272945d87f6437cea000007", "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.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272945d87f6437cea000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272945d87f6437cea000008", "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", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}}} flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272945d87f6437cea000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000006"]}} 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"=>"5272945d87f6437cea000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000006"]}}} (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272945d87f6437cea000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272945d87f6437cea000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272945d87f6437cea000006", "content_type_id"=>"5272945d87f6437cea000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272945d87f6437cea000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272945d87f6437cea00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0743ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272945d87f6437cea000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000006"]}}} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000006"]}}} (0.2439ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272945d87f6437cea00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272945d87f6437cea000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272945d87f6437cea000006", "content_type_id"=>"5272945d87f6437cea000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272945d87f6437cea000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1862ms) 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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272945d87f6437cea000002", "parent_id"=>"5272945d87f6437cea000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272945d87f6437cea000004", "site_id"=>"5272945d87f6437cea000002", "_id"=>{"$ne"=>"5272945d87f6437cea00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272945d87f6437cea000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5272945d87f6437cea00000b", "parent_ids"=>["5272945d87f6437cea000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272945d87f6437cea000002", "parent_id"=>"5272945d87f6437cea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea000002", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea00000b"]}}, "$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"=>"5272945d87f6437cea00000b"}, "$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"=>["5272945d87f6437cea00000b"]}} 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.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272945d87f6437cea000002", "parent_id"=>"5272945d87f6437cea000004", "$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"=>"5272945d87f6437cea000004", "site_id"=>"5272945d87f6437cea000002", "_id"=>{"$ne"=>"5272945d87f6437cea00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272945d87f6437cea000004", "site_id"=>"5272945d87f6437cea000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272945d87f6437cea000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272945d87f6437cea00000c", "parent_ids"=>["5272945d87f6437cea000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Serach results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272945d87f6437cea000002", "parent_id"=>"5272945d87f6437cea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea000002", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea00000c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272945d87f6437cea00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272945d87f6437cea00000c"]}} 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"=>"5272945d87f6437cea000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272945d87f6437cea000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272945d87f6437cea000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:33:17 UTC}} flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea000002", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea000004"]}}, "$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.5488ms) 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.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272945d87f6437cea00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:33:16 UTC, "updated_at"=>2013-10-31 17:33:17 UTC, "memberships"=>[{"_id"=>"5272945d87f6437cea00000e", "role"=>"admin", "account_id"=>"5272945d87f6437cea000001"}]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272945d87f6437cea00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5272945d87f6437cea00000d", "_id"=>{"$ne"=>"5272945d87f6437cea00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272945d87f6437cea00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272945d87f6437cea00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea00000d", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272945d87f6437cea00000f"}, "$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"=>["5272945d87f6437cea00000f"]}} 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"=>"5272945d87f6437cea00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272945d87f6437cea00000d", "_id"=>{"$ne"=>"5272945d87f6437cea000010"}, "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"=>"5272945d87f6437cea00000d"}, "$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"=>"5272945d87f6437cea000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272945d87f6437cea00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea00000d", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272945d87f6437cea000010"}, "$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"=>["5272945d87f6437cea000010"]}} 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={"site_id"=>"5272945d87f6437cea00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272945d87f6437cea00000d", "_id"=>{"$ne"=>"5272945d87f6437cea000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272945d87f6437cea00000d"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272945d87f6437cea000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272945d87f6437cea00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea00000d", "template_dependencies.en"=>{"$in"=>["5272945d87f6437cea000011"]}}, "$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"=>"5272945d87f6437cea000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272945d87f6437cea000011"]}} 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_content_types selector={"site_id"=>"5272945d87f6437cea00000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5272945d87f6437cea000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272945d87f6437cea00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272945d87f6437cea000013", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC, "entries_custom_fields"=>[{"_id"=>"5272945d87f6437cea000013", "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"=>"5272945d87f6437cea000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272945d87f6437cea000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272945d87f6437cea000012"]}}} (0.5229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272945d87f6437cea000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272945d87f6437cea000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272945d87f6437cea000012", "content_type_id"=>"5272945d87f6437cea000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272945d87f6437cea00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:33:17 UTC, "created_at"=>2013-10-31 17:33:17 UTC}] flags=[] (0.1581ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:33: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.8650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) Rendered text template (0.0ms) Completed 200 OK in 13.7ms (Views: 7.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:33: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.6752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272945d87f6437cea000002", "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.6001ms) Rendered text template (0.0ms) Completed 200 OK in 521.3ms (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.8459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6148ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2562ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0698ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8051ms) 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.4940ms) 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.6239ms) 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.0068ms) 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.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272953187f643a245000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e6eae259ecc0412971d89a5a02468ff9a7e86219", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"d3WrcM6sedXVHBdtsXD8", "api_key"=>"185ab88d57d39ddad5fa7ec087f69703d3270f22", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.1891ms) 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"=>"5272953187f643a245000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:36:48 UTC, "updated_at"=>2013-10-31 17:36:49 UTC, "memberships"=>[{"_id"=>"5272953187f643a245000003", "role"=>"admin", "account_id"=>"5272953187f643a245000001"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272953187f643a245000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272953187f643a245000002", "_id"=>{"$ne"=>"5272953187f643a245000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272953187f643a245000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272953187f643a245000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272953187f643a245000004"}, "$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"=>{"site_id"=>"5272953187f643a245000002", "template_dependencies.en"=>{"$in"=>["5272953187f643a245000004"]}}, "$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"=>["5272953187f643a245000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272953187f643a245000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272953187f643a245000002", "_id"=>{"$ne"=>"5272953187f643a245000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272953187f643a245000002"}, "$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"=>"5272953187f643a245000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272953187f643a245000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "template_dependencies.en"=>{"$in"=>["5272953187f643a245000005"]}}, "$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"=>"5272953187f643a245000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272953187f643a245000005"]}} 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"=>"5272953187f643a245000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8368ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272953187f643a245000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272953187f643a245000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272953187f643a245000007", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC, "entries_custom_fields"=>[{"_id"=>"5272953187f643a245000007", "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.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272953187f643a245000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272953187f643a245000008", "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", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}}} flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272953187f643a245000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272953187f643a245000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000006"]}}} (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272953187f643a245000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272953187f643a245000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272953187f643a245000006", "content_type_id"=>"5272953187f643a245000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272953187f643a245000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.1693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272953187f643a24500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272953187f643a245000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4148ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000006"]}}} (0.4833ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000006"]}}} (0.2460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272953187f643a24500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272953187f643a245000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272953187f643a245000006", "content_type_id"=>"5272953187f643a245000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272953187f643a245000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.1678ms) 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.7198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272953187f643a245000002", "parent_id"=>"5272953187f643a245000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272953187f643a245000004", "site_id"=>"5272953187f643a245000002", "_id"=>{"$ne"=>"5272953187f643a24500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272953187f643a245000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272953187f643a24500000b", "parent_ids"=>["5272953187f643a245000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272953187f643a245000002", "parent_id"=>"5272953187f643a245000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "template_dependencies.en"=>{"$in"=>["5272953187f643a24500000b"]}}, "$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"=>"5272953187f643a24500000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272953187f643a24500000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5272953187f643a245000002", "parent_id"=>"5272953187f643a245000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272953187f643a245000004", "site_id"=>"5272953187f643a245000002", "_id"=>{"$ne"=>"5272953187f643a24500000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272953187f643a245000004", "site_id"=>"5272953187f643a245000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272953187f643a245000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5272953187f643a24500000c", "parent_ids"=>["5272953187f643a245000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Serach results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272953187f643a245000002", "parent_id"=>"5272953187f643a245000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "template_dependencies.en"=>{"$in"=>["5272953187f643a24500000c"]}}, "$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"=>"5272953187f643a24500000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3872ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272953187f643a24500000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1478ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_pages", :query=>{}} (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5272953187f643a245000002"}, "$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=locomotive_pages selector={"_id"=>"5272953187f643a245000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:36:49 UTC}} flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "template_dependencies.en"=>{"$in"=>["5272953187f643a245000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4697ms) 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.3481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272953187f643a24500000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:36:48 UTC, "updated_at"=>2013-10-31 17:36:49 UTC, "memberships"=>[{"_id"=>"5272953187f643a24500000e", "role"=>"admin", "account_id"=>"5272953187f643a245000001"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272953187f643a24500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5272953187f643a24500000d", "_id"=>{"$ne"=>"5272953187f643a24500000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272953187f643a24500000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272953187f643a24500000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a24500000d", "template_dependencies.en"=>{"$in"=>["5272953187f643a24500000f"]}}, "$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"=>"5272953187f643a24500000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272953187f643a24500000f"]}} 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"=>"5272953187f643a24500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272953187f643a24500000d", "_id"=>{"$ne"=>"5272953187f643a245000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272953187f643a24500000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272953187f643a245000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272953187f643a24500000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.1893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a24500000d", "template_dependencies.en"=>{"$in"=>["5272953187f643a245000010"]}}, "$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"=>"5272953187f643a245000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4618ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272953187f643a245000010"]}} 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"=>"5272953187f643a24500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5272953187f643a24500000d", "_id"=>{"$ne"=>"5272953187f643a245000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272953187f643a24500000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2933ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272953187f643a245000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272953187f643a24500000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a24500000d", "template_dependencies.en"=>{"$in"=>["5272953187f643a245000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272953187f643a245000011"}, "$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"=>["5272953187f643a245000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272953187f643a24500000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272953187f643a245000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272953187f643a24500000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272953187f643a245000013", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC, "entries_custom_fields"=>[{"_id"=>"5272953187f643a245000013", "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.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272953187f643a245000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272953187f643a245000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272953187f643a245000012"]}}} (0.8481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272953187f643a245000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272953187f643a245000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272953187f643a245000012", "content_type_id"=>"5272953187f643a245000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272953187f643a24500000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:36:49 UTC, "created_at"=>2013-10-31 17:36:49 UTC}] flags=[] (0.2971ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:36:49 +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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "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 12.7ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:36:49 +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.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272953187f643a245000002", "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.7019ms) Rendered text template (0.0ms) Completed 200 OK in 515.4ms (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 (1.4288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.4872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (3.6118ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5638ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2641ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8659ms) 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.5798ms) 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.5391ms) 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.9649ms) 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.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272962f87f643df9b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7b7c66a26237d95cfeb0e94c8cf5c1f61828d592", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"95ncDpZw2SqqGVhtdt4g", "api_key"=>"eefed96a5950f384d3b5ca506d24a6ebf48dcd36", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 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} (0.7210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272962f87f643df9b000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:41:02 UTC, "updated_at"=>2013-10-31 17:41:03 UTC, "memberships"=>[{"_id"=>"5272962f87f643df9b000003", "role"=>"admin", "account_id"=>"5272962f87f643df9b000001"}]}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272962f87f643df9b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.9021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b000002", "_id"=>{"$ne"=>"5272962f87f643df9b000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272962f87f643df9b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272962f87f643df9b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.4849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272962f87f643df9b000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (9.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6361ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272962f87f643df9b000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272962f87f643df9b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b000002", "_id"=>{"$ne"=>"5272962f87f643df9b000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272962f87f643df9b000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272962f87f643df9b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b000005"]}}, "$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"=>"5272962f87f643df9b000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272962f87f643df9b000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272962f87f643df9b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272962f87f643df9b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272962f87f643df9b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272962f87f643df9b000007", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC, "entries_custom_fields"=>[{"_id"=>"5272962f87f643df9b000007", "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.2270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272962f87f643df9b000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272962f87f643df9b000008", "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", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}}} flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272962f87f643df9b000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272962f87f643df9b000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5009ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000006"]}}} (0.4227ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272962f87f643df9b000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272962f87f643df9b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272962f87f643df9b000006", "content_type_id"=>"5272962f87f643df9b000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272962f87f643df9b000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272962f87f643df9b00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272962f87f643df9b000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000006"]}}} (0.3972ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000006"]}}} (0.3300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4833ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272962f87f643df9b00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272962f87f643df9b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272962f87f643df9b000006", "content_type_id"=>"5272962f87f643df9b000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272962f87f643df9b000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.3262ms) 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.1811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272962f87f643df9b000002", "parent_id"=>"5272962f87f643df9b000004", "$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"=>"5272962f87f643df9b000004", "site_id"=>"5272962f87f643df9b000002", "_id"=>{"$ne"=>"5272962f87f643df9b00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272962f87f643df9b000004"}]}]}, "$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"=>"5272962f87f643df9b00000b", "parent_ids"=>["5272962f87f643df9b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272962f87f643df9b000002", "parent_id"=>"5272962f87f643df9b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272962f87f643df9b00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272962f87f643df9b00000b"]}} 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.7312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272962f87f643df9b000002", "parent_id"=>"5272962f87f643df9b000004", "$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"=>"5272962f87f643df9b000004", "site_id"=>"5272962f87f643df9b000002", "_id"=>{"$ne"=>"5272962f87f643df9b00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272962f87f643df9b000004", "site_id"=>"5272962f87f643df9b000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272962f87f643df9b000004"}]}]}, "$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"=>"5272962f87f643df9b00000c", "parent_ids"=>["5272962f87f643df9b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Serach results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272962f87f643df9b000002", "parent_id"=>"5272962f87f643df9b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b00000c"]}}, "$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"=>"5272962f87f643df9b00000c"}, "$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"=>["5272962f87f643df9b00000c"]}} 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={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272962f87f643df9b000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272962f87f643df9b000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:41:03 UTC}} flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b000004"]}}, "$orderby"=>{"position"=>1}} 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_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.3207ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272962f87f643df9b00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:41:02 UTC, "updated_at"=>2013-10-31 17:41:03 UTC, "memberships"=>[{"_id"=>"5272962f87f643df9b00000e", "role"=>"admin", "account_id"=>"5272962f87f643df9b000001"}]}] flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272962f87f643df9b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b00000d", "_id"=>{"$ne"=>"5272962f87f643df9b00000f"}, "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"=>"5272962f87f643df9b00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272962f87f643df9b00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b00000d", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b00000f"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"5272962f87f643df9b00000f"}, "$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"=>["5272962f87f643df9b00000f"]}} 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=locomotive_pages selector={"site_id"=>"5272962f87f643df9b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b00000d", "_id"=>{"$ne"=>"5272962f87f643df9b000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272962f87f643df9b000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272962f87f643df9b00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b00000d", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b000010"]}}, "$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"=>"5272962f87f643df9b000010"}, "$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"=>["5272962f87f643df9b000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272962f87f643df9b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b00000d", "_id"=>{"$ne"=>"5272962f87f643df9b000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5272962f87f643df9b00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) 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.2801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272962f87f643df9b000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272962f87f643df9b00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b00000d", "template_dependencies.en"=>{"$in"=>["5272962f87f643df9b000011"]}}, "$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"=>"5272962f87f643df9b000011"}, "$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"=>["5272962f87f643df9b000011"]}} 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_content_types selector={"site_id"=>"5272962f87f643df9b00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272962f87f643df9b000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272962f87f643df9b00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272962f87f643df9b000013", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC, "entries_custom_fields"=>[{"_id"=>"5272962f87f643df9b000013", "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"=>"5272962f87f643df9b000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000012"]}} 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_entries selector={"content_type_id"=>"5272962f87f643df9b000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4528ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272962f87f643df9b000012"]}}} (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272962f87f643df9b000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272962f87f643df9b000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272962f87f643df9b000012", "content_type_id"=>"5272962f87f643df9b000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272962f87f643df9b00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:41:03 UTC, "created_at"=>2013-10-31 17:41:03 UTC}] flags=[] (0.2639ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:41: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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.2448ms) Rendered text template (0.0ms) Completed 200 OK in 16.4ms (Views: 6.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:41: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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272962f87f643df9b000002", "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.5932ms) Rendered text template (0.0ms) Completed 200 OK in 513.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.6552ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0991ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6380ms) 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.5198ms) 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.6096ms) 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.7980ms) 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.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272965b87f6432f0b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d3accf98a4f317c6cb5cfa2140e4eafddf6349ae", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"fzn3psLjJo5qHqK6kJH1", "api_key"=>"397506ac4ce01dc9ccf942d94ac96297f0febd1a", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.2451ms) 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.9060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272965b87f6432f0b000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:41:46 UTC, "updated_at"=>2013-10-31 17:41:47 UTC, "memberships"=>[{"_id"=>"5272965b87f6432f0b000003", "role"=>"admin", "account_id"=>"5272965b87f6432f0b000001"}]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272965b87f6432f0b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272965b87f6432f0b000002", "_id"=>{"$ne"=>"5272965b87f6432f0b000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272965b87f6432f0b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272965b87f6432f0b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272965b87f6432f0b000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b000004"]}}, "$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"=>["5272965b87f6432f0b000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272965b87f6432f0b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272965b87f6432f0b000002", "_id"=>{"$ne"=>"5272965b87f6432f0b000005"}, "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"=>"5272965b87f6432f0b000002"}, "$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"=>"5272965b87f6432f0b000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272965b87f6432f0b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b000005"]}}, "$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"=>"5272965b87f6432f0b000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272965b87f6432f0b000005"]}} 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"=>"5272965b87f6432f0b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272965b87f6432f0b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272965b87f6432f0b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272965b87f6432f0b000007", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC, "entries_custom_fields"=>[{"_id"=>"5272965b87f6432f0b000007", "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.2260ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272965b87f6432f0b000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272965b87f6432f0b000008", "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", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}}} flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272965b87f6432f0b000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272965b87f6432f0b000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4499ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000006"]}}} (0.3688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272965b87f6432f0b000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272965b87f6432f0b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272965b87f6432f0b000006", "content_type_id"=>"5272965b87f6432f0b000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272965b87f6432f0b000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272965b87f6432f0b00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272965b87f6432f0b000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000006"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000006"]}}} (0.3200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272965b87f6432f0b00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272965b87f6432f0b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272965b87f6432f0b000006", "content_type_id"=>"5272965b87f6432f0b000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272965b87f6432f0b000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 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.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272965b87f6432f0b000002", "parent_id"=>"5272965b87f6432f0b000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5272965b87f6432f0b000004", "site_id"=>"5272965b87f6432f0b000002", "_id"=>{"$ne"=>"5272965b87f6432f0b00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272965b87f6432f0b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5503ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272965b87f6432f0b00000b", "parent_ids"=>["5272965b87f6432f0b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272965b87f6432f0b000002", "parent_id"=>"5272965b87f6432f0b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b00000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272965b87f6432f0b00000b"}, "$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"=>["5272965b87f6432f0b00000b"]}} 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.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272965b87f6432f0b000002", "parent_id"=>"5272965b87f6432f0b000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272965b87f6432f0b000004", "site_id"=>"5272965b87f6432f0b000002", "_id"=>{"$ne"=>"5272965b87f6432f0b00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5272965b87f6432f0b000004", "site_id"=>"5272965b87f6432f0b000002"}, "$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"=>"5272965b87f6432f0b000004"}]}]}, "$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"=>"5272965b87f6432f0b00000c", "parent_ids"=>["5272965b87f6432f0b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Serach results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272965b87f6432f0b000002", "parent_id"=>"5272965b87f6432f0b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.2444ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272965b87f6432f0b00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272965b87f6432f0b00000c"]}} 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"=>"5272965b87f6432f0b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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"=>"5272965b87f6432f0b000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272965b87f6432f0b000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:41:47 UTC}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272965b87f6432f0b00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:41:46 UTC, "updated_at"=>2013-10-31 17:41:47 UTC, "memberships"=>[{"_id"=>"5272965b87f6432f0b00000e", "role"=>"admin", "account_id"=>"5272965b87f6432f0b000001"}]}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272965b87f6432f0b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5272965b87f6432f0b00000d", "_id"=>{"$ne"=>"5272965b87f6432f0b00000f"}, "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"=>"5272965b87f6432f0b00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272965b87f6432f0b00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b00000d", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b00000f"]}}, "$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"=>"5272965b87f6432f0b00000f"}, "$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"=>["5272965b87f6432f0b00000f"]}} 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={"site_id"=>"5272965b87f6432f0b00000d", "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"=>"5272965b87f6432f0b00000d", "_id"=>{"$ne"=>"5272965b87f6432f0b000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5272965b87f6432f0b00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272965b87f6432f0b000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272965b87f6432f0b00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b00000d", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272965b87f6432f0b000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272965b87f6432f0b000010"]}} 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"=>"5272965b87f6432f0b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5272965b87f6432f0b00000d", "_id"=>{"$ne"=>"5272965b87f6432f0b000011"}, "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"=>"5272965b87f6432f0b00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5272965b87f6432f0b000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272965b87f6432f0b00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b00000d", "template_dependencies.en"=>{"$in"=>["5272965b87f6432f0b000011"]}}, "$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"=>"5272965b87f6432f0b000011"}, "$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"=>["5272965b87f6432f0b000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272965b87f6432f0b00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272965b87f6432f0b000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272965b87f6432f0b00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272965b87f6432f0b000013", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC, "entries_custom_fields"=>[{"_id"=>"5272965b87f6432f0b000013", "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"=>"5272965b87f6432f0b000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000012"]}} 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_content_entries selector={"content_type_id"=>"5272965b87f6432f0b000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4451ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272965b87f6432f0b000012"]}}} (0.4489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272965b87f6432f0b000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272965b87f6432f0b000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272965b87f6432f0b000012", "content_type_id"=>"5272965b87f6432f0b000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272965b87f6432f0b00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:41:47 UTC, "created_at"=>2013-10-31 17:41:47 UTC}] flags=[] (0.2930ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:41:47 +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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8268ms) Rendered text template (0.0ms) Completed 200 OK in 15.1ms (Views: 8.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:41:47 +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.7832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272965b87f6432f0b000002", "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.8540ms) Rendered text template (0.0ms) Completed 200 OK in 514.7ms (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.6289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2088ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2794ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9181ms) 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.5822ms) 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.9389ms) 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.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527296c387f6436e4a000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8a8e25397c7b58ba6a5ff96bc865a77f8245247d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Kmzw7yq1wqEgpfyzQ1wh", "api_key"=>"6fbe9961b9cc5b1d5795639a44bc45d21b1b71f0", "updated_at"=>2013-10-31 17:43:31 UTC, "created_at"=>2013-10-31 17:43:31 UTC}] flags=[] (0.2408ms) 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.8121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527296c387f6436e4a000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:43:31 UTC, "updated_at"=>2013-10-31 17:43:31 UTC, "memberships"=>[{"_id"=>"527296c387f6436e4a000003", "role"=>"admin", "account_id"=>"527296c387f6436e4a000001"}]}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527296c387f6436e4a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527296c387f6436e4a000002", "_id"=>{"$ne"=>"527296c387f6436e4a000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527296c387f6436e4a000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527296c387f6436e4a000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:31 UTC, "created_at"=>2013-10-31 17:43:31 UTC}] flags=[] (0.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527296c387f6436e4a000004"}, "$orderby"=>{"position"=>1}} 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"=>"527296c387f6436e4a000002", "template_dependencies.en"=>{"$in"=>["527296c387f6436e4a000004"]}}, "$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"=>["527296c387f6436e4a000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527296c387f6436e4a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527296c387f6436e4a000002", "_id"=>{"$ne"=>"527296c387f6436e4a000005"}, "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"=>"527296c387f6436e4a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527296c387f6436e4a000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527296c387f6436e4a000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:31 UTC, "created_at"=>2013-10-31 17:43:31 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c387f6436e4a000002", "template_dependencies.en"=>{"$in"=>["527296c387f6436e4a000005"]}}, "$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"=>"527296c387f6436e4a000005"}, "$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"=>["527296c387f6436e4a000005"]}} 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_content_types selector={"site_id"=>"527296c387f6436e4a000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527296c387f6436e4a000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527296c387f6436e4a000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527296c487f6436e4a000007", "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC, "entries_custom_fields"=>[{"_id"=>"527296c487f6436e4a000007", "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.2301ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527296c387f6436e4a000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527296c487f6436e4a000008", "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", "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}}} flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527296c487f6436e4a000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527296c387f6436e4a000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527296c387f6436e4a000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527296c387f6436e4a000006"]}}} (0.4172ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527296c487f6436e4a000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527296c387f6436e4a000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527296c387f6436e4a000006", "content_type_id"=>"527296c387f6436e4a000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527296c387f6436e4a000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527296c487f6436e4a00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527296c387f6436e4a000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527296c387f6436e4a000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527296c387f6436e4a000006"]}}} (0.4508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527296c387f6436e4a000006"]}}} (0.3052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527296c387f6436e4a000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527296c487f6436e4a00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527296c387f6436e4a000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527296c387f6436e4a000006", "content_type_id"=>"527296c387f6436e4a000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527296c387f6436e4a000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.1941ms) 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.8619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527296c387f6436e4a000002", "parent_id"=>"527296c387f6436e4a000004", "$or"=>[{"slug.en"=>"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"=>"527296c387f6436e4a000004", "site_id"=>"527296c387f6436e4a000002", "_id"=>{"$ne"=>"527296c487f6436e4a00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527296c387f6436e4a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527296c487f6436e4a00000b", "parent_ids"=>["527296c387f6436e4a000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527296c387f6436e4a000002", "parent_id"=>"527296c387f6436e4a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c387f6436e4a000002", "template_dependencies.en"=>{"$in"=>["527296c487f6436e4a00000b"]}}, "$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"=>"527296c487f6436e4a00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527296c487f6436e4a00000b"]}} 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.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527296c387f6436e4a000002", "parent_id"=>"527296c387f6436e4a000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"527296c387f6436e4a000004", "site_id"=>"527296c387f6436e4a000002", "_id"=>{"$ne"=>"527296c487f6436e4a00000c"}, "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"=>{"parent_id"=>"527296c387f6436e4a000004", "site_id"=>"527296c387f6436e4a000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527296c387f6436e4a000004"}]}]}, "$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"=>"527296c487f6436e4a00000c", "parent_ids"=>["527296c387f6436e4a000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527296c387f6436e4a000002", "parent_id"=>"527296c387f6436e4a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c387f6436e4a000002", "template_dependencies.en"=>{"$in"=>["527296c487f6436e4a00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527296c487f6436e4a00000c"}, "$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"=>["527296c487f6436e4a00000c"]}} 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"=>"527296c387f6436e4a000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"527296c387f6436e4a000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527296c387f6436e4a000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:43:32 UTC}} flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c387f6436e4a000002", "template_dependencies.en"=>{"$in"=>["527296c387f6436e4a000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3588ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527296c487f6436e4a00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:43:31 UTC, "updated_at"=>2013-10-31 17:43:32 UTC, "memberships"=>[{"_id"=>"527296c487f6436e4a00000e", "role"=>"admin", "account_id"=>"527296c387f6436e4a000001"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527296c487f6436e4a00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527296c487f6436e4a00000d", "_id"=>{"$ne"=>"527296c487f6436e4a00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527296c487f6436e4a00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527296c487f6436e4a00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c487f6436e4a00000d", "template_dependencies.en"=>{"$in"=>["527296c487f6436e4a00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527296c487f6436e4a00000f"}, "$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"=>["527296c487f6436e4a00000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527296c487f6436e4a00000d", "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"=>"527296c487f6436e4a00000d", "_id"=>{"$ne"=>"527296c487f6436e4a000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527296c487f6436e4a00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527296c487f6436e4a000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527296c487f6436e4a00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c487f6436e4a00000d", "template_dependencies.en"=>{"$in"=>["527296c487f6436e4a000010"]}}, "$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"=>"527296c487f6436e4a000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527296c487f6436e4a000010"]}} 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"=>"527296c487f6436e4a00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"527296c487f6436e4a00000d", "_id"=>{"$ne"=>"527296c487f6436e4a000011"}, "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"=>"527296c487f6436e4a00000d"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527296c487f6436e4a000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527296c487f6436e4a00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c487f6436e4a00000d", "template_dependencies.en"=>{"$in"=>["527296c487f6436e4a000011"]}}, "$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"=>"527296c487f6436e4a000011"}, "$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"=>["527296c487f6436e4a000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527296c487f6436e4a00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527296c487f6436e4a000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527296c487f6436e4a00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527296c487f6436e4a000013", "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC, "entries_custom_fields"=>[{"_id"=>"527296c487f6436e4a000013", "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.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527296c487f6436e4a000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527296c487f6436e4a000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527296c487f6436e4a000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4392ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527296c487f6436e4a000012"]}}} (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527296c487f6436e4a000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527296c487f6436e4a000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527296c487f6436e4a000012", "content_type_id"=>"527296c487f6436e4a000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527296c487f6436e4a00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:43:32 UTC, "created_at"=>2013-10-31 17:43:32 UTC}] flags=[] (0.1616ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:43: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.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c387f6436e4a000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) Rendered text template (0.0ms) Completed 200 OK in 12.8ms (Views: 7.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:43:32 +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.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527296c387f6436e4a000002", "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.5870ms) Rendered text template (0.0ms) Completed 200 OK in 559.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.7188ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5331ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9348ms) 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.5879ms) 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.6618ms) 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.0471ms) 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.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272974087f643cce4000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6e7f1f6458ad42b1ab98ef3a3affd91e79ccaf35", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"wSxv6fpqm6qs6wQSA47i", "api_key"=>"f0d8c1dc7e50b678717a7e4c2b3e9f1d0eb863c0", "updated_at"=>2013-10-31 17:45:36 UTC, "created_at"=>2013-10-31 17:45:36 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.7811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272974087f643cce4000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:45:36 UTC, "updated_at"=>2013-10-31 17:45:36 UTC, "memberships"=>[{"_id"=>"5272974087f643cce4000003", "role"=>"admin", "account_id"=>"5272974087f643cce4000001"}]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272974087f643cce4000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9463ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974087f643cce4000002", "_id"=>{"$ne"=>"5272974087f643cce4000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5272974087f643cce4000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272974087f643cce4000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:36 UTC, "created_at"=>2013-10-31 17:45:36 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272974087f643cce4000004"}, "$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"=>{"site_id"=>"5272974087f643cce4000002", "template_dependencies.en"=>{"$in"=>["5272974087f643cce4000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272974087f643cce4000004"]}} 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_pages selector={"site_id"=>"5272974087f643cce4000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974087f643cce4000002", "_id"=>{"$ne"=>"5272974087f643cce4000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974087f643cce4000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272974087f643cce4000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272974087f643cce4000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:36 UTC, "created_at"=>2013-10-31 17:45:36 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "template_dependencies.en"=>{"$in"=>["5272974087f643cce4000005"]}}, "$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"=>"5272974087f643cce4000005"}, "$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"=>["5272974087f643cce4000005"]}} 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_content_types selector={"site_id"=>"5272974087f643cce4000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272974087f643cce4000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272974087f643cce4000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272974087f643cce4000007", "updated_at"=>2013-10-31 17:45:36 UTC, "created_at"=>2013-10-31 17:45:36 UTC, "entries_custom_fields"=>[{"_id"=>"5272974087f643cce4000007", "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.2759ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272974087f643cce4000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272974087f643cce4000008", "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", "updated_at"=>2013-10-31 17:45:36 UTC, "created_at"=>2013-10-31 17:45:36 UTC}}} flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272974087f643cce4000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272974087f643cce4000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272974087f643cce4000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4530ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272974087f643cce4000006"]}}} (0.3889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272974087f643cce4000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272974087f643cce4000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272974087f643cce4000006", "content_type_id"=>"5272974087f643cce4000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272974087f643cce4000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:45:36 UTC, "created_at"=>2013-10-31 17:45:36 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272974187f643cce400000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272974087f643cce4000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272974087f643cce4000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272974087f643cce4000006"]}}} (0.3872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272974087f643cce4000006"]}}} (0.3011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272974087f643cce4000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272974187f643cce400000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272974087f643cce4000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272974087f643cce4000006", "content_type_id"=>"5272974087f643cce4000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272974087f643cce4000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.1652ms) 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.7081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272974087f643cce4000002", "parent_id"=>"5272974087f643cce4000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272974087f643cce4000004", "site_id"=>"5272974087f643cce4000002", "_id"=>{"$ne"=>"5272974187f643cce400000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272974087f643cce4000004"}]}]}, "$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"=>"5272974187f643cce400000b", "parent_ids"=>["5272974087f643cce4000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272974087f643cce4000002", "parent_id"=>"5272974087f643cce4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.2868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "template_dependencies.en"=>{"$in"=>["5272974187f643cce400000b"]}}, "$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"=>"5272974187f643cce400000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272974187f643cce400000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272974087f643cce4000002", "parent_id"=>"5272974087f643cce4000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272974087f643cce4000004", "site_id"=>"5272974087f643cce4000002", "_id"=>{"$ne"=>"5272974187f643cce400000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272974087f643cce4000004", "site_id"=>"5272974087f643cce4000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272974087f643cce4000004"}]}]}, "$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"=>"5272974187f643cce400000c", "parent_ids"=>["5272974087f643cce4000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272974087f643cce4000002", "parent_id"=>"5272974087f643cce4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "template_dependencies.en"=>{"$in"=>["5272974187f643cce400000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272974187f643cce400000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272974187f643cce400000c"]}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272974087f643cce4000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272974087f643cce4000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:45:37 UTC}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "template_dependencies.en"=>{"$in"=>["5272974087f643cce4000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) 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.8278ms) 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"=>"5272974187f643cce400000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:45:36 UTC, "updated_at"=>2013-10-31 17:45:37 UTC, "memberships"=>[{"_id"=>"5272974187f643cce400000e", "role"=>"admin", "account_id"=>"5272974087f643cce4000001"}]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272974187f643cce400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974187f643cce400000d", "_id"=>{"$ne"=>"5272974187f643cce400000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272974187f643cce400000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272974187f643cce400000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974187f643cce400000d", "template_dependencies.en"=>{"$in"=>["5272974187f643cce400000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272974187f643cce400000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272974187f643cce400000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272974187f643cce400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974187f643cce400000d", "_id"=>{"$ne"=>"5272974187f643cce4000010"}, "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"=>nil, "site_id"=>"5272974187f643cce400000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272974187f643cce4000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272974187f643cce400000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.2797ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974187f643cce400000d", "template_dependencies.en"=>{"$in"=>["5272974187f643cce4000010"]}}, "$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"=>"5272974187f643cce4000010"}, "$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"=>["5272974187f643cce4000010"]}} 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"=>"5272974187f643cce400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974187f643cce400000d", "_id"=>{"$ne"=>"5272974187f643cce4000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272974187f643cce400000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.4251ms) 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"=>"5272974187f643cce4000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272974187f643cce400000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974187f643cce400000d", "template_dependencies.en"=>{"$in"=>["5272974187f643cce4000011"]}}, "$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"=>"5272974187f643cce4000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272974187f643cce4000011"]}} 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"=>"5272974187f643cce400000d", "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"=>"5272974187f643cce4000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272974187f643cce400000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272974187f643cce4000013", "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC, "entries_custom_fields"=>[{"_id"=>"5272974187f643cce4000013", "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"=>"5272974187f643cce4000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272974187f643cce4000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272974187f643cce4000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272974187f643cce4000012"]}}} (0.5212ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272974187f643cce4000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272974187f643cce4000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272974187f643cce4000012", "content_type_id"=>"5272974187f643cce4000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272974187f643cce400000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:45:37 UTC, "created_at"=>2013-10-31 17:45:37 UTC}] flags=[] (0.1869ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:45:37 +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 (1.0080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6750ms) Rendered text template (0.0ms) Completed 200 OK in 15.6ms (Views: 8.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:45:37 +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.8571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272974087f643cce4000002", "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.5958ms) Rendered text template (0.0ms) Completed 200 OK in 530.4ms (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.7250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3802ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3969ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.8830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1258ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0231ms) 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.6080ms) 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.5801ms) 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.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272977787f643646c000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"663fd7ebc51c3a8172097f7f68f1910a7a3012d5", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"GMfpdPb4yAECsmZB2qgC", "api_key"=>"0b582be381b6627854225dd8c7031fa01e4f5db5", "updated_at"=>2013-10-31 17:46:31 UTC, "created_at"=>2013-10-31 17:46:31 UTC}] flags=[] (0.1550ms) 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.8659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272977787f643646c000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:46:31 UTC, "updated_at"=>2013-10-31 17:46:31 UTC, "memberships"=>[{"_id"=>"5272977787f643646c000003", "role"=>"admin", "account_id"=>"5272977787f643646c000001"}]}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272977787f643646c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272977787f643646c000002", "_id"=>{"$ne"=>"5272977887f643646c000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272977887f643646c000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272977787f643646c000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272977887f643646c000004"}, "$orderby"=>{"position"=>1}} 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"=>"5272977787f643646c000002", "template_dependencies.en"=>{"$in"=>["5272977887f643646c000004"]}}, "$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"=>["5272977887f643646c000004"]}} 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"=>"5272977787f643646c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272977787f643646c000002", "_id"=>{"$ne"=>"5272977887f643646c000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5272977787f643646c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272977887f643646c000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272977787f643646c000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977787f643646c000002", "template_dependencies.en"=>{"$in"=>["5272977887f643646c000005"]}}, "$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"=>"5272977887f643646c000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272977887f643646c000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1197ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272977787f643646c000002", "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"=>"5272977887f643646c000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272977787f643646c000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272977887f643646c000007", "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC, "entries_custom_fields"=>[{"_id"=>"5272977887f643646c000007", "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.2592ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272977887f643646c000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272977887f643646c000008", "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", "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}}} flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272977887f643646c000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272977887f643646c000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000006"]}}} (0.4108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272977887f643646c000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272977887f643646c000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272977887f643646c000006", "content_type_id"=>"5272977887f643646c000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272977787f643646c000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272977887f643646c00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272977887f643646c000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000006"]}}} (0.3920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000006"]}}} (0.3021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272977887f643646c00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272977887f643646c000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272977887f643646c000006", "content_type_id"=>"5272977887f643646c000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272977787f643646c000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.1941ms) 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.9751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272977787f643646c000002", "parent_id"=>"5272977887f643646c000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272977887f643646c000004", "site_id"=>"5272977787f643646c000002", "_id"=>{"$ne"=>"5272977887f643646c00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272977887f643646c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5407ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272977887f643646c00000b", "parent_ids"=>["5272977887f643646c000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272977787f643646c000002", "parent_id"=>"5272977887f643646c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977787f643646c000002", "template_dependencies.en"=>{"$in"=>["5272977887f643646c00000b"]}}, "$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"=>"5272977887f643646c00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272977887f643646c00000b"]}} 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.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272977787f643646c000002", "parent_id"=>"5272977887f643646c000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272977887f643646c000004", "site_id"=>"5272977787f643646c000002", "_id"=>{"$ne"=>"5272977887f643646c00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272977887f643646c000004", "site_id"=>"5272977787f643646c000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272977887f643646c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272977887f643646c00000c", "parent_ids"=>["5272977887f643646c000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272977787f643646c000002", "parent_id"=>"5272977887f643646c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977787f643646c000002", "template_dependencies.en"=>{"$in"=>["5272977887f643646c00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"5272977887f643646c00000c"}, "$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"=>["5272977887f643646c00000c"]}} 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={"$query"=>{"site_id"=>"5272977787f643646c000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272977787f643646c000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272977887f643646c000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:46:32 UTC}} flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977787f643646c000002", "template_dependencies.en"=>{"$in"=>["5272977887f643646c000004"]}}, "$orderby"=>{"position"=>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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8552ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272977887f643646c00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:46:31 UTC, "updated_at"=>2013-10-31 17:46:32 UTC, "memberships"=>[{"_id"=>"5272977887f643646c00000e", "role"=>"admin", "account_id"=>"5272977787f643646c000001"}]}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272977887f643646c00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272977887f643646c00000d", "_id"=>{"$ne"=>"5272977887f643646c00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272977887f643646c00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272977887f643646c00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977887f643646c00000d", "template_dependencies.en"=>{"$in"=>["5272977887f643646c00000f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272977887f643646c00000f"}, "$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"=>["5272977887f643646c00000f"]}} 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={"site_id"=>"5272977887f643646c00000d", "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"=>"5272977887f643646c00000d", "_id"=>{"$ne"=>"5272977887f643646c000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272977887f643646c00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272977887f643646c000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272977887f643646c00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977887f643646c00000d", "template_dependencies.en"=>{"$in"=>["5272977887f643646c000010"]}}, "$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"=>"5272977887f643646c000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272977887f643646c000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272977887f643646c00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272977887f643646c00000d", "_id"=>{"$ne"=>"5272977887f643646c000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272977887f643646c00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6659ms) 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.3531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272977887f643646c000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272977887f643646c00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977887f643646c00000d", "template_dependencies.en"=>{"$in"=>["5272977887f643646c000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272977887f643646c000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272977887f643646c000011"]}} 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"=>"5272977887f643646c00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272977887f643646c000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272977887f643646c00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272977887f643646c000013", "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC, "entries_custom_fields"=>[{"_id"=>"5272977887f643646c000013", "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.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272977887f643646c000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000012"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5272977887f643646c000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272977887f643646c000012"]}}} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272977887f643646c000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272977887f643646c000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272977887f643646c000012", "content_type_id"=>"5272977887f643646c000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272977887f643646c00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:46:32 UTC, "created_at"=>2013-10-31 17:46:32 UTC}] flags=[] (0.1588ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:46: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.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977787f643646c000002", "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 13.6ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:46:32 +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.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272977787f643646c000002", "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.7658ms) Rendered text template (0.0ms) Completed 200 OK in 508.8ms (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.6089ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0958ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2608ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9003ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5589ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9360ms) 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.5739ms) 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.4911ms) 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.9341ms) 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.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272979387f643e924000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"32e80c2a526550eeb4beac651a968f277fc24899", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"wsLzZ3VubLMBb8gbcz76", "api_key"=>"f1fcd0379f199bb528d4e43ab5082b39d3099228", "updated_at"=>2013-10-31 17:46:59 UTC, "created_at"=>2013-10-31 17:46:59 UTC}] flags=[] (0.1600ms) 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.7360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272979387f643e924000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 17:46:59 UTC, "updated_at"=>2013-10-31 17:46:59 UTC, "memberships"=>[{"_id"=>"5272979387f643e924000003", "role"=>"admin", "account_id"=>"5272979387f643e924000001"}]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272979387f643e924000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272979387f643e924000002", "_id"=>{"$ne"=>"5272979387f643e924000004"}, "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"=>"5272979387f643e924000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272979387f643e924000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:46:59 UTC, "created_at"=>2013-10-31 17:46:59 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272979387f643e924000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"site_id"=>"5272979387f643e924000002", "template_dependencies.en"=>{"$in"=>["5272979387f643e924000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4113ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979387f643e924000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272979387f643e924000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272979387f643e924000002", "_id"=>{"$ne"=>"5272979387f643e924000005"}, "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"=>"5272979387f643e924000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272979387f643e924000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272979387f643e924000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979387f643e924000002", "template_dependencies.en"=>{"$in"=>["5272979387f643e924000005"]}}, "$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"=>"5272979387f643e924000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979387f643e924000005"]}} 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"=>"5272979387f643e924000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272979487f643e924000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272979387f643e924000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272979487f643e924000007", "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC, "entries_custom_fields"=>[{"_id"=>"5272979487f643e924000007", "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.2313ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272979487f643e924000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272979487f643e924000008", "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", "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}}} flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272979487f643e924000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272979487f643e924000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4992ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000006"]}}} (0.4606ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272979487f643e924000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272979487f643e924000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272979487f643e924000006", "content_type_id"=>"5272979487f643e924000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272979387f643e924000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272979487f643e92400000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272979487f643e924000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3703ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000006"]}}} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000006"]}}} (0.3183ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272979487f643e92400000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272979487f643e924000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272979487f643e924000006", "content_type_id"=>"5272979487f643e924000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272979387f643e924000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] 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.7529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272979387f643e924000002", "parent_id"=>"5272979387f643e924000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272979387f643e924000004", "site_id"=>"5272979387f643e924000002", "_id"=>{"$ne"=>"5272979487f643e92400000b"}, "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"=>"5272979387f643e924000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272979487f643e92400000b", "parent_ids"=>["5272979387f643e924000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272979387f643e924000002", "parent_id"=>"5272979387f643e924000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979387f643e924000002", "template_dependencies.en"=>{"$in"=>["5272979487f643e92400000b"]}}, "$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"=>"5272979487f643e92400000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979487f643e92400000b"]}} 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={"$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"=>"5272979387f643e924000002", "parent_id"=>"5272979387f643e924000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5272979387f643e924000004", "site_id"=>"5272979387f643e924000002", "_id"=>{"$ne"=>"5272979487f643e92400000c"}, "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"=>"5272979387f643e924000004", "site_id"=>"5272979387f643e924000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272979387f643e924000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272979487f643e92400000c", "parent_ids"=>["5272979387f643e924000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272979387f643e924000002", "parent_id"=>"5272979387f643e924000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979387f643e924000002", "template_dependencies.en"=>{"$in"=>["5272979487f643e92400000c"]}}, "$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"=>"5272979487f643e92400000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979487f643e92400000c"]}} 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"=>{"site_id"=>"5272979387f643e924000002", "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_sites selector={"$query"=>{"_id"=>"5272979387f643e924000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4008ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272979387f643e924000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 17:47:00 UTC}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979387f643e924000002", "template_dependencies.en"=>{"$in"=>["5272979387f643e924000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272979487f643e92400000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 17:46:59 UTC, "updated_at"=>2013-10-31 17:47:00 UTC, "memberships"=>[{"_id"=>"5272979487f643e92400000e", "role"=>"admin", "account_id"=>"5272979387f643e924000001"}]}] flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272979487f643e92400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5272979487f643e92400000d", "_id"=>{"$ne"=>"5272979487f643e92400000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5272979487f643e92400000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272979487f643e92400000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979487f643e92400000d", "template_dependencies.en"=>{"$in"=>["5272979487f643e92400000f"]}}, "$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"=>"5272979487f643e92400000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4086ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979487f643e92400000f"]}} 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_pages selector={"site_id"=>"5272979487f643e92400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272979487f643e92400000d", "_id"=>{"$ne"=>"5272979487f643e924000010"}, "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"=>nil, "site_id"=>"5272979487f643e92400000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272979487f643e924000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272979487f643e92400000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979487f643e92400000d", "template_dependencies.en"=>{"$in"=>["5272979487f643e924000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272979487f643e924000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979487f643e924000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272979487f643e92400000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5272979487f643e92400000d", "_id"=>{"$ne"=>"5272979487f643e924000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272979487f643e92400000d"}, "$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.3257ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272979487f643e924000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272979487f643e92400000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979487f643e92400000d", "template_dependencies.en"=>{"$in"=>["5272979487f643e924000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272979487f643e924000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272979487f643e924000011"]}} 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_content_types selector={"site_id"=>"5272979487f643e92400000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272979487f643e924000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272979487f643e92400000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272979487f643e924000013", "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC, "entries_custom_fields"=>[{"_id"=>"5272979487f643e924000013", "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.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272979487f643e924000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272979487f643e924000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8347ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272979487f643e924000012"]}}} (0.5748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272979487f643e924000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272979487f643e924000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272979487f643e924000012", "content_type_id"=>"5272979487f643e924000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272979487f643e92400000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 17:47:00 UTC, "created_at"=>2013-10-31 17:47:00 UTC}] flags=[] (0.1991ms) Started GET "/" for 127.0.0.1 at 2013-10-31 18:47:00 +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.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979387f643e924000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7391ms) Rendered text template (0.0ms) Completed 200 OK in 15.1ms (Views: 9.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 18:47:00 +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.8121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272979387f643e924000002", "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.5989ms) Rendered text template (0.0ms) Completed 200 OK in 608.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.6692ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9620ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8168ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5817ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0748ms) 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.6700ms) 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.5398ms) 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.9720ms) 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.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272a49587f643c2ee000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"586b183b6402ab71ca7aca384db9f354516bae71", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"PNfBMUqZoVjxFugkAZe2", "api_key"=>"40f7bd3012ed71d30ed1ab6b407d4ec14df81d9f", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 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} (0.7410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272a49587f643c2ee000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 18:42:28 UTC, "updated_at"=>2013-10-31 18:42:29 UTC, "memberships"=>[{"_id"=>"5272a49587f643c2ee000003", "role"=>"admin", "account_id"=>"5272a49587f643c2ee000001"}]}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272a49587f643c2ee000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee000002", "_id"=>{"$ne"=>"5272a49587f643c2ee000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272a49587f643c2ee000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272a49587f643c2ee000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272a49587f643c2ee000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee000004"]}}, "$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"=>["5272a49587f643c2ee000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272a49587f643c2ee000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee000002", "_id"=>{"$ne"=>"5272a49587f643c2ee000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272a49587f643c2ee000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272a49587f643c2ee000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee000005"]}}, "$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"=>"5272a49587f643c2ee000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272a49587f643c2ee000005"]}} 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_content_types selector={"site_id"=>"5272a49587f643c2ee000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272a49587f643c2ee000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272a49587f643c2ee000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272a49587f643c2ee000007", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC, "entries_custom_fields"=>[{"_id"=>"5272a49587f643c2ee000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272a49587f643c2ee000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272a49587f643c2ee000008", "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", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}}} flags=[] (0.3459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272a49587f643c2ee000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272a49587f643c2ee000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000006"]}}} (0.5231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272a49587f643c2ee000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272a49587f643c2ee000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272a49587f643c2ee000006", "content_type_id"=>"5272a49587f643c2ee000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272a49587f643c2ee000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272a49587f643c2ee00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272a49587f643c2ee000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4423ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000006"]}}} (0.4261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000006"]}}} (0.3080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272a49587f643c2ee00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272a49587f643c2ee000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272a49587f643c2ee000006", "content_type_id"=>"5272a49587f643c2ee000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272a49587f643c2ee000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.1709ms) 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.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272a49587f643c2ee000002", "parent_id"=>"5272a49587f643c2ee000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272a49587f643c2ee000004", "site_id"=>"5272a49587f643c2ee000002", "_id"=>{"$ne"=>"5272a49587f643c2ee00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5088ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272a49587f643c2ee000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272a49587f643c2ee00000b", "parent_ids"=>["5272a49587f643c2ee000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272a49587f643c2ee000002", "parent_id"=>"5272a49587f643c2ee000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272a49587f643c2ee00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4992ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272a49587f643c2ee00000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272a49587f643c2ee000002", "parent_id"=>"5272a49587f643c2ee000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5272a49587f643c2ee000004", "site_id"=>"5272a49587f643c2ee000002", "_id"=>{"$ne"=>"5272a49587f643c2ee00000c"}, "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"=>"5272a49587f643c2ee000004", "site_id"=>"5272a49587f643c2ee000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272a49587f643c2ee000004"}]}]}, "$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"=>"5272a49587f643c2ee00000c", "parent_ids"=>["5272a49587f643c2ee000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272a49587f643c2ee000002", "parent_id"=>"5272a49587f643c2ee000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee00000c"]}}, "$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"=>"5272a49587f643c2ee00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272a49587f643c2ee00000c"]}} 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"=>{"site_id"=>"5272a49587f643c2ee000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272a49587f643c2ee000002"}, "$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"=>"5272a49587f643c2ee000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 18:42:29 UTC}} flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5653ms) 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.6897ms) 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.3614ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272a49587f643c2ee00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 18:42:28 UTC, "updated_at"=>2013-10-31 18:42:29 UTC, "memberships"=>[{"_id"=>"5272a49587f643c2ee00000e", "role"=>"admin", "account_id"=>"5272a49587f643c2ee000001"}]}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272a49587f643c2ee00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee00000d", "_id"=>{"$ne"=>"5272a49587f643c2ee00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5272a49587f643c2ee00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272a49587f643c2ee00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee00000d", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee00000f"]}}, "$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"=>"5272a49587f643c2ee00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272a49587f643c2ee00000f"]}} 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={"site_id"=>"5272a49587f643c2ee00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee00000d", "_id"=>{"$ne"=>"5272a49587f643c2ee000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272a49587f643c2ee000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272a49587f643c2ee00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee00000d", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee000010"]}}, "$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"=>"5272a49587f643c2ee000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272a49587f643c2ee000010"]}} 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"=>"5272a49587f643c2ee00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5272a49587f643c2ee00000d", "_id"=>{"$ne"=>"5272a49587f643c2ee000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272a49587f643c2ee00000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5272a49587f643c2ee000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272a49587f643c2ee00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee00000d", "template_dependencies.en"=>{"$in"=>["5272a49587f643c2ee000011"]}}, "$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"=>"5272a49587f643c2ee000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272a49587f643c2ee000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272a49587f643c2ee00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4282ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272a49587f643c2ee000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272a49587f643c2ee00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272a49587f643c2ee000013", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC, "entries_custom_fields"=>[{"_id"=>"5272a49587f643c2ee000013", "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.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272a49587f643c2ee000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272a49587f643c2ee000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272a49587f643c2ee000012"]}}} (0.7160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272a49587f643c2ee000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272a49587f643c2ee000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272a49587f643c2ee000012", "content_type_id"=>"5272a49587f643c2ee000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272a49587f643c2ee00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 18:42:29 UTC, "created_at"=>2013-10-31 18:42:29 UTC}] flags=[] (0.3116ms) Started GET "/" for 127.0.0.1 at 2013-10-31 19:42: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.8230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) Rendered text template (0.0ms) Completed 200 OK in 16.0ms (Views: 9.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 19:42: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.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272a49587f643c2ee000002", "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.5920ms) Rendered text template (0.0ms) Completed 200 OK in 451.1ms (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.6309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4369ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3182ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9317ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0841ms) 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.6309ms) 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.5260ms) 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.8800ms) 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.5262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272b85387f643956f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c33b3e19ca951fae4e11bfe4cebba00a55472d79", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"4pAMKiBy35pjH56YVYyx", "api_key"=>"eaf057d89cbfbdce3bc3f5f9d90682c32b97d305", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.1690ms) 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.8461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272b85387f643956f000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-10-31 20:06:42 UTC, "updated_at"=>2013-10-31 20:06:43 UTC, "memberships"=>[{"_id"=>"5272b85387f643956f000003", "role"=>"admin", "account_id"=>"5272b85387f643956f000001"}]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272b85387f643956f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272b85387f643956f000002", "_id"=>{"$ne"=>"5272b85387f643956f000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272b85387f643956f000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272b85387f643956f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272b85387f643956f000004"}, "$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"=>{"site_id"=>"5272b85387f643956f000002", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f000004"]}}, "$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"=>["5272b85387f643956f000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272b85387f643956f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2307ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272b85387f643956f000002", "_id"=>{"$ne"=>"5272b85387f643956f000005"}, "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"=>"5272b85387f643956f000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272b85387f643956f000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272b85387f643956f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f000002", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f000005"]}}, "$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"=>"5272b85387f643956f000005"}, "$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"=>["5272b85387f643956f000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272b85387f643956f000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272b85387f643956f000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272b85387f643956f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272b85387f643956f000007", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC, "entries_custom_fields"=>[{"_id"=>"5272b85387f643956f000007", "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.2241ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272b85387f643956f000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272b85387f643956f000008", "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", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}}} flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272b85387f643956f000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272b85387f643956f000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000006"]}}} (0.3910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272b85387f643956f000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272b85387f643956f000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272b85387f643956f000006", "content_type_id"=>"5272b85387f643956f000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272b85387f643956f000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272b85387f643956f00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272b85387f643956f000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000006"]}}} (0.3710ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000006"]}}} (0.3519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272b85387f643956f00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272b85387f643956f000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272b85387f643956f000006", "content_type_id"=>"5272b85387f643956f000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272b85387f643956f000002", "_label_field_name"=>"name", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.2937ms) 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"=>"5272b85387f643956f000002", "parent_id"=>"5272b85387f643956f000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5272b85387f643956f000004", "site_id"=>"5272b85387f643956f000002", "_id"=>{"$ne"=>"5272b85387f643956f00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272b85387f643956f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272b85387f643956f00000b", "parent_ids"=>["5272b85387f643956f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272b85387f643956f000002", "parent_id"=>"5272b85387f643956f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f000002", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.2710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272b85387f643956f00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272b85387f643956f00000b"]}} 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.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272b85387f643956f000002", "parent_id"=>"5272b85387f643956f000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272b85387f643956f000004", "site_id"=>"5272b85387f643956f000002", "_id"=>{"$ne"=>"5272b85387f643956f00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5272b85387f643956f000004", "site_id"=>"5272b85387f643956f000002"}, "$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"=>"5272b85387f643956f000004"}]}]}, "$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"=>"5272b85387f643956f00000c", "parent_ids"=>["5272b85387f643956f000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272b85387f643956f000002", "parent_id"=>"5272b85387f643956f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f000002", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f00000c"]}}, "$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"=>"5272b85387f643956f00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272b85387f643956f00000c"]}} 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"=>{"site_id"=>"5272b85387f643956f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272b85387f643956f000002"}, "$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"=>"5272b85387f643956f000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-10-31 20:06:43 UTC}} flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f000002", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) 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.5162ms) 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.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272b85387f643956f00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-10-31 20:06:42 UTC, "updated_at"=>2013-10-31 20:06:43 UTC, "memberships"=>[{"_id"=>"5272b85387f643956f00000e", "role"=>"admin", "account_id"=>"5272b85387f643956f000001"}]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272b85387f643956f00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272b85387f643956f00000d", "_id"=>{"$ne"=>"5272b85387f643956f00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5272b85387f643956f00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272b85387f643956f00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f00000d", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f00000f"]}}, "$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"=>"5272b85387f643956f00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272b85387f643956f00000f"]}} 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"=>"5272b85387f643956f00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272b85387f643956f00000d", "_id"=>{"$ne"=>"5272b85387f643956f000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5272b85387f643956f00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5167ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272b85387f643956f000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272b85387f643956f00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f00000d", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f000010"]}}, "$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"=>"5272b85387f643956f000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272b85387f643956f000010"]}} 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"=>"5272b85387f643956f00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5272b85387f643956f00000d", "_id"=>{"$ne"=>"5272b85387f643956f000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272b85387f643956f00000d"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5272b85387f643956f000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272b85387f643956f00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f00000d", "template_dependencies.en"=>{"$in"=>["5272b85387f643956f000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272b85387f643956f000011"}, "$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"=>["5272b85387f643956f000011"]}} 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"=>"5272b85387f643956f00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272b85387f643956f000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272b85387f643956f00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272b85387f643956f000013", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC, "entries_custom_fields"=>[{"_id"=>"5272b85387f643956f000013", "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.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272b85387f643956f000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272b85387f643956f000012", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272b85387f643956f000012"]}}} (0.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272b85387f643956f000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272b85387f643956f000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272b85387f643956f000012", "content_type_id"=>"5272b85387f643956f000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272b85387f643956f00000d", "_label_field_name"=>"name", "updated_at"=>2013-10-31 20:06:43 UTC, "created_at"=>2013-10-31 20:06:43 UTC}] flags=[] (0.2019ms) Started GET "/" for 127.0.0.1 at 2013-10-31 21:06:43 +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.6742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) Rendered text template (0.0ms) Completed 200 OK in 16.5ms (Views: 10.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-10-31 21:06:43 +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.7179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272b85387f643956f000002", "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.7520ms) Rendered text template (0.0ms) Completed 200 OK in 452.8ms (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.7300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7810ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6692ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5631ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9830ms) 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.7291ms) 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.4711ms) 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.9248ms) 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.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272fcc887f64300ef000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c6a2ba2eb2de4dd6a6279a57963e543423028919", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"bKNqCjNReV9epKj2HywQ", "api_key"=>"14f63d35a5dd56f1b5abb2034b3addc44fe82c4f", "updated_at"=>2013-11-01 00:58:48 UTC, "created_at"=>2013-11-01 00:58:48 UTC}] flags=[] (0.2789ms) 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.8187ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fcc887f64300ef000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 00:58:47 UTC, "updated_at"=>2013-11-01 00:58:48 UTC, "memberships"=>[{"_id"=>"5272fcc887f64300ef000003", "role"=>"admin", "account_id"=>"5272fcc887f64300ef000001"}]}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fcc887f64300ef000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fcc887f64300ef000002", "_id"=>{"$ne"=>"5272fcc987f64300ef000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fcc987f64300ef000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fcc887f64300ef000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.2618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fcc987f64300ef000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fcc987f64300ef000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fcc887f64300ef000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fcc887f64300ef000002", "_id"=>{"$ne"=>"5272fcc987f64300ef000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fcc887f64300ef000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fcc987f64300ef000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fcc887f64300ef000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"5272fcc987f64300ef000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9878ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fcc987f64300ef000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272fcc887f64300ef000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fcc987f64300ef000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fcc887f64300ef000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fcc987f64300ef000007", "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC, "entries_custom_fields"=>[{"_id"=>"5272fcc987f64300ef000007", "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.2530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272fcc987f64300ef000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272fcc987f64300ef000008", "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", "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}}} flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fcc987f64300ef000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fcc987f64300ef000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000006"]}}} (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fcc987f64300ef000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fcc987f64300ef000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fcc987f64300ef000006", "content_type_id"=>"5272fcc987f64300ef000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272fcc887f64300ef000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fcc987f64300ef00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fcc987f64300ef000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000006"]}}} (0.3898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000006"]}}} (0.3500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fcc987f64300ef00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fcc987f64300ef000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fcc987f64300ef000006", "content_type_id"=>"5272fcc987f64300ef000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272fcc887f64300ef000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.1738ms) 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.9749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fcc887f64300ef000002", "parent_id"=>"5272fcc987f64300ef000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fcc987f64300ef000004", "site_id"=>"5272fcc887f64300ef000002", "_id"=>{"$ne"=>"5272fcc987f64300ef00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fcc987f64300ef000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fcc987f64300ef00000b", "parent_ids"=>["5272fcc987f64300ef000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272fcc887f64300ef000002", "parent_id"=>"5272fcc987f64300ef000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.3242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef00000b"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"5272fcc987f64300ef00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3116ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fcc987f64300ef00000b"]}} 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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fcc887f64300ef000002", "parent_id"=>"5272fcc987f64300ef000004", "$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"=>"5272fcc987f64300ef000004", "site_id"=>"5272fcc887f64300ef000002", "_id"=>{"$ne"=>"5272fcc987f64300ef00000c"}, "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"=>"5272fcc987f64300ef000004", "site_id"=>"5272fcc887f64300ef000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fcc987f64300ef000004"}]}]}, "$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"=>"5272fcc987f64300ef00000c", "parent_ids"=>["5272fcc987f64300ef000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272fcc887f64300ef000002", "parent_id"=>"5272fcc987f64300ef000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef00000c"]}}, "$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"=>"5272fcc987f64300ef00000c"}, "$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"=>["5272fcc987f64300ef00000c"]}} 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"=>{"site_id"=>"5272fcc887f64300ef000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5272fcc887f64300ef000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3848ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272fcc987f64300ef000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 00:58:49 UTC}} flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef000004"]}}, "$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_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.3700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fcc987f64300ef00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 00:58:47 UTC, "updated_at"=>2013-11-01 00:58:49 UTC, "memberships"=>[{"_id"=>"5272fcc987f64300ef00000e", "role"=>"admin", "account_id"=>"5272fcc887f64300ef000001"}]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fcc987f64300ef00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fcc987f64300ef00000d", "_id"=>{"$ne"=>"5272fcc987f64300ef00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272fcc987f64300ef00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fcc987f64300ef00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc987f64300ef00000d", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef00000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fcc987f64300ef00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fcc987f64300ef00000f"]}} 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"=>"5272fcc987f64300ef00000d", "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"=>"5272fcc987f64300ef00000d", "_id"=>{"$ne"=>"5272fcc987f64300ef000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fcc987f64300ef00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fcc987f64300ef000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fcc987f64300ef00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc987f64300ef00000d", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef000010"]}}, "$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"=>"5272fcc987f64300ef000010"}, "$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"=>["5272fcc987f64300ef000010"]}} 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"=>"5272fcc987f64300ef00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fcc987f64300ef00000d", "_id"=>{"$ne"=>"5272fcc987f64300ef000011"}, "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"=>nil, "site_id"=>"5272fcc987f64300ef00000d"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fcc987f64300ef000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272fcc987f64300ef00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc987f64300ef00000d", "template_dependencies.en"=>{"$in"=>["5272fcc987f64300ef000011"]}}, "$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"=>"5272fcc987f64300ef000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fcc987f64300ef000011"]}} 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"=>"5272fcc987f64300ef00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4032ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fcc987f64300ef000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fcc987f64300ef00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fcc987f64300ef000013", "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC, "entries_custom_fields"=>[{"_id"=>"5272fcc987f64300ef000013", "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.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fcc987f64300ef000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000012"]}} 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_content_entries selector={"content_type_id"=>"5272fcc987f64300ef000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fcc987f64300ef000012"]}}} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fcc987f64300ef000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fcc987f64300ef000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fcc987f64300ef000012", "content_type_id"=>"5272fcc987f64300ef000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272fcc987f64300ef00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 00:58:49 UTC, "created_at"=>2013-11-01 00:58:49 UTC}] flags=[] (0.1769ms) Started GET "/" for 127.0.0.1 at 2013-11-01 01:58:49 +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.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "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 14.8ms (Views: 9.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 01:58:49 +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.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fcc887f64300ef000002", "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.6621ms) Rendered text template (0.0ms) Completed 200 OK in 461.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.6618ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2810ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8602ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6378ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0450ms) 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.5190ms) 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.5062ms) 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.0021ms) 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.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272fda487f64375ad000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"05a48f84fcca060e71f66ca21212a3044ba7f017", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"nJowhCqjaHiyBLzV4Fad", "api_key"=>"fad10703631fac2377a5fb440d5423bbe800e6c2", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.1740ms) 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.8290ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fda487f64375ad000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:02:27 UTC, "updated_at"=>2013-11-01 01:02:28 UTC, "memberships"=>[{"_id"=>"5272fda487f64375ad000003", "role"=>"admin", "account_id"=>"5272fda487f64375ad000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fda487f64375ad000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fda487f64375ad000002", "_id"=>{"$ne"=>"5272fda487f64375ad000004"}, "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"=>"5272fda487f64375ad000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fda487f64375ad000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fda487f64375ad000004"}, "$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"=>{"site_id"=>"5272fda487f64375ad000002", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad000004"]}}, "$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"=>["5272fda487f64375ad000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fda487f64375ad000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fda487f64375ad000002", "_id"=>{"$ne"=>"5272fda487f64375ad000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fda487f64375ad000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fda487f64375ad000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fda487f64375ad000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad000005"]}}, "$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"=>"5272fda487f64375ad000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3636ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fda487f64375ad000005"]}} 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"=>"5272fda487f64375ad000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4423ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fda487f64375ad000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fda487f64375ad000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fda487f64375ad000007", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC, "entries_custom_fields"=>[{"_id"=>"5272fda487f64375ad000007", "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.2911ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272fda487f64375ad000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272fda487f64375ad000008", "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", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}}} flags=[] (0.2642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fda487f64375ad000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000006"]}} 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_content_entries selector={"content_type_id"=>"5272fda487f64375ad000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4950ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000006"]}}} (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fda487f64375ad000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fda487f64375ad000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fda487f64375ad000006", "content_type_id"=>"5272fda487f64375ad000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272fda487f64375ad000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fda487f64375ad00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fda487f64375ad000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000006"]}}} (0.3967ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000006"]}}} (0.2401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fda487f64375ad00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fda487f64375ad000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fda487f64375ad000006", "content_type_id"=>"5272fda487f64375ad000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272fda487f64375ad000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.2298ms) 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.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fda487f64375ad000002", "parent_id"=>"5272fda487f64375ad000004", "$or"=>[{"slug.en"=>"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"=>"5272fda487f64375ad000004", "site_id"=>"5272fda487f64375ad000002", "_id"=>{"$ne"=>"5272fda487f64375ad00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fda487f64375ad000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fda487f64375ad00000b", "parent_ids"=>["5272fda487f64375ad000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272fda487f64375ad000002", "parent_id"=>"5272fda487f64375ad000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fda487f64375ad00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fda487f64375ad00000b"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fda487f64375ad000002", "parent_id"=>"5272fda487f64375ad000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fda487f64375ad000004", "site_id"=>"5272fda487f64375ad000002", "_id"=>{"$ne"=>"5272fda487f64375ad00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5272fda487f64375ad000004", "site_id"=>"5272fda487f64375ad000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fda487f64375ad000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fda487f64375ad00000c", "parent_ids"=>["5272fda487f64375ad000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272fda487f64375ad000002", "parent_id"=>"5272fda487f64375ad000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.3588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fda487f64375ad00000c"}, "$orderby"=>{"position"=>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=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fda487f64375ad00000c"]}} 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_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272fda487f64375ad000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272fda487f64375ad000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:02:28 UTC}} flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1950ms) 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.7102ms) 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.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fda487f64375ad00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:02:27 UTC, "updated_at"=>2013-11-01 01:02:28 UTC, "memberships"=>[{"_id"=>"5272fda487f64375ad00000e", "role"=>"admin", "account_id"=>"5272fda487f64375ad000001"}]}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fda487f64375ad00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fda487f64375ad00000d", "_id"=>{"$ne"=>"5272fda487f64375ad00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fda487f64375ad00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fda487f64375ad00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.3457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad00000d", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad00000f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272fda487f64375ad00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fda487f64375ad00000f"]}} 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={"site_id"=>"5272fda487f64375ad00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fda487f64375ad00000d", "_id"=>{"$ne"=>"5272fda487f64375ad000010"}, "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"=>nil, "site_id"=>"5272fda487f64375ad00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fda487f64375ad000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fda487f64375ad00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad00000d", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fda487f64375ad000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fda487f64375ad000010"]}} 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"=>"5272fda487f64375ad00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fda487f64375ad00000d", "_id"=>{"$ne"=>"5272fda487f64375ad000011"}, "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"=>"5272fda487f64375ad00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5381ms) 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.2601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fda487f64375ad000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272fda487f64375ad00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad00000d", "template_dependencies.en"=>{"$in"=>["5272fda487f64375ad000011"]}}, "$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"=>"5272fda487f64375ad000011"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5272fda487f64375ad000011"]}} 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"=>"5272fda487f64375ad00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fda487f64375ad000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fda487f64375ad00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fda487f64375ad000013", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC, "entries_custom_fields"=>[{"_id"=>"5272fda487f64375ad000013", "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.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fda487f64375ad000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fda487f64375ad000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fda487f64375ad000012"]}}} (0.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fda487f64375ad000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fda487f64375ad000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fda487f64375ad000012", "content_type_id"=>"5272fda487f64375ad000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272fda487f64375ad00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:02:28 UTC, "created_at"=>2013-11-01 01:02:28 UTC}] flags=[] (0.2151ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:02: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.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7672ms) Rendered text template (0.0ms) Completed 200 OK in 17.2ms (Views: 10.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:02:28 +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 (1.1883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fda487f64375ad000002", "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.6981ms) Rendered text template (0.0ms) Completed 200 OK in 450.6ms (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.6771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3089ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6339ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1439ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9439ms) 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.5040ms) 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.5081ms) 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.0922ms) 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.6981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272fe2287f6435652000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7bae7127178ff09e5aa74c162b21ab0a83ee2b9e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"snsaCkPxgJQJEv9pzhyi", "api_key"=>"62cba79b268e952ba41c11f46c4a1b3631db5043", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.1512ms) 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.8562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fe2287f6435652000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:04:33 UTC, "updated_at"=>2013-11-01 01:04:34 UTC, "memberships"=>[{"_id"=>"5272fe2287f6435652000003", "role"=>"admin", "account_id"=>"5272fe2287f6435652000001"}]}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe2287f6435652000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe2287f6435652000002", "_id"=>{"$ne"=>"5272fe2287f6435652000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fe2287f6435652000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fe2287f6435652000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe2287f6435652000004"}, "$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"=>{"site_id"=>"5272fe2287f6435652000002", "template_dependencies.en"=>{"$in"=>["5272fe2287f6435652000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe2287f6435652000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe2287f6435652000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe2287f6435652000002", "_id"=>{"$ne"=>"5272fe2287f6435652000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe2287f6435652000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fe2287f6435652000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fe2287f6435652000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.2940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f6435652000002", "template_dependencies.en"=>{"$in"=>["5272fe2287f6435652000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe2287f6435652000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe2287f6435652000005"]}} 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_content_types selector={"site_id"=>"5272fe2287f6435652000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4597ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fe2287f6435652000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fe2287f6435652000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fe2287f6435652000007", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC, "entries_custom_fields"=>[{"_id"=>"5272fe2287f6435652000007", "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.2971ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272fe2287f6435652000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272fe2287f6435652000008", "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", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}}} flags=[] (0.1693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fe2287f6435652000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fe2287f6435652000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4902ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000006"]}}} (0.4308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fe2287f6435652000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fe2287f6435652000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fe2287f6435652000006", "content_type_id"=>"5272fe2287f6435652000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272fe2287f6435652000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fe2287f643565200000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fe2287f6435652000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3672ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000006"]}}} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000006"]}}} (0.2408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.3960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fe2287f643565200000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fe2287f6435652000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fe2287f6435652000006", "content_type_id"=>"5272fe2287f6435652000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272fe2287f6435652000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.1638ms) 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.8621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe2287f6435652000002", "parent_id"=>"5272fe2287f6435652000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5272fe2287f6435652000004", "site_id"=>"5272fe2287f6435652000002", "_id"=>{"$ne"=>"5272fe2287f643565200000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fe2287f6435652000004"}]}]}, "$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"=>"5272fe2287f643565200000b", "parent_ids"=>["5272fe2287f6435652000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272fe2287f6435652000002", "parent_id"=>"5272fe2287f6435652000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.2577ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f6435652000002", "template_dependencies.en"=>{"$in"=>["5272fe2287f643565200000b"]}}, "$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"=>"5272fe2287f643565200000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe2287f643565200000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0954ms) 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.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe2287f6435652000002", "parent_id"=>"5272fe2287f6435652000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5272fe2287f6435652000004", "site_id"=>"5272fe2287f6435652000002", "_id"=>{"$ne"=>"5272fe2287f643565200000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe2287f6435652000004", "site_id"=>"5272fe2287f6435652000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fe2287f6435652000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fe2287f643565200000c", "parent_ids"=>["5272fe2287f6435652000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272fe2287f6435652000002", "parent_id"=>"5272fe2287f6435652000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f6435652000002", "template_dependencies.en"=>{"$in"=>["5272fe2287f643565200000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe2287f643565200000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2861ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe2287f643565200000c"]}} 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"=>{"site_id"=>"5272fe2287f6435652000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272fe2287f6435652000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272fe2287f6435652000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:04:34 UTC}} flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f6435652000002", "template_dependencies.en"=>{"$in"=>["5272fe2287f6435652000004"]}}, "$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.4973ms) 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.3452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fe2287f643565200000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:04:33 UTC, "updated_at"=>2013-11-01 01:04:34 UTC, "memberships"=>[{"_id"=>"5272fe2287f643565200000e", "role"=>"admin", "account_id"=>"5272fe2287f6435652000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe2287f643565200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5272fe2287f643565200000d", "_id"=>{"$ne"=>"5272fe2287f643565200000f"}, "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"=>"5272fe2287f643565200000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fe2287f643565200000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.2377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f643565200000d", "template_dependencies.en"=>{"$in"=>["5272fe2287f643565200000f"]}}, "$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"=>"5272fe2287f643565200000f"}, "$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"=>["5272fe2287f643565200000f"]}} 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_pages selector={"site_id"=>"5272fe2287f643565200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe2287f643565200000d", "_id"=>{"$ne"=>"5272fe2287f6435652000010"}, "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"=>"5272fe2287f643565200000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fe2287f6435652000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fe2287f643565200000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f643565200000d", "template_dependencies.en"=>{"$in"=>["5272fe2287f6435652000010"]}}, "$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"=>"5272fe2287f6435652000010"}, "$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"=>["5272fe2287f6435652000010"]}} 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"=>"5272fe2287f643565200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5272fe2287f643565200000d", "_id"=>{"$ne"=>"5272fe2287f6435652000011"}, "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"=>"5272fe2287f643565200000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fe2287f6435652000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272fe2287f643565200000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f643565200000d", "template_dependencies.en"=>{"$in"=>["5272fe2287f6435652000011"]}}, "$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"=>"5272fe2287f6435652000011"}, "$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"=>["5272fe2287f6435652000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272fe2287f643565200000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5272fe2287f6435652000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fe2287f643565200000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fe2287f6435652000013", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC, "entries_custom_fields"=>[{"_id"=>"5272fe2287f6435652000013", "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.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fe2287f6435652000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fe2287f6435652000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe2287f6435652000012"]}}} (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fe2287f6435652000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fe2287f6435652000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fe2287f6435652000012", "content_type_id"=>"5272fe2287f6435652000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272fe2287f643565200000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:04:34 UTC, "created_at"=>2013-11-01 01:04:34 UTC}] flags=[] (0.3068ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:04:34 +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.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f6435652000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 12.6ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:04:34 +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.8221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe2287f6435652000002", "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.8051ms) Rendered text template (0.0ms) Completed 200 OK in 445.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 (0.6850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3587ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9091ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6700ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0319ms) 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.6430ms) 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.6182ms) 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.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272fe6187f64373fe000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6990684d2129d16afba9d673a55ac4e781204deb", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yzRqfXTZNjBzuvwc8VgN", "api_key"=>"ad368295b1768ab48c3e3e023f966e272e4b5faf", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.2649ms) 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.8099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fe6187f64373fe000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:05:36 UTC, "updated_at"=>2013-11-01 01:05:37 UTC, "memberships"=>[{"_id"=>"5272fe6187f64373fe000003", "role"=>"admin", "account_id"=>"5272fe6187f64373fe000001"}]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe6187f64373fe000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe000002", "_id"=>{"$ne"=>"5272fe6187f64373fe000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272fe6187f64373fe000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fe6187f64373fe000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe6187f64373fe000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe6187f64373fe000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe6187f64373fe000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe000002", "_id"=>{"$ne"=>"5272fe6187f64373fe000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fe6187f64373fe000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fe6187f64373fe000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3607ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe6187f64373fe000005"}, "$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"=>["5272fe6187f64373fe000005"]}} 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_content_types selector={"site_id"=>"5272fe6187f64373fe000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fe6187f64373fe000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fe6187f64373fe000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fe6187f64373fe000007", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC, "entries_custom_fields"=>[{"_id"=>"5272fe6187f64373fe000007", "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.2592ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272fe6187f64373fe000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272fe6187f64373fe000008", "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", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fe6187f64373fe000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fe6187f64373fe000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000006"]}}} (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fe6187f64373fe000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fe6187f64373fe000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fe6187f64373fe000006", "content_type_id"=>"5272fe6187f64373fe000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272fe6187f64373fe000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fe6187f64373fe00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fe6187f64373fe000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000006"]}}} (0.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000006"]}}} (0.3481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fe6187f64373fe00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fe6187f64373fe000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fe6187f64373fe000006", "content_type_id"=>"5272fe6187f64373fe000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272fe6187f64373fe000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.2508ms) 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.8771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe6187f64373fe000002", "parent_id"=>"5272fe6187f64373fe000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe6187f64373fe000004", "site_id"=>"5272fe6187f64373fe000002", "_id"=>{"$ne"=>"5272fe6187f64373fe00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5272fe6187f64373fe000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5272fe6187f64373fe00000b", "parent_ids"=>["5272fe6187f64373fe000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272fe6187f64373fe000002", "parent_id"=>"5272fe6187f64373fe000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe00000b"]}}, "$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"=>"5272fe6187f64373fe00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe6187f64373fe00000b"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5272fe6187f64373fe000002", "parent_id"=>"5272fe6187f64373fe000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe6187f64373fe000004", "site_id"=>"5272fe6187f64373fe000002", "_id"=>{"$ne"=>"5272fe6187f64373fe00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fe6187f64373fe000004", "site_id"=>"5272fe6187f64373fe000002"}, "$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"=>"5272fe6187f64373fe000004"}]}]}, "$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"=>"5272fe6187f64373fe00000c", "parent_ids"=>["5272fe6187f64373fe000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272fe6187f64373fe000002", "parent_id"=>"5272fe6187f64373fe000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe00000c"]}}, "$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"=>"5272fe6187f64373fe00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe6187f64373fe00000c"]}} 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"=>{"site_id"=>"5272fe6187f64373fe000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272fe6187f64373fe000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272fe6187f64373fe000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:05:37 UTC}} flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) 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.7191ms) 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.3481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272fe6187f64373fe00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:05:36 UTC, "updated_at"=>2013-11-01 01:05:37 UTC, "memberships"=>[{"_id"=>"5272fe6187f64373fe00000e", "role"=>"admin", "account_id"=>"5272fe6187f64373fe000001"}]}] flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fe6187f64373fe00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe00000d", "_id"=>{"$ne"=>"5272fe6187f64373fe00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272fe6187f64373fe00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fe6187f64373fe00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe00000d", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe00000f"]}}, "$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"=>"5272fe6187f64373fe00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fe6187f64373fe00000f"]}} 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"=>"5272fe6187f64373fe00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe00000d", "_id"=>{"$ne"=>"5272fe6187f64373fe000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272fe6187f64373fe000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fe6187f64373fe00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe00000d", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe000010"]}}, "$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"=>"5272fe6187f64373fe000010"}, "$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"=>["5272fe6187f64373fe000010"]}} 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_pages selector={"site_id"=>"5272fe6187f64373fe00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fe6187f64373fe00000d", "_id"=>{"$ne"=>"5272fe6187f64373fe000011"}, "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"=>"5272fe6187f64373fe00000d"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5272fe6187f64373fe000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272fe6187f64373fe00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe00000d", "template_dependencies.en"=>{"$in"=>["5272fe6187f64373fe000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272fe6187f64373fe000011"}, "$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"=>["5272fe6187f64373fe000011"]}} 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_content_types selector={"site_id"=>"5272fe6187f64373fe00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5307ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fe6187f64373fe000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fe6187f64373fe00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fe6187f64373fe000013", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC, "entries_custom_fields"=>[{"_id"=>"5272fe6187f64373fe000013", "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.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fe6187f64373fe000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6087ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fe6187f64373fe000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fe6187f64373fe000012"]}}} (0.4199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fe6187f64373fe000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fe6187f64373fe000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fe6187f64373fe000012", "content_type_id"=>"5272fe6187f64373fe000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272fe6187f64373fe00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:05:37 UTC, "created_at"=>2013-11-01 01:05:37 UTC}] flags=[] (0.2081ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:05:37 +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.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5429ms) Rendered text template (0.0ms) Completed 200 OK in 12.8ms (Views: 7.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:05:37 +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.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fe6187f64373fe000002", "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.7889ms) Rendered text template (0.0ms) Completed 200 OK in 444.7ms (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.6082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8950ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7710ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5529ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9289ms) 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.5310ms) 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.6273ms) 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.9511ms) 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.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272fefc87f643983d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1ec2978befa18b315b25f0e0df11300ab7d0fea6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"R2MwcNia7x8jpbWvEddR", "api_key"=>"bc1444f315649aafe1c3db60071feec4f57e39fe", "updated_at"=>2013-11-01 01:08:12 UTC, "created_at"=>2013-11-01 01:08:12 UTC}] flags=[] (0.1631ms) 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"=>"5272fefc87f643983d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:08:12 UTC, "updated_at"=>2013-11-01 01:08:12 UTC, "memberships"=>[{"_id"=>"5272fefc87f643983d000003", "role"=>"admin", "account_id"=>"5272fefc87f643983d000001"}]}] flags=[] (0.2677ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fefc87f643983d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fefc87f643983d000002", "_id"=>{"$ne"=>"5272fefd87f643983d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272fefd87f643983d000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272fefc87f643983d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:13 UTC, "created_at"=>2013-11-01 01:08:13 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fefd87f643983d000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "template_dependencies.en"=>{"$in"=>["5272fefd87f643983d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fefd87f643983d000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fefc87f643983d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fefc87f643983d000002", "_id"=>{"$ne"=>"5272fefe87f643983d000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272fefc87f643983d000002"}, "$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"=>"5272fefe87f643983d000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272fefc87f643983d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:14 UTC, "created_at"=>2013-11-01 01:08:14 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "template_dependencies.en"=>{"$in"=>["5272fefe87f643983d000005"]}}, "$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"=>"5272fefe87f643983d000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272fefe87f643983d000005"]}} 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_content_types selector={"site_id"=>"5272fefc87f643983d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272fefe87f643983d000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272fefc87f643983d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272fefe87f643983d000007", "updated_at"=>2013-11-01 01:08:14 UTC, "created_at"=>2013-11-01 01:08:14 UTC, "entries_custom_fields"=>[{"_id"=>"5272fefe87f643983d000007", "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.2780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272fefe87f643983d000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272fefe87f643983d000008", "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", "updated_at"=>2013-11-01 01:08:14 UTC, "created_at"=>2013-11-01 01:08:14 UTC}}} flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fefe87f643983d000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fefe87f643983d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272fefe87f643983d000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fefe87f643983d000006"]}}} (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fefe87f643983d000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fefe87f643983d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fefe87f643983d000006", "content_type_id"=>"5272fefe87f643983d000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272fefc87f643983d000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:08:14 UTC, "created_at"=>2013-11-01 01:08:14 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272fefe87f643983d00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272fefe87f643983d000006"]}} 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"=>"5272fefe87f643983d000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fefe87f643983d000006"]}}} (0.4208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fefe87f643983d000006"]}}} (0.3181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272fefe87f643983d000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272fefe87f643983d00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272fefe87f643983d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272fefe87f643983d000006", "content_type_id"=>"5272fefe87f643983d000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272fefc87f643983d000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:08:14 UTC, "created_at"=>2013-11-01 01:08:14 UTC}] flags=[] (0.2003ms) 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.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fefc87f643983d000002", "parent_id"=>"5272fefd87f643983d000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5272fefd87f643983d000004", "site_id"=>"5272fefc87f643983d000002", "_id"=>{"$ne"=>"5272feff87f643983d00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5272fefd87f643983d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272feff87f643983d00000b", "parent_ids"=>["5272fefd87f643983d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272fefc87f643983d000002", "parent_id"=>"5272fefd87f643983d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:15 UTC, "created_at"=>2013-11-01 01:08:15 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "template_dependencies.en"=>{"$in"=>["5272feff87f643983d00000b"]}}, "$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"=>"5272feff87f643983d00000b"}, "$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"=>["5272feff87f643983d00000b"]}} 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.7851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272fefc87f643983d000002", "parent_id"=>"5272fefd87f643983d000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5272fefd87f643983d000004", "site_id"=>"5272fefc87f643983d000002", "_id"=>{"$ne"=>"5272feff87f643983d00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272fefd87f643983d000004", "site_id"=>"5272fefc87f643983d000002"}, "$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"=>"5272fefd87f643983d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272feff87f643983d00000c", "parent_ids"=>["5272fefd87f643983d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272fefc87f643983d000002", "parent_id"=>"5272fefd87f643983d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:15 UTC, "created_at"=>2013-11-01 01:08:15 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "template_dependencies.en"=>{"$in"=>["5272feff87f643983d00000c"]}}, "$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"=>"5272feff87f643983d00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272feff87f643983d00000c"]}} 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"=>{"site_id"=>"5272fefc87f643983d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272fefc87f643983d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272fefd87f643983d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:08:16 UTC}} flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "template_dependencies.en"=>{"$in"=>["5272fefd87f643983d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) 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.7312ms) 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.4179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272ff0187f643983d00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:08:12 UTC, "updated_at"=>2013-11-01 01:08:17 UTC, "memberships"=>[{"_id"=>"5272ff0187f643983d00000e", "role"=>"admin", "account_id"=>"5272fefc87f643983d000001"}]}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff0187f643983d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5272ff0187f643983d00000d", "_id"=>{"$ne"=>"5272ff0187f643983d00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff0187f643983d00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ff0187f643983d00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:17 UTC, "created_at"=>2013-11-01 01:08:17 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff0187f643983d00000d", "template_dependencies.en"=>{"$in"=>["5272ff0187f643983d00000f"]}}, "$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"=>"5272ff0187f643983d00000f"}, "$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"=>["5272ff0187f643983d00000f"]}} 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={"site_id"=>"5272ff0187f643983d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff0187f643983d00000d", "_id"=>{"$ne"=>"5272ff0187f643983d000010"}, "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"=>"5272ff0187f643983d00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272ff0187f643983d000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ff0187f643983d00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:17 UTC, "created_at"=>2013-11-01 01:08:17 UTC}] flags=[] (0.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff0187f643983d00000d", "template_dependencies.en"=>{"$in"=>["5272ff0187f643983d000010"]}}, "$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"=>"5272ff0187f643983d000010"}, "$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"=>["5272ff0187f643983d000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff0187f643983d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff0187f643983d00000d", "_id"=>{"$ne"=>"5272ff0187f643983d000011"}, "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"=>"5272ff0187f643983d00000d"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2789ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff0187f643983d000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272ff0187f643983d00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:17 UTC, "created_at"=>2013-11-01 01:08:17 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff0187f643983d00000d", "template_dependencies.en"=>{"$in"=>["5272ff0187f643983d000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272ff0187f643983d000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff0187f643983d000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5272ff0187f643983d00000d", "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"=>"5272ff0287f643983d000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ff0187f643983d00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ff0287f643983d000013", "updated_at"=>2013-11-01 01:08:18 UTC, "created_at"=>2013-11-01 01:08:18 UTC, "entries_custom_fields"=>[{"_id"=>"5272ff0287f643983d000013", "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"=>"5272ff0287f643983d000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff0287f643983d000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272ff0287f643983d000012", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff0287f643983d000012"]}}} (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff0287f643983d000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff0287f643983d000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff0287f643983d000012", "content_type_id"=>"5272ff0287f643983d000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272ff0187f643983d00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:08:18 UTC, "created_at"=>2013-11-01 01:08:18 UTC}] flags=[] (0.1621ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:08: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.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) Rendered text template (0.0ms) Completed 200 OK in 12.8ms (Views: 7.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:08: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.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "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 468.3ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:08: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.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "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.7150ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:08: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.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5808ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 02:08: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.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272fefc87f643983d000002", "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.5219ms) Rendered text template (0.0ms) Completed 200 OK in 440.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.6080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4701ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4620ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3218ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9458ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0250ms) 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.6239ms) 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.5250ms) 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.8159ms) 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.5810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272ff2387f643a312000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9046a7faf5797a4bb261bfa36ce6f03ff87da565", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"c17ynw9V8ms4xfwyKxWx", "api_key"=>"b0dd8b3d5d8ff683ce385d75fb7b9648d0f16a7a", "updated_at"=>2013-11-01 01:08:51 UTC, "created_at"=>2013-11-01 01:08:51 UTC}] flags=[] (0.1538ms) 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.7758ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272ff2387f643a312000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:08:50 UTC, "updated_at"=>2013-11-01 01:08:51 UTC, "memberships"=>[{"_id"=>"5272ff2387f643a312000003", "role"=>"admin", "account_id"=>"5272ff2387f643a312000001"}]}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff2387f643a312000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2387f643a312000002", "_id"=>{"$ne"=>"5272ff2387f643a312000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272ff2387f643a312000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ff2387f643a312000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:51 UTC, "created_at"=>2013-11-01 01:08:51 UTC}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff2387f643a312000004"}, "$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"=>{"site_id"=>"5272ff2387f643a312000002", "template_dependencies.en"=>{"$in"=>["5272ff2387f643a312000004"]}}, "$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"=>["5272ff2387f643a312000004"]}} 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"=>"5272ff2387f643a312000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5272ff2387f643a312000002", "_id"=>{"$ne"=>"5272ff2387f643a312000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2387f643a312000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5272ff2387f643a312000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ff2387f643a312000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:51 UTC, "created_at"=>2013-11-01 01:08:51 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "template_dependencies.en"=>{"$in"=>["5272ff2387f643a312000005"]}}, "$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"=>"5272ff2387f643a312000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff2387f643a312000005"]}} 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"=>"5272ff2387f643a312000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272ff2387f643a312000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ff2387f643a312000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ff2487f643a312000007", "updated_at"=>2013-11-01 01:08:52 UTC, "created_at"=>2013-11-01 01:08:52 UTC, "entries_custom_fields"=>[{"_id"=>"5272ff2487f643a312000007", "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.2520ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272ff2387f643a312000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272ff2487f643a312000008", "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", "updated_at"=>2013-11-01 01:08:52 UTC, "created_at"=>2013-11-01 01:08:52 UTC}}} flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ff2487f643a312000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2387f643a312000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272ff2387f643a312000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2387f643a312000006"]}}} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff2487f643a312000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff2387f643a312000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff2387f643a312000006", "content_type_id"=>"5272ff2387f643a312000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272ff2387f643a312000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:08:52 UTC, "created_at"=>2013-11-01 01:08:52 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ff2487f643a31200000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2387f643a312000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5817ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272ff2387f643a312000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2387f643a312000006"]}}} (0.3860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2387f643a312000006"]}}} (0.4086ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2387f643a312000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8299ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff2487f643a31200000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff2387f643a312000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff2387f643a312000006", "content_type_id"=>"5272ff2387f643a312000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272ff2387f643a312000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:08:52 UTC, "created_at"=>2013-11-01 01:08:52 UTC}] flags=[] (0.2050ms) 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.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff2387f643a312000002", "parent_id"=>"5272ff2387f643a312000004", "$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"=>"5272ff2387f643a312000004", "site_id"=>"5272ff2387f643a312000002", "_id"=>{"$ne"=>"5272ff2587f643a31200000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4323ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272ff2387f643a312000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff2587f643a31200000b", "parent_ids"=>["5272ff2387f643a312000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272ff2387f643a312000002", "parent_id"=>"5272ff2387f643a312000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:53 UTC, "created_at"=>2013-11-01 01:08:53 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "template_dependencies.en"=>{"$in"=>["5272ff2587f643a31200000b"]}}, "$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"=>"5272ff2587f643a31200000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff2587f643a31200000b"]}} 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 (0.7453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff2387f643a312000002", "parent_id"=>"5272ff2387f643a312000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff2387f643a312000004", "site_id"=>"5272ff2387f643a312000002", "_id"=>{"$ne"=>"5272ff2587f643a31200000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff2387f643a312000004", "site_id"=>"5272ff2387f643a312000002"}, "$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"=>"5272ff2387f643a312000004"}]}]}, "$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"=>"5272ff2587f643a31200000c", "parent_ids"=>["5272ff2387f643a312000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272ff2387f643a312000002", "parent_id"=>"5272ff2387f643a312000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:53 UTC, "created_at"=>2013-11-01 01:08:53 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "template_dependencies.en"=>{"$in"=>["5272ff2587f643a31200000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff2587f643a31200000c"}, "$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"=>["5272ff2587f643a31200000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272ff2387f643a312000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272ff2387f643a312000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:08:54 UTC}} flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "template_dependencies.en"=>{"$in"=>["5272ff2387f643a312000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7048ms) 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.3679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272ff2787f643a31200000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:08:50 UTC, "updated_at"=>2013-11-01 01:08:55 UTC, "memberships"=>[{"_id"=>"5272ff2787f643a31200000e", "role"=>"admin", "account_id"=>"5272ff2387f643a312000001"}]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff2787f643a31200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2787f643a31200000d", "_id"=>{"$ne"=>"5272ff2787f643a31200000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5272ff2787f643a31200000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ff2787f643a31200000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:55 UTC, "created_at"=>2013-11-01 01:08:55 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2787f643a31200000d", "template_dependencies.en"=>{"$in"=>["5272ff2787f643a31200000f"]}}, "$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"=>"5272ff2787f643a31200000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3161ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff2787f643a31200000f"]}} 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"=>"5272ff2787f643a31200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2787f643a31200000d", "_id"=>{"$ne"=>"5272ff2787f643a312000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2787f643a31200000d"}, "$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"=>"5272ff2787f643a312000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ff2787f643a31200000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:55 UTC, "created_at"=>2013-11-01 01:08:55 UTC}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2787f643a31200000d", "template_dependencies.en"=>{"$in"=>["5272ff2787f643a312000010"]}}, "$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"=>"5272ff2787f643a312000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3428ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff2787f643a312000010"]}} 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={"site_id"=>"5272ff2787f643a31200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2787f643a31200000d", "_id"=>{"$ne"=>"5272ff2787f643a312000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff2787f643a31200000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5257ms) 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.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff2787f643a312000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272ff2787f643a31200000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:08:55 UTC, "created_at"=>2013-11-01 01:08:55 UTC}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2787f643a31200000d", "template_dependencies.en"=>{"$in"=>["5272ff2787f643a312000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff2787f643a312000011"}, "$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"=>["5272ff2787f643a312000011"]}} 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_content_types selector={"site_id"=>"5272ff2787f643a31200000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272ff2887f643a312000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ff2787f643a31200000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ff2887f643a312000013", "updated_at"=>2013-11-01 01:08:56 UTC, "created_at"=>2013-11-01 01:08:56 UTC, "entries_custom_fields"=>[{"_id"=>"5272ff2887f643a312000013", "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.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ff2887f643a312000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2887f643a312000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272ff2887f643a312000012", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff2887f643a312000012"]}}} (0.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff2887f643a312000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff2887f643a312000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff2887f643a312000012", "content_type_id"=>"5272ff2887f643a312000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272ff2787f643a31200000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:08:56 UTC, "created_at"=>2013-11-01 01:08:56 UTC}] flags=[] (0.1647ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:08: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.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "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 12.6ms (Views: 7.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:08:57 +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.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "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.6258ms) Rendered text template (0.0ms) Completed 200 OK in 455.3ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:08:57 +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.6771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "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.6583ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:08:57 +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.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5698ms) 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 2013-11-01 02:08:57 +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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff2387f643a312000002", "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.5870ms) Rendered text template (0.0ms) Completed 200 OK in 454.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 (0.7792ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2999ms) 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.8111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9031ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1830ms) 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.6101ms) 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.6230ms) 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.9801ms) 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"=>"5272ff7f87f6434179000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c54c545ef8a54121941b332832974ca01e93a3b3", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"dMyuiDJ6mzXhyCibeeAd", "api_key"=>"ee5a487ceb58bba81bab93d3f10e26e61a9e810f", "updated_at"=>2013-11-01 01:10:23 UTC, "created_at"=>2013-11-01 01:10:23 UTC}] flags=[] (0.1500ms) 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.8161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272ff7f87f6434179000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:10:23 UTC, "updated_at"=>2013-11-01 01:10:23 UTC, "memberships"=>[{"_id"=>"5272ff7f87f6434179000003", "role"=>"admin", "account_id"=>"5272ff7f87f6434179000001"}]}] flags=[] (0.1683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff7f87f6434179000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff7f87f6434179000002", "_id"=>{"$ne"=>"5272ff7f87f6434179000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff7f87f6434179000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ff7f87f6434179000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:23 UTC, "created_at"=>2013-11-01 01:10:23 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff7f87f6434179000004"}, "$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"=>{"site_id"=>"5272ff7f87f6434179000002", "template_dependencies.en"=>{"$in"=>["5272ff7f87f6434179000004"]}}, "$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"=>["5272ff7f87f6434179000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff7f87f6434179000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff7f87f6434179000002", "_id"=>{"$ne"=>"5272ff8087f6434179000005"}, "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"=>"5272ff7f87f6434179000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff8087f6434179000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ff7f87f6434179000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:24 UTC, "created_at"=>2013-11-01 01:10:24 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "template_dependencies.en"=>{"$in"=>["5272ff8087f6434179000005"]}}, "$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"=>"5272ff8087f6434179000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff8087f6434179000005"]}} 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"=>"5272ff7f87f6434179000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8268ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272ff8087f6434179000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ff7f87f6434179000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ff8087f6434179000007", "updated_at"=>2013-11-01 01:10:24 UTC, "created_at"=>2013-11-01 01:10:24 UTC, "entries_custom_fields"=>[{"_id"=>"5272ff8087f6434179000007", "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.2282ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272ff8087f6434179000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272ff8087f6434179000008", "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", "updated_at"=>2013-11-01 01:10:24 UTC, "created_at"=>2013-11-01 01:10:24 UTC}}} flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ff8087f6434179000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8087f6434179000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5272ff8087f6434179000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8087f6434179000006"]}}} (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff8087f6434179000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff8087f6434179000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff8087f6434179000006", "content_type_id"=>"5272ff8087f6434179000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272ff7f87f6434179000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:10:24 UTC, "created_at"=>2013-11-01 01:10:24 UTC}] flags=[] (0.2377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ff8187f643417900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8087f6434179000006"]}} 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"=>"5272ff8087f6434179000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4377ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8087f6434179000006"]}}} (0.3819ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8087f6434179000006"]}}} (0.3121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8087f6434179000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff8187f643417900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff8087f6434179000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff8087f6434179000006", "content_type_id"=>"5272ff8087f6434179000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272ff7f87f6434179000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:10:25 UTC, "created_at"=>2013-11-01 01:10:25 UTC}] flags=[] (0.2787ms) 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.6828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff7f87f6434179000002", "parent_id"=>"5272ff7f87f6434179000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff7f87f6434179000004", "site_id"=>"5272ff7f87f6434179000002", "_id"=>{"$ne"=>"5272ff8187f643417900000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272ff7f87f6434179000004"}]}]}, "$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"=>"5272ff8187f643417900000b", "parent_ids"=>["5272ff7f87f6434179000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272ff7f87f6434179000002", "parent_id"=>"5272ff7f87f6434179000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:25 UTC, "created_at"=>2013-11-01 01:10:25 UTC}] flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "template_dependencies.en"=>{"$in"=>["5272ff8187f643417900000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5272ff8187f643417900000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff8187f643417900000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) 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.6537ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff7f87f6434179000002", "parent_id"=>"5272ff7f87f6434179000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ff7f87f6434179000004", "site_id"=>"5272ff7f87f6434179000002", "_id"=>{"$ne"=>"5272ff8287f643417900000c"}, "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"=>"5272ff7f87f6434179000004", "site_id"=>"5272ff7f87f6434179000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272ff7f87f6434179000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff8287f643417900000c", "parent_ids"=>["5272ff7f87f6434179000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272ff7f87f6434179000002", "parent_id"=>"5272ff7f87f6434179000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:26 UTC, "created_at"=>2013-11-01 01:10:26 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "template_dependencies.en"=>{"$in"=>["5272ff8287f643417900000c"]}}, "$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"=>"5272ff8287f643417900000c"}, "$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"=>["5272ff8287f643417900000c"]}} 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"=>"5272ff7f87f6434179000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272ff7f87f6434179000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272ff7f87f6434179000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:10:27 UTC}} flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "template_dependencies.en"=>{"$in"=>["5272ff7f87f6434179000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) 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.6199ms) 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"=>"5272ff8387f643417900000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:10:23 UTC, "updated_at"=>2013-11-01 01:10:27 UTC, "memberships"=>[{"_id"=>"5272ff8387f643417900000e", "role"=>"admin", "account_id"=>"5272ff7f87f6434179000001"}]}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff8387f643417900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff8387f643417900000d", "_id"=>{"$ne"=>"5272ff8387f643417900000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5272ff8387f643417900000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ff8387f643417900000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:27 UTC, "created_at"=>2013-11-01 01:10:27 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff8387f643417900000d", "template_dependencies.en"=>{"$in"=>["5272ff8387f643417900000f"]}}, "$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"=>"5272ff8387f643417900000f"}, "$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"=>["5272ff8387f643417900000f"]}} 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"=>"5272ff8387f643417900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff8387f643417900000d", "_id"=>{"$ne"=>"5272ff8487f6434179000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff8387f643417900000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7453ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ff8487f6434179000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ff8387f643417900000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:28 UTC, "created_at"=>2013-11-01 01:10:28 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff8387f643417900000d", "template_dependencies.en"=>{"$in"=>["5272ff8487f6434179000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5272ff8487f6434179000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4795ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff8487f6434179000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ff8387f643417900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff8387f643417900000d", "_id"=>{"$ne"=>"5272ff8487f6434179000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ff8387f643417900000d"}, "$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"=>{"_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"=>"5272ff8487f6434179000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272ff8387f643417900000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:10:28 UTC, "created_at"=>2013-11-01 01:10:28 UTC}] flags=[] (0.2177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff8387f643417900000d", "template_dependencies.en"=>{"$in"=>["5272ff8487f6434179000011"]}}, "$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"=>"5272ff8487f6434179000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ff8487f6434179000011"]}} 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"=>"5272ff8387f643417900000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272ff8487f6434179000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ff8387f643417900000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ff8487f6434179000013", "updated_at"=>2013-11-01 01:10:28 UTC, "created_at"=>2013-11-01 01:10:28 UTC, "entries_custom_fields"=>[{"_id"=>"5272ff8487f6434179000013", "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.2162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ff8487f6434179000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8487f6434179000012"]}} 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"=>"5272ff8487f6434179000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ff8487f6434179000012"]}}} (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ff8487f6434179000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ff8487f6434179000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ff8487f6434179000012", "content_type_id"=>"5272ff8487f6434179000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272ff8387f643417900000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:10:28 UTC, "created_at"=>2013-11-01 01:10:28 UTC}] flags=[] (0.2348ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:10: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.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7110ms) Rendered text template (0.0ms) Completed 200 OK in 13.6ms (Views: 7.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:10: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.7927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "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.7229ms) Rendered text template (0.0ms) Completed 200 OK in 453.7ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:10:30 +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.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "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.5960ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:10: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.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5159ms) 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 2013-11-01 02:10:30 +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.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ff7f87f6434179000002", "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.6123ms) Rendered text template (0.0ms) Completed 200 OK in 441.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.7119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5438ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3909ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.7269ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0290ms) 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.5682ms) 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.5479ms) 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.8402ms) 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.5002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5272ffbe87f64323a8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"338d73e03f6c6501855c0b6b43024b97635e46cd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"VHssLv4Tn4vmSsytj9Bh", "api_key"=>"ae473fe39cf46b03e664609c9803b3ea63fa28d8", "updated_at"=>2013-11-01 01:11:26 UTC, "created_at"=>2013-11-01 01:11:26 UTC}] flags=[] (0.1512ms) 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.7930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272ffbe87f64323a8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:11:26 UTC, "updated_at"=>2013-11-01 01:11:26 UTC, "memberships"=>[{"_id"=>"5272ffbe87f64323a8000003", "role"=>"admin", "account_id"=>"5272ffbe87f64323a8000001"}]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffbe87f64323a8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ffbe87f64323a8000002", "_id"=>{"$ne"=>"5272ffbe87f64323a8000004"}, "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"=>"5272ffbe87f64323a8000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ffbe87f64323a8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:26 UTC, "created_at"=>2013-11-01 01:11:26 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ffbe87f64323a8000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "template_dependencies.en"=>{"$in"=>["5272ffbe87f64323a8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ffbe87f64323a8000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffbe87f64323a8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ffbe87f64323a8000002", "_id"=>{"$ne"=>"5272ffbf87f64323a8000005"}, "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"=>"5272ffbe87f64323a8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6227ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ffbf87f64323a8000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ffbe87f64323a8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:27 UTC, "created_at"=>2013-11-01 01:11:27 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "template_dependencies.en"=>{"$in"=>["5272ffbf87f64323a8000005"]}}, "$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"=>"5272ffbf87f64323a8000005"}, "$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"=>["5272ffbf87f64323a8000005"]}} 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"=>"5272ffbe87f64323a8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272ffbf87f64323a8000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ffbe87f64323a8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ffbf87f64323a8000007", "updated_at"=>2013-11-01 01:11:27 UTC, "created_at"=>2013-11-01 01:11:27 UTC, "entries_custom_fields"=>[{"_id"=>"5272ffbf87f64323a8000007", "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.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5272ffbf87f64323a8000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5272ffbf87f64323a8000008", "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", "updated_at"=>2013-11-01 01:11:27 UTC, "created_at"=>2013-11-01 01:11:27 UTC}}} flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ffbf87f64323a8000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ffbf87f64323a8000006"]}} 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_entries selector={"content_type_id"=>"5272ffbf87f64323a8000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ffbf87f64323a8000006"]}}} (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ffbf87f64323a8000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ffbf87f64323a8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ffbf87f64323a8000006", "content_type_id"=>"5272ffbf87f64323a8000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5272ffbe87f64323a8000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:11:27 UTC, "created_at"=>2013-11-01 01:11:27 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ffc087f64323a800000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ffbf87f64323a8000006"]}} 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_entries selector={"content_type_id"=>"5272ffbf87f64323a8000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9968ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ffbf87f64323a8000006"]}}} (0.8130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ffbf87f64323a8000006"]}}} (0.7350ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ffbf87f64323a8000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ffc087f64323a800000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ffbf87f64323a8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ffbf87f64323a8000006", "content_type_id"=>"5272ffbf87f64323a8000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5272ffbe87f64323a8000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:11:28 UTC, "created_at"=>2013-11-01 01:11:28 UTC}] flags=[] (0.3080ms) 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.0660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffbe87f64323a8000002", "parent_id"=>"5272ffbe87f64323a8000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ffbe87f64323a8000004", "site_id"=>"5272ffbe87f64323a8000002", "_id"=>{"$ne"=>"5272ffc187f64323a800000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5272ffbe87f64323a8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ffc187f64323a800000b", "parent_ids"=>["5272ffbe87f64323a8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5272ffbe87f64323a8000002", "parent_id"=>"5272ffbe87f64323a8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:29 UTC, "created_at"=>2013-11-01 01:11:29 UTC}] flags=[] (0.6950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "template_dependencies.en"=>{"$in"=>["5272ffc187f64323a800000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ffc187f64323a800000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ffc187f64323a800000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.7443ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffbe87f64323a8000002", "parent_id"=>"5272ffbe87f64323a8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ffbe87f64323a8000004", "site_id"=>"5272ffbe87f64323a8000002", "_id"=>{"$ne"=>"5272ffc187f64323a800000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ffbe87f64323a8000004", "site_id"=>"5272ffbe87f64323a8000002"}, "$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"=>"5272ffbe87f64323a8000004"}]}]}, "$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"=>"5272ffc187f64323a800000c", "parent_ids"=>["5272ffbe87f64323a8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5272ffbe87f64323a8000002", "parent_id"=>"5272ffbe87f64323a8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:29 UTC, "created_at"=>2013-11-01 01:11:29 UTC}] flags=[] (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "template_dependencies.en"=>{"$in"=>["5272ffc187f64323a800000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5272ffc187f64323a800000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.4180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ffc187f64323a800000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5272ffbe87f64323a8000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5272ffbe87f64323a8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:11:30 UTC}} flags=[] (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "template_dependencies.en"=>{"$in"=>["5272ffbe87f64323a8000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5272ffc387f64323a800000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:11:26 UTC, "updated_at"=>2013-11-01 01:11:31 UTC, "memberships"=>[{"_id"=>"5272ffc387f64323a800000e", "role"=>"admin", "account_id"=>"5272ffbe87f64323a8000001"}]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffc387f64323a800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4797ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ffc387f64323a800000d", "_id"=>{"$ne"=>"5272ffc387f64323a800000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5272ffc387f64323a800000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5272ffc387f64323a800000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:31 UTC, "created_at"=>2013-11-01 01:11:31 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffc387f64323a800000d", "template_dependencies.en"=>{"$in"=>["5272ffc387f64323a800000f"]}}, "$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"=>"5272ffc387f64323a800000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ffc387f64323a800000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffc387f64323a800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ffc387f64323a800000d", "_id"=>{"$ne"=>"5272ffc387f64323a8000010"}, "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"=>nil, "site_id"=>"5272ffc387f64323a800000d"}, "$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"=>"5272ffc387f64323a8000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5272ffc387f64323a800000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:31 UTC, "created_at"=>2013-11-01 01:11:31 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffc387f64323a800000d", "template_dependencies.en"=>{"$in"=>["5272ffc387f64323a8000010"]}}, "$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"=>"5272ffc387f64323a8000010"}, "$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"=>["5272ffc387f64323a8000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5272ffc387f64323a800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5272ffc387f64323a800000d", "_id"=>{"$ne"=>"5272ffc387f64323a8000011"}, "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"=>"5272ffc387f64323a800000d"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5272ffc387f64323a8000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5272ffc387f64323a800000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:11:31 UTC, "created_at"=>2013-11-01 01:11:31 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffc387f64323a800000d", "template_dependencies.en"=>{"$in"=>["5272ffc387f64323a8000011"]}}, "$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"=>"5272ffc387f64323a8000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5272ffc387f64323a8000011"]}} 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"=>"5272ffc387f64323a800000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4733ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5272ffc487f64323a8000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5272ffc387f64323a800000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5272ffc487f64323a8000013", "updated_at"=>2013-11-01 01:11:32 UTC, "created_at"=>2013-11-01 01:11:32 UTC, "entries_custom_fields"=>[{"_id"=>"5272ffc487f64323a8000013", "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.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5272ffc487f64323a8000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5272ffc487f64323a8000012"]}} 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"=>"5272ffc487f64323a8000012", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5272ffc487f64323a8000012"]}}} (0.5188ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5272ffc487f64323a8000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5272ffc487f64323a8000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5272ffc487f64323a8000012", "content_type_id"=>"5272ffc487f64323a8000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5272ffc387f64323a800000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:11:32 UTC, "created_at"=>2013-11-01 01:11:32 UTC}] flags=[] (0.1559ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:11: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.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9799ms) Rendered text template (0.0ms) Completed 200 OK in 14.7ms (Views: 8.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:11:33 +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.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "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.5219ms) Rendered text template (0.0ms) Completed 200 OK in 452.7ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:11:33 +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.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "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.5651ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:11: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.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "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 4.1ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 02:11:33 +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.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5272ffbe87f64323a8000002", "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.5698ms) Rendered text template (0.0ms) Completed 200 OK in 446.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.7181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6420ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4069ms) 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.8230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9530ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0343ms) 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.5569ms) 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.4420ms) 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.9840ms) 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.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273006a87f643c0e2000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c3bb618d98c184b04bb595596ea9546355c22ed7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"KAJvjkQV62Kcfs5ZT2qp", "api_key"=>"a4383f7d54718784781f847f8fa0a63102794610", "updated_at"=>2013-11-01 01:14:18 UTC, "created_at"=>2013-11-01 01:14:18 UTC}] flags=[] (0.1788ms) 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.8490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273006a87f643c0e2000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:14:17 UTC, "updated_at"=>2013-11-01 01:14:18 UTC, "memberships"=>[{"_id"=>"5273006a87f643c0e2000003", "role"=>"admin", "account_id"=>"5273006a87f643c0e2000001"}]}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273006a87f643c0e2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006a87f643c0e2000002", "_id"=>{"$ne"=>"5273006a87f643c0e2000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5273006a87f643c0e2000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273006a87f643c0e2000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:18 UTC, "created_at"=>2013-11-01 01:14:18 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273006a87f643c0e2000004"}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "template_dependencies.en"=>{"$in"=>["5273006a87f643c0e2000004"]}}, "$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"=>["5273006a87f643c0e2000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273006a87f643c0e2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006a87f643c0e2000002", "_id"=>{"$ne"=>"5273006b87f643c0e2000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006a87f643c0e2000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273006b87f643c0e2000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273006a87f643c0e2000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:19 UTC, "created_at"=>2013-11-01 01:14:19 UTC}] flags=[] (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "template_dependencies.en"=>{"$in"=>["5273006b87f643c0e2000005"]}}, "$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"=>"5273006b87f643c0e2000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273006b87f643c0e2000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273006a87f643c0e2000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273006b87f643c0e2000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273006a87f643c0e2000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273006b87f643c0e2000007", "updated_at"=>2013-11-01 01:14:19 UTC, "created_at"=>2013-11-01 01:14:19 UTC, "entries_custom_fields"=>[{"_id"=>"5273006b87f643c0e2000007", "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.2520ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273006b87f643c0e2000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273006b87f643c0e2000008", "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", "updated_at"=>2013-11-01 01:14:19 UTC, "created_at"=>2013-11-01 01:14:19 UTC}}} flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273006b87f643c0e2000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273006b87f643c0e2000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273006b87f643c0e2000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273006b87f643c0e2000006"]}}} (0.3648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273006b87f643c0e2000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273006b87f643c0e2000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273006b87f643c0e2000006", "content_type_id"=>"5273006b87f643c0e2000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273006a87f643c0e2000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:14:19 UTC, "created_at"=>2013-11-01 01:14:19 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273006c87f643c0e200000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273006b87f643c0e2000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273006b87f643c0e2000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3772ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273006b87f643c0e2000006"]}}} (0.4151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273006b87f643c0e2000006"]}}} (0.3142ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273006b87f643c0e2000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273006c87f643c0e200000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273006b87f643c0e2000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273006b87f643c0e2000006", "content_type_id"=>"5273006b87f643c0e2000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273006a87f643c0e2000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:14:20 UTC, "created_at"=>2013-11-01 01:14:20 UTC}] flags=[] (0.2110ms) 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.8049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273006a87f643c0e2000002", "parent_id"=>"5273006a87f643c0e2000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273006a87f643c0e2000004", "site_id"=>"5273006a87f643c0e2000002", "_id"=>{"$ne"=>"5273006c87f643c0e200000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5273006a87f643c0e2000004"}]}]}, "$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"=>"5273006c87f643c0e200000b", "parent_ids"=>["5273006a87f643c0e2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273006a87f643c0e2000002", "parent_id"=>"5273006a87f643c0e2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:20 UTC, "created_at"=>2013-11-01 01:14:20 UTC}] flags=[] (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "template_dependencies.en"=>{"$in"=>["5273006c87f643c0e200000b"]}}, "$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"=>"5273006c87f643c0e200000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273006c87f643c0e200000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273006a87f643c0e2000002", "parent_id"=>"5273006a87f643c0e2000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273006a87f643c0e2000004", "site_id"=>"5273006a87f643c0e2000002", "_id"=>{"$ne"=>"5273006d87f643c0e200000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273006a87f643c0e2000004", "site_id"=>"5273006a87f643c0e2000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273006a87f643c0e2000004"}]}]}, "$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"=>"5273006d87f643c0e200000c", "parent_ids"=>["5273006a87f643c0e2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273006a87f643c0e2000002", "parent_id"=>"5273006a87f643c0e2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:21 UTC, "created_at"=>2013-11-01 01:14:21 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "template_dependencies.en"=>{"$in"=>["5273006d87f643c0e200000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273006d87f643c0e200000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273006d87f643c0e200000c"]}} 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={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5273006a87f643c0e2000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4408ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273006a87f643c0e2000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:14:21 UTC}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "template_dependencies.en"=>{"$in"=>["5273006a87f643c0e2000004"]}}, "$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.7229ms) 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"=>"5273006e87f643c0e200000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:14:17 UTC, "updated_at"=>2013-11-01 01:14:22 UTC, "memberships"=>[{"_id"=>"5273006e87f643c0e200000e", "role"=>"admin", "account_id"=>"5273006a87f643c0e2000001"}]}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273006e87f643c0e200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006e87f643c0e200000d", "_id"=>{"$ne"=>"5273006e87f643c0e200000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273006e87f643c0e200000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273006e87f643c0e200000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:22 UTC, "created_at"=>2013-11-01 01:14:22 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006e87f643c0e200000d", "template_dependencies.en"=>{"$in"=>["5273006e87f643c0e200000f"]}}, "$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"=>"5273006e87f643c0e200000f"}, "$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"=>["5273006e87f643c0e200000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273006e87f643c0e200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006e87f643c0e200000d", "_id"=>{"$ne"=>"5273006f87f643c0e2000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006e87f643c0e200000d"}, "$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"=>"5273006f87f643c0e2000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273006e87f643c0e200000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:23 UTC, "created_at"=>2013-11-01 01:14:23 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006e87f643c0e200000d", "template_dependencies.en"=>{"$in"=>["5273006f87f643c0e2000010"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5273006f87f643c0e2000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273006f87f643c0e2000010"]}} 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"=>"5273006e87f643c0e200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273006e87f643c0e200000d", "_id"=>{"$ne"=>"5273006f87f643c0e2000011"}, "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"=>"5273006e87f643c0e200000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4718ms) 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.2592ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273006f87f643c0e2000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273006e87f643c0e200000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:14:23 UTC, "created_at"=>2013-11-01 01:14:23 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006e87f643c0e200000d", "template_dependencies.en"=>{"$in"=>["5273006f87f643c0e2000011"]}}, "$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"=>"5273006f87f643c0e2000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273006f87f643c0e2000011"]}} 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"=>"5273006e87f643c0e200000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273006f87f643c0e2000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273006e87f643c0e200000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273006f87f643c0e2000013", "updated_at"=>2013-11-01 01:14:23 UTC, "created_at"=>2013-11-01 01:14:23 UTC, "entries_custom_fields"=>[{"_id"=>"5273006f87f643c0e2000013", "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.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273006f87f643c0e2000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273006f87f643c0e2000012"]}} 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_content_entries selector={"content_type_id"=>"5273006f87f643c0e2000012", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273006f87f643c0e2000012"]}}} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273006f87f643c0e2000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273006f87f643c0e2000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273006f87f643c0e2000012", "content_type_id"=>"5273006f87f643c0e2000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273006e87f643c0e200000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:14:23 UTC, "created_at"=>2013-11-01 01:14:23 UTC}] flags=[] (0.1731ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:14:24 +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.7219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) Rendered text template (0.0ms) Completed 200 OK in 12.4ms (Views: 7.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:14:24 +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.8190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "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 453.8ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:14:24 +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.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "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.6070ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:14:24 +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.6042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "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 3.9ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 02:14:24 +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.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273006a87f643c0e2000002", "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 441.9ms (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.6599ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8287ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0509ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8190ms) 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.5381ms) 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.9680ms) 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.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273012a87f64312c7000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c9c19ed150d7dc514aa16b7c4b7100144fb9ab31", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"s5peECjGrvAHZk4x4sPB", "api_key"=>"788abe74c4ab769b5a6dfbd30055c1695807fa5b", "updated_at"=>2013-11-01 01:17:30 UTC, "created_at"=>2013-11-01 01:17:30 UTC}] flags=[] (0.1552ms) 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.8101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273012a87f64312c7000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:17:29 UTC, "updated_at"=>2013-11-01 01:17:30 UTC, "memberships"=>[{"_id"=>"5273012a87f64312c7000003", "role"=>"admin", "account_id"=>"5273012a87f64312c7000001"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273012a87f64312c7000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273012a87f64312c7000002", "_id"=>{"$ne"=>"5273012a87f64312c7000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5273012a87f64312c7000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273012a87f64312c7000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:17:30 UTC, "created_at"=>2013-11-01 01:17:30 UTC}] flags=[] (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273012a87f64312c7000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5273012a87f64312c7000002", "template_dependencies.en"=>{"$in"=>["5273012a87f64312c7000004"]}}, "$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"=>["5273012a87f64312c7000004"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2841ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5502ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4679ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8421ms) 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.5569ms) 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.7250ms) 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.9942ms) 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.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273014487f643219a000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4546843321f679ba980c1e58cd6e55a5fb3735a1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"svdggyyXPgABfAsGgEUp", "api_key"=>"5a5083386e9890d233ca4adb05be7428353b4812", "updated_at"=>2013-11-01 01:17:56 UTC, "created_at"=>2013-11-01 01:17:56 UTC}] flags=[] (0.1650ms) 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.7589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273014487f643219a000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:17:55 UTC, "updated_at"=>2013-11-01 01:17:56 UTC, "memberships"=>[{"_id"=>"5273014487f643219a000003", "role"=>"admin", "account_id"=>"5273014487f643219a000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273014487f643219a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273014487f643219a000002", "_id"=>{"$ne"=>"5273014487f643219a000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273014487f643219a000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273014487f643219a000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:17:56 UTC, "created_at"=>2013-11-01 01:17:56 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273014487f643219a000004"}, "$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"=>{"site_id"=>"5273014487f643219a000002", "template_dependencies.en"=>{"$in"=>["5273014487f643219a000004"]}}, "$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"=>["5273014487f643219a000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273014487f643219a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273014487f643219a000002", "_id"=>{"$ne"=>"5273014587f643219a000005"}, "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"=>"5273014487f643219a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273014587f643219a000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273014487f643219a000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:17:57 UTC, "created_at"=>2013-11-01 01:17:57 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "template_dependencies.en"=>{"$in"=>["5273014587f643219a000005"]}}, "$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"=>"5273014587f643219a000005"}, "$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"=>["5273014587f643219a000005"]}} 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_content_types selector={"site_id"=>"5273014487f643219a000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9558ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273014587f643219a000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273014487f643219a000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273014587f643219a000007", "updated_at"=>2013-11-01 01:17:57 UTC, "created_at"=>2013-11-01 01:17:57 UTC, "entries_custom_fields"=>[{"_id"=>"5273014587f643219a000007", "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.2260ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273014587f643219a000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273014587f643219a000008", "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", "updated_at"=>2013-11-01 01:17:57 UTC, "created_at"=>2013-11-01 01:17:57 UTC}}} flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273014587f643219a000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273014587f643219a000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273014587f643219a000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273014587f643219a000006"]}}} (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273014587f643219a000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273014587f643219a000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273014587f643219a000006", "content_type_id"=>"5273014587f643219a000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273014487f643219a000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:17:57 UTC, "created_at"=>2013-11-01 01:17:57 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273014687f643219a00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273014587f643219a000006"]}} 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"=>"5273014587f643219a000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273014587f643219a000006"]}}} (0.3779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273014587f643219a000006"]}}} (0.3178ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273014587f643219a000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273014687f643219a00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273014587f643219a000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273014587f643219a000006", "content_type_id"=>"5273014587f643219a000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273014487f643219a000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:17:58 UTC, "created_at"=>2013-11-01 01:17:58 UTC}] flags=[] (0.1910ms) 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.6406ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273014487f643219a000002", "parent_id"=>"5273014487f643219a000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5273014487f643219a000004", "site_id"=>"5273014487f643219a000002", "_id"=>{"$ne"=>"5273014787f643219a00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3934ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273014487f643219a000004"}]}]}, "$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"=>"5273014787f643219a00000b", "parent_ids"=>["5273014487f643219a000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273014487f643219a000002", "parent_id"=>"5273014487f643219a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:17:59 UTC, "created_at"=>2013-11-01 01:17:59 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "template_dependencies.en"=>{"$in"=>["5273014787f643219a00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"5273014787f643219a00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273014787f643219a00000b"]}} 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.7489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273014487f643219a000002", "parent_id"=>"5273014487f643219a000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273014487f643219a000004", "site_id"=>"5273014487f643219a000002", "_id"=>{"$ne"=>"5273014787f643219a00000c"}, "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"=>"5273014487f643219a000004", "site_id"=>"5273014487f643219a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4413ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273014487f643219a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273014787f643219a00000c", "parent_ids"=>["5273014487f643219a000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273014487f643219a000002", "parent_id"=>"5273014487f643219a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:17:59 UTC, "created_at"=>2013-11-01 01:17:59 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "template_dependencies.en"=>{"$in"=>["5273014787f643219a00000c"]}}, "$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"=>"5273014787f643219a00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273014787f643219a00000c"]}} 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"=>"5273014487f643219a000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273014487f643219a000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273014487f643219a000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:18:00 UTC}} flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "template_dependencies.en"=>{"$in"=>["5273014487f643219a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) 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.8340ms) 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.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273014887f643219a00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:17:55 UTC, "updated_at"=>2013-11-01 01:18:00 UTC, "memberships"=>[{"_id"=>"5273014887f643219a00000e", "role"=>"admin", "account_id"=>"5273014487f643219a000001"}]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273014887f643219a00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5273014887f643219a00000d", "_id"=>{"$ne"=>"5273014887f643219a00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273014887f643219a00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273014887f643219a00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:00 UTC, "created_at"=>2013-11-01 01:18:00 UTC}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014887f643219a00000d", "template_dependencies.en"=>{"$in"=>["5273014887f643219a00000f"]}}, "$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"=>"5273014887f643219a00000f"}, "$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"=>["5273014887f643219a00000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273014887f643219a00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273014887f643219a00000d", "_id"=>{"$ne"=>"5273014987f643219a000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273014887f643219a00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5273014987f643219a000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273014887f643219a00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:01 UTC, "created_at"=>2013-11-01 01:18:01 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014887f643219a00000d", "template_dependencies.en"=>{"$in"=>["5273014987f643219a000010"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5273014987f643219a000010"}, "$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"=>["5273014987f643219a000010"]}} 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={"site_id"=>"5273014887f643219a00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273014887f643219a00000d", "_id"=>{"$ne"=>"5273014987f643219a000011"}, "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"=>"5273014887f643219a00000d"}, "$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.2909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273014987f643219a000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273014887f643219a00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:01 UTC, "created_at"=>2013-11-01 01:18:01 UTC}] flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014887f643219a00000d", "template_dependencies.en"=>{"$in"=>["5273014987f643219a000011"]}}, "$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"=>"5273014987f643219a000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273014987f643219a000011"]}} 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"=>"5273014887f643219a00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273014a87f643219a000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273014887f643219a00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273014a87f643219a000013", "updated_at"=>2013-11-01 01:18:02 UTC, "created_at"=>2013-11-01 01:18:02 UTC, "entries_custom_fields"=>[{"_id"=>"5273014a87f643219a000013", "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.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273014a87f643219a000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273014a87f643219a000012"]}} 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_content_entries selector={"content_type_id"=>"5273014a87f643219a000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273014a87f643219a000012"]}}} (0.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273014a87f643219a000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273014a87f643219a000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273014a87f643219a000012", "content_type_id"=>"5273014a87f643219a000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273014887f643219a00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:18:02 UTC, "created_at"=>2013-11-01 01:18:02 UTC}] flags=[] (0.1590ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:18: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.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6430ms) Rendered text template (0.0ms) Completed 200 OK in 12.4ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:18: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.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "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) Rendered text template (0.0ms) Completed 200 OK in 448.3ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:18: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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "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.5240ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:18: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.5438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) 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 2013-11-01 02:18: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.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273014487f643219a000002", "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.5488ms) Rendered text template (0.0ms) Completed 200 OK in 447.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.6547ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4813ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8383ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1470ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8891ms) 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.5090ms) 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.5710ms) 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.1389ms) 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.6289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273016a87f64328a6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"221515087ca079484260b36088f4b509de099310", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RayagdLLhkCPRCkHb9wV", "api_key"=>"3d309f2751df21c84af7b34ec5bd1f89bb6e219e", "updated_at"=>2013-11-01 01:18:34 UTC, "created_at"=>2013-11-01 01:18:34 UTC}] flags=[] (0.2091ms) 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.8771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273016a87f64328a6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:18:34 UTC, "updated_at"=>2013-11-01 01:18:34 UTC, "memberships"=>[{"_id"=>"5273016a87f64328a6000003", "role"=>"admin", "account_id"=>"5273016a87f64328a6000001"}]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273016a87f64328a6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273016a87f64328a6000002", "_id"=>{"$ne"=>"5273016a87f64328a6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273016a87f64328a6000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273016a87f64328a6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:34 UTC, "created_at"=>2013-11-01 01:18:34 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273016a87f64328a6000004"}, "$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"=>{"site_id"=>"5273016a87f64328a6000002", "template_dependencies.en"=>{"$in"=>["5273016a87f64328a6000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016a87f64328a6000004"]}} 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={"site_id"=>"5273016a87f64328a6000002", "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"=>"5273016a87f64328a6000002", "_id"=>{"$ne"=>"5273016b87f64328a6000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273016a87f64328a6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5273016b87f64328a6000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273016a87f64328a6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:35 UTC, "created_at"=>2013-11-01 01:18:35 UTC}] flags=[] (0.2952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "template_dependencies.en"=>{"$in"=>["5273016b87f64328a6000005"]}}, "$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"=>"5273016b87f64328a6000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016b87f64328a6000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273016a87f64328a6000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5273016b87f64328a6000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273016a87f64328a6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273016b87f64328a6000007", "updated_at"=>2013-11-01 01:18:35 UTC, "created_at"=>2013-11-01 01:18:35 UTC, "entries_custom_fields"=>[{"_id"=>"5273016b87f64328a6000007", "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.2291ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273016b87f64328a6000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273016b87f64328a6000008", "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", "updated_at"=>2013-11-01 01:18:35 UTC, "created_at"=>2013-11-01 01:18:35 UTC}}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273016b87f64328a6000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273016b87f64328a6000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273016b87f64328a6000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273016b87f64328a6000006"]}}} (0.3650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273016b87f64328a6000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273016b87f64328a6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273016b87f64328a6000006", "content_type_id"=>"5273016b87f64328a6000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273016a87f64328a6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:18:35 UTC, "created_at"=>2013-11-01 01:18:35 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273016c87f64328a600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273016b87f64328a6000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5273016b87f64328a6000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273016b87f64328a6000006"]}}} (0.4938ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273016b87f64328a6000006"]}}} (0.2902ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273016b87f64328a6000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273016c87f64328a600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273016b87f64328a6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273016b87f64328a6000006", "content_type_id"=>"5273016b87f64328a6000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273016a87f64328a6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:18:36 UTC, "created_at"=>2013-11-01 01:18:36 UTC}] flags=[] (0.1826ms) 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.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273016a87f64328a6000002", "parent_id"=>"5273016a87f64328a6000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5273016a87f64328a6000004", "site_id"=>"5273016a87f64328a6000002", "_id"=>{"$ne"=>"5273016d87f64328a600000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273016a87f64328a6000004"}]}]}, "$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"=>"5273016d87f64328a600000b", "parent_ids"=>["5273016a87f64328a6000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273016a87f64328a6000002", "parent_id"=>"5273016a87f64328a6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:37 UTC, "created_at"=>2013-11-01 01:18:37 UTC}] flags=[] (0.2668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "template_dependencies.en"=>{"$in"=>["5273016d87f64328a600000b"]}}, "$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"=>"5273016d87f64328a600000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016d87f64328a600000b"]}} 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.7629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273016a87f64328a6000002", "parent_id"=>"5273016a87f64328a6000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273016a87f64328a6000004", "site_id"=>"5273016a87f64328a6000002", "_id"=>{"$ne"=>"5273016d87f64328a600000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273016a87f64328a6000004", "site_id"=>"5273016a87f64328a6000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273016a87f64328a6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273016d87f64328a600000c", "parent_ids"=>["5273016a87f64328a6000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273016a87f64328a6000002", "parent_id"=>"5273016a87f64328a6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:37 UTC, "created_at"=>2013-11-01 01:18:37 UTC}] flags=[] (0.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "template_dependencies.en"=>{"$in"=>["5273016d87f64328a600000c"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5273016d87f64328a600000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016d87f64328a600000c"]}} 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"=>"5273016a87f64328a6000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273016a87f64328a6000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273016a87f64328a6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:18:38 UTC}} flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "template_dependencies.en"=>{"$in"=>["5273016a87f64328a6000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) 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.3181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273016e87f64328a600000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:18:34 UTC, "updated_at"=>2013-11-01 01:18:38 UTC, "memberships"=>[{"_id"=>"5273016e87f64328a600000e", "role"=>"admin", "account_id"=>"5273016a87f64328a6000001"}]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273016e87f64328a600000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5273016e87f64328a600000d", "_id"=>{"$ne"=>"5273016e87f64328a600000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5273016e87f64328a600000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273016e87f64328a600000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:38 UTC, "created_at"=>2013-11-01 01:18:38 UTC}] flags=[] (0.2582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016e87f64328a600000d", "template_dependencies.en"=>{"$in"=>["5273016e87f64328a600000f"]}}, "$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"=>"5273016e87f64328a600000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016e87f64328a600000f"]}} 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"=>"5273016e87f64328a600000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273016e87f64328a600000d", "_id"=>{"$ne"=>"5273016f87f64328a6000010"}, "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"=>"5273016e87f64328a600000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5273016f87f64328a6000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273016e87f64328a600000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:39 UTC, "created_at"=>2013-11-01 01:18:39 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016e87f64328a600000d", "template_dependencies.en"=>{"$in"=>["5273016f87f64328a6000010"]}}, "$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"=>"5273016f87f64328a6000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016f87f64328a6000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273016e87f64328a600000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273016e87f64328a600000d", "_id"=>{"$ne"=>"5273016f87f64328a6000011"}, "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"=>"5273016e87f64328a600000d"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273016f87f64328a6000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273016e87f64328a600000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:18:39 UTC, "created_at"=>2013-11-01 01:18:39 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016e87f64328a600000d", "template_dependencies.en"=>{"$in"=>["5273016f87f64328a6000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5273016f87f64328a6000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6452ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273016f87f64328a6000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1197ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273016e87f64328a600000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4742ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273017087f64328a6000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273016e87f64328a600000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273017087f64328a6000013", "updated_at"=>2013-11-01 01:18:40 UTC, "created_at"=>2013-11-01 01:18:40 UTC, "entries_custom_fields"=>[{"_id"=>"5273017087f64328a6000013", "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.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273017087f64328a6000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273017087f64328a6000012"]}} 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"=>"5273017087f64328a6000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273017087f64328a6000012"]}}} (0.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273017087f64328a6000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273017087f64328a6000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273017087f64328a6000012", "content_type_id"=>"5273017087f64328a6000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273016e87f64328a600000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:18:40 UTC, "created_at"=>2013-11-01 01:18:40 UTC}] flags=[] (0.1588ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:18: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.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5758ms) Rendered text template (0.0ms) Completed 200 OK in 12.6ms (Views: 7.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:18:40 +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"=>"5273016a87f64328a6000002", "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.6120ms) Rendered text template (0.0ms) Completed 200 OK in 448.1ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:18:41 +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.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "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.6680ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02: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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "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.4ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 02:18:41 +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.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273016a87f64328a6000002", "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.6659ms) Rendered text template (0.0ms) Completed 200 OK in 446.0ms (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.5908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0128ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1792ms) 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.5801ms) 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.5407ms) 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.9551ms) 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.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273019d87f64334c2000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b40b636afff7dc5fa9be3f0f6cc8f4a116679676", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ThtD1DACz6df8RqBaxJu", "api_key"=>"dcf954e1c922cfde327e5558a4dbc92d86dc0ffb", "updated_at"=>2013-11-01 01:19:25 UTC, "created_at"=>2013-11-01 01:19:25 UTC}] flags=[] (0.1791ms) 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.8399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273019d87f64334c2000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:19:24 UTC, "updated_at"=>2013-11-01 01:19:25 UTC, "memberships"=>[{"_id"=>"5273019d87f64334c2000003", "role"=>"admin", "account_id"=>"5273019d87f64334c2000001"}]}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273019d87f64334c2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273019d87f64334c2000002", "_id"=>{"$ne"=>"5273019d87f64334c2000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273019d87f64334c2000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273019d87f64334c2000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:25 UTC, "created_at"=>2013-11-01 01:19:25 UTC}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273019d87f64334c2000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "template_dependencies.en"=>{"$in"=>["5273019d87f64334c2000004"]}}, "$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"=>["5273019d87f64334c2000004"]}} 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=locomotive_pages selector={"site_id"=>"5273019d87f64334c2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273019d87f64334c2000002", "_id"=>{"$ne"=>"5273019e87f64334c2000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273019d87f64334c2000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273019e87f64334c2000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273019d87f64334c2000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:26 UTC, "created_at"=>2013-11-01 01:19:26 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "template_dependencies.en"=>{"$in"=>["5273019e87f64334c2000005"]}}, "$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"=>"5273019e87f64334c2000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273019e87f64334c2000005"]}} 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"=>"5273019d87f64334c2000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273019e87f64334c2000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273019d87f64334c2000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273019e87f64334c2000007", "updated_at"=>2013-11-01 01:19:26 UTC, "created_at"=>2013-11-01 01:19:26 UTC, "entries_custom_fields"=>[{"_id"=>"5273019e87f64334c2000007", "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.2382ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273019e87f64334c2000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273019e87f64334c2000008", "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", "updated_at"=>2013-11-01 01:19:26 UTC, "created_at"=>2013-11-01 01:19:26 UTC}}} flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273019e87f64334c2000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273019e87f64334c2000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}}} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273019e87f64334c2000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273019e87f64334c2000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273019e87f64334c2000006", "content_type_id"=>"5273019e87f64334c2000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273019d87f64334c2000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:19:26 UTC, "created_at"=>2013-11-01 01:19:26 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273019f87f64334c200000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}} 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"=>"5273019e87f64334c2000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}}} (0.3679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}}} (0.2949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273019f87f64334c200000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273019e87f64334c2000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273019e87f64334c2000006", "content_type_id"=>"5273019e87f64334c2000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273019d87f64334c2000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:19:27 UTC, "created_at"=>2013-11-01 01:19:27 UTC}] flags=[] (0.2818ms) 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.8390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273019d87f64334c2000002", "parent_id"=>"5273019d87f64334c2000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5273019d87f64334c2000004", "site_id"=>"5273019d87f64334c2000002", "_id"=>{"$ne"=>"5273019f87f64334c200000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273019d87f64334c2000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5273019f87f64334c200000b", "parent_ids"=>["5273019d87f64334c2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273019d87f64334c2000002", "parent_id"=>"5273019d87f64334c2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:27 UTC, "created_at"=>2013-11-01 01:19:27 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "template_dependencies.en"=>{"$in"=>["5273019f87f64334c200000b"]}}, "$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"=>"5273019f87f64334c200000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273019f87f64334c200000b"]}} 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.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273019d87f64334c2000002", "parent_id"=>"5273019d87f64334c2000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5273019d87f64334c2000004", "site_id"=>"5273019d87f64334c2000002", "_id"=>{"$ne"=>"527301a087f64334c200000c"}, "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"=>"5273019d87f64334c2000004", "site_id"=>"5273019d87f64334c2000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273019d87f64334c2000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301a087f64334c200000c", "parent_ids"=>["5273019d87f64334c2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273019d87f64334c2000002", "parent_id"=>"5273019d87f64334c2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:28 UTC, "created_at"=>2013-11-01 01:19:28 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "template_dependencies.en"=>{"$in"=>["527301a087f64334c200000c"]}}, "$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"=>"527301a087f64334c200000c"}, "$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"=>["527301a087f64334c200000c"]}} 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"=>{"site_id"=>"5273019d87f64334c2000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273019d87f64334c2000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3641ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273019d87f64334c2000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:19:28 UTC}} flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "template_dependencies.en"=>{"$in"=>["5273019d87f64334c2000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) 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.7200ms) 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"=>"527301a187f64334c200000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:19:24 UTC, "updated_at"=>2013-11-01 01:19:29 UTC, "memberships"=>[{"_id"=>"527301a187f64334c200000e", "role"=>"admin", "account_id"=>"5273019d87f64334c2000001"}]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a187f64334c200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"527301a187f64334c200000d", "_id"=>{"$ne"=>"527301a187f64334c200000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301a187f64334c200000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527301a187f64334c200000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:29 UTC, "created_at"=>2013-11-01 01:19:29 UTC}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a187f64334c200000d", "template_dependencies.en"=>{"$in"=>["527301a187f64334c200000f"]}}, "$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"=>"527301a187f64334c200000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301a187f64334c200000f"]}} 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"=>"527301a187f64334c200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a187f64334c200000d", "_id"=>{"$ne"=>"527301a287f64334c2000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a187f64334c200000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301a287f64334c2000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527301a187f64334c200000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:30 UTC, "created_at"=>2013-11-01 01:19:30 UTC}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a187f64334c200000d", "template_dependencies.en"=>{"$in"=>["527301a287f64334c2000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a287f64334c2000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301a287f64334c2000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a187f64334c200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"527301a187f64334c200000d", "_id"=>{"$ne"=>"527301a287f64334c2000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a187f64334c200000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"527301a287f64334c2000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527301a187f64334c200000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:30 UTC, "created_at"=>2013-11-01 01:19:30 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a187f64334c200000d", "template_dependencies.en"=>{"$in"=>["527301a287f64334c2000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a287f64334c2000011"}, "$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"=>["527301a287f64334c2000011"]}} 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_content_types selector={"site_id"=>"527301a187f64334c200000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527301a287f64334c2000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527301a187f64334c200000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527301a287f64334c2000013", "updated_at"=>2013-11-01 01:19:30 UTC, "created_at"=>2013-11-01 01:19:30 UTC, "entries_custom_fields"=>[{"_id"=>"527301a287f64334c2000013", "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.2642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527301a287f64334c2000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527301a287f64334c2000012"]}} 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_entries selector={"content_type_id"=>"527301a287f64334c2000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (8.2409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527301a287f64334c2000012"]}}} (0.6189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527301a287f64334c2000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527301a287f64334c2000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527301a287f64334c2000012", "content_type_id"=>"527301a287f64334c2000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527301a187f64334c200000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:19:30 UTC, "created_at"=>2013-11-01 01:19:30 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273019e87f64334c2000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273019f87f64334c200000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}} 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"=>"5273019e87f64334c2000006"} update={"$set"=>{"updated_at"=>2013-11-01 01:19:31 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273019e87f64334c2000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1190ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02: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 (1.4782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 13.4ms (Views: 7.0ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:19: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.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "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.6430ms) Rendered text template (0.0ms) Completed 200 OK in 448.0ms (Views: 0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273019e87f64334c2000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273019e87f64334c2000006", "updated_at"=>{"$lt"=>2013-11-01 01:19:31 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5273019e87f64334c2000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4327ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273019d87f64334c2000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5273019e87f64334c2000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5273019e87f64334c2000009"} update={"$set"=>{"updated_at"=>2013-11-01 01:19:31 UTC}} flags=[] (0.3619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273019d87f64334c2000002"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"5273019e87f64334c2000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5273019f87f64334c200000a"} update={"$set"=>{"updated_at"=>2013-11-01 01:19:32 UTC}} flags=[] (0.1249ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 02:19:33 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 02:19:33 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:19: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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273019d87f64334c2000002", "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.8290ms) Rendered text template (0.0ms) Completed 200 OK in 448.6ms (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.8709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7841ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6820ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0648ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2910ms) 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.5000ms) 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.7441ms) 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.3293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527301a687f64334c2000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5f8ef85d7e099c940dadd0019e1eaef4dd489099", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"5DxQse1AXRafWuboxVzb", "api_key"=>"42093b8885652f14fde6e48f035e978123421520", "updated_at"=>2013-11-01 01:19:34 UTC, "created_at"=>2013-11-01 01:19:34 UTC}] flags=[] (0.1252ms) 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.9017ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527301a687f64334c2000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:19:24 UTC, "updated_at"=>2013-11-01 01:19:34 UTC, "memberships"=>[{"_id"=>"527301a687f64334c2000017", "role"=>"admin", "account_id"=>"527301a687f64334c2000015"}]}] flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a687f64334c2000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8986ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a687f64334c2000016", "_id"=>{"$ne"=>"527301a687f64334c2000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527301a687f64334c2000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527301a687f64334c2000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:34 UTC, "created_at"=>2013-11-01 01:19:34 UTC}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "template_dependencies.en"=>{"$in"=>["527301a687f64334c2000018"]}}, "$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"=>"527301a687f64334c2000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301a687f64334c2000018"]}} 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"=>"527301a687f64334c2000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a687f64334c2000016", "_id"=>{"$ne"=>"527301a687f64334c2000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a687f64334c2000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301a687f64334c2000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527301a687f64334c2000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:34 UTC, "created_at"=>2013-11-01 01:19:34 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "template_dependencies.en"=>{"$in"=>["527301a687f64334c2000019"]}}, "$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"=>"527301a687f64334c2000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301a687f64334c2000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527301a687f64334c2000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527301a687f64334c200001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527301a687f64334c2000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527301a687f64334c200001b", "updated_at"=>2013-11-01 01:19:34 UTC, "created_at"=>2013-11-01 01:19:34 UTC, "entries_custom_fields"=>[{"_id"=>"527301a687f64334c200001b", "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.2418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527301a687f64334c200001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527301a687f64334c200001c", "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", "updated_at"=>2013-11-01 01:19:34 UTC, "created_at"=>2013-11-01 01:19:34 UTC}}} flags=[] (0.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527301a687f64334c200001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527301a687f64334c200001a"]}} 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"=>"527301a687f64334c200001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5579ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527301a687f64334c200001a"]}}} (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527301a687f64334c200001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527301a687f64334c200001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527301a687f64334c200001a", "content_type_id"=>"527301a687f64334c200001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527301a687f64334c2000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:19:34 UTC, "created_at"=>2013-11-01 01:19:34 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527301a787f64334c200001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527301a687f64334c200001a"]}} 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"=>"527301a687f64334c200001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527301a687f64334c200001a"]}}} (0.3581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527301a687f64334c200001a"]}}} (0.3061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527301a687f64334c200001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527301a787f64334c200001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527301a687f64334c200001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527301a687f64334c200001a", "content_type_id"=>"527301a687f64334c200001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527301a687f64334c2000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:19:35 UTC, "created_at"=>2013-11-01 01:19:35 UTC}] flags=[] (0.2081ms) 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.7079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a687f64334c2000016", "parent_id"=>"527301a687f64334c2000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a687f64334c2000018", "site_id"=>"527301a687f64334c2000016", "_id"=>{"$ne"=>"527301a787f64334c200001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527301a687f64334c2000018"}]}]}, "$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"=>"527301a787f64334c200001f", "parent_ids"=>["527301a687f64334c2000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527301a687f64334c2000016", "parent_id"=>"527301a687f64334c2000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:35 UTC, "created_at"=>2013-11-01 01:19:35 UTC}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "template_dependencies.en"=>{"$in"=>["527301a787f64334c200001f"]}}, "$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"=>"527301a787f64334c200001f"}, "$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"=>["527301a787f64334c200001f"]}} 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.7169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a687f64334c2000016", "parent_id"=>"527301a687f64334c2000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a687f64334c2000018", "site_id"=>"527301a687f64334c2000016", "_id"=>{"$ne"=>"527301a887f64334c2000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a687f64334c2000018", "site_id"=>"527301a687f64334c2000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527301a687f64334c2000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301a887f64334c2000020", "parent_ids"=>["527301a687f64334c2000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527301a687f64334c2000016", "parent_id"=>"527301a687f64334c2000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:36 UTC, "created_at"=>2013-11-01 01:19:36 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "template_dependencies.en"=>{"$in"=>["527301a887f64334c2000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a887f64334c2000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301a887f64334c2000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"527301a687f64334c2000016"}, "$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"=>"527301a687f64334c2000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:19:37 UTC}} flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "template_dependencies.en"=>{"$in"=>["527301a687f64334c2000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6199ms) 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.3612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527301a987f64334c2000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:19:24 UTC, "updated_at"=>2013-11-01 01:19:37 UTC, "memberships"=>[{"_id"=>"527301a987f64334c2000022", "role"=>"admin", "account_id"=>"527301a687f64334c2000015"}]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a987f64334c2000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a987f64334c2000021", "_id"=>{"$ne"=>"527301a987f64334c2000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301a987f64334c2000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527301a987f64334c2000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:37 UTC, "created_at"=>2013-11-01 01:19:37 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a987f64334c2000021", "template_dependencies.en"=>{"$in"=>["527301a987f64334c2000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527301a987f64334c2000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301a987f64334c2000023"]}} 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=locomotive_pages selector={"site_id"=>"527301a987f64334c2000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a987f64334c2000021", "_id"=>{"$ne"=>"527301aa87f64334c2000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a987f64334c2000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301aa87f64334c2000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527301a987f64334c2000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:38 UTC, "created_at"=>2013-11-01 01:19:38 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a987f64334c2000021", "template_dependencies.en"=>{"$in"=>["527301aa87f64334c2000024"]}}, "$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"=>"527301aa87f64334c2000024"}, "$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"=>["527301aa87f64334c2000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527301a987f64334c2000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a987f64334c2000021", "_id"=>{"$ne"=>"527301aa87f64334c2000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527301a987f64334c2000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4752ms) 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.2620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527301aa87f64334c2000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527301a987f64334c2000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:19:38 UTC, "created_at"=>2013-11-01 01:19:38 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a987f64334c2000021", "template_dependencies.en"=>{"$in"=>["527301aa87f64334c2000025"]}}, "$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"=>"527301aa87f64334c2000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527301aa87f64334c2000025"]}} 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"=>"527301a987f64334c2000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527301aa87f64334c2000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527301a987f64334c2000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527301aa87f64334c2000027", "updated_at"=>2013-11-01 01:19:38 UTC, "created_at"=>2013-11-01 01:19:38 UTC, "entries_custom_fields"=>[{"_id"=>"527301aa87f64334c2000027", "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.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527301aa87f64334c2000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527301aa87f64334c2000026"]}} 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={"content_type_id"=>"527301aa87f64334c2000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527301aa87f64334c2000026"]}}} (0.5112ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527301aa87f64334c2000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527301aa87f64334c2000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527301aa87f64334c2000026", "content_type_id"=>"527301aa87f64334c2000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527301a987f64334c2000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:19:38 UTC, "created_at"=>2013-11-01 01:19:38 UTC}] flags=[] (0.2210ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:19:39 +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.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7899ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (Views: 0.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:19:39 +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.5379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "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.4971ms) Rendered text template (0.0ms) Completed 200 OK in 440.5ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:19:40 +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"=>"527301a687f64334c2000016", "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.6337ms) Rendered text template (0.0ms) Completed 200 OK in 4.3ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02: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.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5093ms) 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 2013-11-01 02:19:40 +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.5391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527301a687f64334c2000016", "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) Rendered text template (0.0ms) Completed 200 OK in 440.9ms (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.6530ms) 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.2791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8960ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2381ms) 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.8261ms) 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.5999ms) 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.8781ms) 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.4408ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273089687f6435e4b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"478b24eea0c4aa33a64eed8e1768d00584d00346", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xCfpyExqRMbJqXxWZaek", "api_key"=>"f4b62ec013aa476eb072919bda0ad5705c9a6e7b", "updated_at"=>2013-11-01 01:49:10 UTC, "created_at"=>2013-11-01 01:49:10 UTC}] flags=[] (0.2851ms) 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.8922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273089687f6435e4b000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:49:09 UTC, "updated_at"=>2013-11-01 01:49:10 UTC, "memberships"=>[{"_id"=>"5273089687f6435e4b000003", "role"=>"admin", "account_id"=>"5273089687f6435e4b000001"}]}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089687f6435e4b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089687f6435e4b000002", "_id"=>{"$ne"=>"5273089687f6435e4b000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089687f6435e4b000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273089687f6435e4b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:10 UTC, "created_at"=>2013-11-01 01:49:10 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089687f6435e4b000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "template_dependencies.en"=>{"$in"=>["5273089687f6435e4b000004"]}}, "$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"=>["5273089687f6435e4b000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089687f6435e4b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089687f6435e4b000002", "_id"=>{"$ne"=>"5273089787f6435e4b000005"}, "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"=>nil, "site_id"=>"5273089687f6435e4b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089787f6435e4b000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273089687f6435e4b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:11 UTC, "created_at"=>2013-11-01 01:49:11 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "template_dependencies.en"=>{"$in"=>["5273089787f6435e4b000005"]}}, "$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"=>"5273089787f6435e4b000005"}, "$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"=>["5273089787f6435e4b000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273089687f6435e4b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4838ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273089787f6435e4b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273089687f6435e4b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273089787f6435e4b000007", "updated_at"=>2013-11-01 01:49:11 UTC, "created_at"=>2013-11-01 01:49:11 UTC, "entries_custom_fields"=>[{"_id"=>"5273089787f6435e4b000007", "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.2520ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273089787f6435e4b000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273089787f6435e4b000008", "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", "updated_at"=>2013-11-01 01:49:11 UTC, "created_at"=>2013-11-01 01:49:11 UTC}}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273089787f6435e4b000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089787f6435e4b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273089787f6435e4b000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089787f6435e4b000006"]}}} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273089787f6435e4b000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273089787f6435e4b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273089787f6435e4b000006", "content_type_id"=>"5273089787f6435e4b000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273089687f6435e4b000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:49:11 UTC, "created_at"=>2013-11-01 01:49:11 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273089887f6435e4b00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089787f6435e4b000006"]}} 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"=>"5273089787f6435e4b000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6087ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089787f6435e4b000006"]}}} (0.6881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089787f6435e4b000006"]}}} (0.5262ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089787f6435e4b000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.9308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273089887f6435e4b00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273089787f6435e4b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273089787f6435e4b000006", "content_type_id"=>"5273089787f6435e4b000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273089687f6435e4b000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:49:12 UTC, "created_at"=>2013-11-01 01:49:12 UTC}] flags=[] (2.3334ms) 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.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089687f6435e4b000002", "parent_id"=>"5273089687f6435e4b000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089687f6435e4b000004", "site_id"=>"5273089687f6435e4b000002", "_id"=>{"$ne"=>"5273089887f6435e4b00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273089687f6435e4b000004"}]}]}, "$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"=>"5273089887f6435e4b00000b", "parent_ids"=>["5273089687f6435e4b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273089687f6435e4b000002", "parent_id"=>"5273089687f6435e4b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:12 UTC, "created_at"=>2013-11-01 01:49:12 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "template_dependencies.en"=>{"$in"=>["5273089887f6435e4b00000b"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5273089887f6435e4b00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273089887f6435e4b00000b"]}} 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.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089687f6435e4b000002", "parent_id"=>"5273089687f6435e4b000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089687f6435e4b000004", "site_id"=>"5273089687f6435e4b000002", "_id"=>{"$ne"=>"5273089987f6435e4b00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089687f6435e4b000004", "site_id"=>"5273089687f6435e4b000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273089687f6435e4b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5273089987f6435e4b00000c", "parent_ids"=>["5273089687f6435e4b000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273089687f6435e4b000002", "parent_id"=>"5273089687f6435e4b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:13 UTC, "created_at"=>2013-11-01 01:49:13 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "template_dependencies.en"=>{"$in"=>["5273089987f6435e4b00000c"]}}, "$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"=>"5273089987f6435e4b00000c"}, "$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"=>["5273089987f6435e4b00000c"]}} 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"=>{"site_id"=>"5273089687f6435e4b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273089687f6435e4b000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273089687f6435e4b000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:49:14 UTC}} flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "template_dependencies.en"=>{"$in"=>["5273089687f6435e4b000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6912ms) 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.4113ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273089a87f6435e4b00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:49:09 UTC, "updated_at"=>2013-11-01 01:49:14 UTC, "memberships"=>[{"_id"=>"5273089a87f6435e4b00000e", "role"=>"admin", "account_id"=>"5273089687f6435e4b000001"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089a87f6435e4b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089a87f6435e4b00000d", "_id"=>{"$ne"=>"5273089a87f6435e4b00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089a87f6435e4b00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273089a87f6435e4b00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:14 UTC, "created_at"=>2013-11-01 01:49:14 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089a87f6435e4b00000d", "template_dependencies.en"=>{"$in"=>["5273089a87f6435e4b00000f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5273089a87f6435e4b00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3526ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273089a87f6435e4b00000f"]}} 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"=>"5273089a87f6435e4b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5273089a87f6435e4b00000d", "_id"=>{"$ne"=>"5273089b87f6435e4b000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089a87f6435e4b00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5248ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089b87f6435e4b000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273089a87f6435e4b00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:15 UTC, "created_at"=>2013-11-01 01:49:15 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089a87f6435e4b00000d", "template_dependencies.en"=>{"$in"=>["5273089b87f6435e4b000010"]}}, "$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"=>"5273089b87f6435e4b000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273089b87f6435e4b000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089a87f6435e4b00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089a87f6435e4b00000d", "_id"=>{"$ne"=>"5273089b87f6435e4b000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089a87f6435e4b00000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5273089b87f6435e4b000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273089a87f6435e4b00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:15 UTC, "created_at"=>2013-11-01 01:49:15 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089a87f6435e4b00000d", "template_dependencies.en"=>{"$in"=>["5273089b87f6435e4b000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089b87f6435e4b000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273089b87f6435e4b000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1323ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273089a87f6435e4b00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273089b87f6435e4b000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273089a87f6435e4b00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273089b87f6435e4b000013", "updated_at"=>2013-11-01 01:49:15 UTC, "created_at"=>2013-11-01 01:49:15 UTC, "entries_custom_fields"=>[{"_id"=>"5273089b87f6435e4b000013", "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.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273089b87f6435e4b000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089b87f6435e4b000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273089b87f6435e4b000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4673ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089b87f6435e4b000012"]}}} (0.3929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273089b87f6435e4b000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273089b87f6435e4b000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273089b87f6435e4b000012", "content_type_id"=>"5273089b87f6435e4b000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273089a87f6435e4b00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:49:15 UTC, "created_at"=>2013-11-01 01:49:15 UTC}] flags=[] (0.1791ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:49: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.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) Rendered text template (0.0ms) Completed 200 OK in 12.3ms (Views: 6.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:49: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.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "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.6428ms) Rendered text template (0.0ms) Completed 200 OK in 454.5ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:49:16 +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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "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.7229ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:49: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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) 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 2013-11-01 02:49:17 +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.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089687f6435e4b000002", "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.5558ms) Rendered text template (0.0ms) Completed 200 OK in 444.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.6318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3568ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3242ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8423ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0221ms) 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.3362ms) 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.7691ms) 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.3428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273089d87f6435e4b000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3aa9a5f89f3a69eda58a0e8e50ca940fc2879bd1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"KdVgjsyojwHmyjN8HHLb", "api_key"=>"b43c8db100b1a5a5ce14f3e42e5c95b8860d7b87", "updated_at"=>2013-11-01 01:49:17 UTC, "created_at"=>2013-11-01 01:49:17 UTC}] flags=[] (0.2000ms) 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.8512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273089d87f6435e4b000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:49:09 UTC, "updated_at"=>2013-11-01 01:49:17 UTC, "memberships"=>[{"_id"=>"5273089d87f6435e4b000017", "role"=>"admin", "account_id"=>"5273089d87f6435e4b000015"}]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089d87f6435e4b000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089d87f6435e4b000016", "_id"=>{"$ne"=>"5273089d87f6435e4b000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089d87f6435e4b000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273089d87f6435e4b000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:17 UTC, "created_at"=>2013-11-01 01:49:17 UTC}] flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "template_dependencies.en"=>{"$in"=>["5273089d87f6435e4b000018"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5273089d87f6435e4b000018"}, "$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"=>["5273089d87f6435e4b000018"]}} 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={"site_id"=>"5273089d87f6435e4b000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089d87f6435e4b000016", "_id"=>{"$ne"=>"5273089e87f6435e4b000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273089d87f6435e4b000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5336ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089e87f6435e4b000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273089d87f6435e4b000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:18 UTC, "created_at"=>2013-11-01 01:49:18 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "template_dependencies.en"=>{"$in"=>["5273089e87f6435e4b000019"]}}, "$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"=>"5273089e87f6435e4b000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273089e87f6435e4b000019"]}} 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"=>"5273089d87f6435e4b000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273089e87f6435e4b00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273089d87f6435e4b000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273089e87f6435e4b00001b", "updated_at"=>2013-11-01 01:49:18 UTC, "created_at"=>2013-11-01 01:49:18 UTC, "entries_custom_fields"=>[{"_id"=>"5273089e87f6435e4b00001b", "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.2160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273089e87f6435e4b00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273089e87f6435e4b00001c", "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", "updated_at"=>2013-11-01 01:49:18 UTC, "created_at"=>2013-11-01 01:49:18 UTC}}} flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273089e87f6435e4b00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}} 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"=>"5273089e87f6435e4b00001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}}} (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273089e87f6435e4b00001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273089e87f6435e4b00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273089e87f6435e4b00001a", "content_type_id"=>"5273089e87f6435e4b00001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273089d87f6435e4b000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:49:18 UTC, "created_at"=>2013-11-01 01:49:18 UTC}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273089f87f6435e4b00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6163ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273089e87f6435e4b00001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4869ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}}} (0.4649ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}}} (0.2940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273089f87f6435e4b00001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273089e87f6435e4b00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273089e87f6435e4b00001a", "content_type_id"=>"5273089e87f6435e4b00001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273089d87f6435e4b000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:49:19 UTC, "created_at"=>2013-11-01 01:49:19 UTC}] flags=[] (0.1919ms) 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.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089d87f6435e4b000016", "parent_id"=>"5273089d87f6435e4b000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089d87f6435e4b000018", "site_id"=>"5273089d87f6435e4b000016", "_id"=>{"$ne"=>"5273089f87f6435e4b00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273089d87f6435e4b000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273089f87f6435e4b00001f", "parent_ids"=>["5273089d87f6435e4b000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273089d87f6435e4b000016", "parent_id"=>"5273089d87f6435e4b000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:19 UTC, "created_at"=>2013-11-01 01:49:19 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "template_dependencies.en"=>{"$in"=>["5273089f87f6435e4b00001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089f87f6435e4b00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273089f87f6435e4b00001f"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273089d87f6435e4b000016", "parent_id"=>"5273089d87f6435e4b000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273089d87f6435e4b000018", "site_id"=>"5273089d87f6435e4b000016", "_id"=>{"$ne"=>"527308a087f6435e4b000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273089d87f6435e4b000018", "site_id"=>"5273089d87f6435e4b000016"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273089d87f6435e4b000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"527308a087f6435e4b000020", "parent_ids"=>["5273089d87f6435e4b000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273089d87f6435e4b000016", "parent_id"=>"5273089d87f6435e4b000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:20 UTC, "created_at"=>2013-11-01 01:49:20 UTC}] flags=[] (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "template_dependencies.en"=>{"$in"=>["527308a087f6435e4b000020"]}}, "$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"=>"527308a087f6435e4b000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308a087f6435e4b000020"]}} 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={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5273089d87f6435e4b000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273089d87f6435e4b000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:49:21 UTC}} flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "template_dependencies.en"=>{"$in"=>["5273089d87f6435e4b000018"]}}, "$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.5891ms) 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.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527308a187f6435e4b000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:49:09 UTC, "updated_at"=>2013-11-01 01:49:21 UTC, "memberships"=>[{"_id"=>"527308a187f6435e4b000022", "role"=>"admin", "account_id"=>"5273089d87f6435e4b000015"}]}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308a187f6435e4b000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5434ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308a187f6435e4b000021", "_id"=>{"$ne"=>"527308a187f6435e4b000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527308a187f6435e4b000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527308a187f6435e4b000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:21 UTC, "created_at"=>2013-11-01 01:49:21 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308a187f6435e4b000021", "template_dependencies.en"=>{"$in"=>["527308a187f6435e4b000023"]}}, "$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"=>"527308a187f6435e4b000023"}, "$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"=>["527308a187f6435e4b000023"]}} 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"=>"527308a187f6435e4b000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"527308a187f6435e4b000021", "_id"=>{"$ne"=>"527308a287f6435e4b000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"527308a187f6435e4b000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527308a287f6435e4b000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527308a187f6435e4b000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:22 UTC, "created_at"=>2013-11-01 01:49:22 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308a187f6435e4b000021", "template_dependencies.en"=>{"$in"=>["527308a287f6435e4b000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308a287f6435e4b000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308a287f6435e4b000024"]}} 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"=>"527308a187f6435e4b000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308a187f6435e4b000021", "_id"=>{"$ne"=>"527308a287f6435e4b000025"}, "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"=>nil, "site_id"=>"527308a187f6435e4b000021"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308a287f6435e4b000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527308a187f6435e4b000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:49:22 UTC, "created_at"=>2013-11-01 01:49:22 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308a187f6435e4b000021", "template_dependencies.en"=>{"$in"=>["527308a287f6435e4b000025"]}}, "$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"=>"527308a287f6435e4b000025"}, "$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"=>["527308a287f6435e4b000025"]}} 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"=>"527308a187f6435e4b000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527308a287f6435e4b000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527308a187f6435e4b000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527308a287f6435e4b000027", "updated_at"=>2013-11-01 01:49:22 UTC, "created_at"=>2013-11-01 01:49:22 UTC, "entries_custom_fields"=>[{"_id"=>"527308a287f6435e4b000027", "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.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308a287f6435e4b000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527308a287f6435e4b000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527308a287f6435e4b000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308a287f6435e4b000026"]}}} (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308a287f6435e4b000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527308a287f6435e4b000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308a287f6435e4b000026", "content_type_id"=>"527308a287f6435e4b000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527308a187f6435e4b000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:49:22 UTC, "created_at"=>2013-11-01 01:49:22 UTC}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273089e87f6435e4b00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}} 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={"_id"=>{"$ne"=>"5273089f87f6435e4b00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4323ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273089e87f6435e4b00001a"} update={"$set"=>{"updated_at"=>2013-11-01 01:49:23 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273089e87f6435e4b00001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1111ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:49:23 +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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5088ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:49:23 +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"=>"5273089d87f6435e4b000016", "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.6189ms) Rendered text template (0.0ms) Completed 200 OK in 435.3ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273089e87f6435e4b00001a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4916ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273089e87f6435e4b00001a", "updated_at"=>{"$lt"=>2013-11-01 01:49:23 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5273089e87f6435e4b00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273089d87f6435e4b000016"}, "$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_types selector={"$query"=>{"_id"=>"5273089e87f6435e4b00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5273089e87f6435e4b00001d"} update={"$set"=>{"updated_at"=>2013-11-01 01:49:23 UTC}} flags=[] (0.1233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273089d87f6435e4b000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5273089e87f6435e4b00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6137ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5273089f87f6435e4b00001e"} update={"$set"=>{"updated_at"=>2013-11-01 01:49:24 UTC}} flags=[] (0.1388ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 02:49:25 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 02:49:25 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:49:25 +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.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273089d87f6435e4b000016", "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.5429ms) Rendered text template (0.0ms) Completed 200 OK in 452.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.5450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1551ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2801ms) 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.8693ms) 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.7980ms) 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.5770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527308d387f64324a5000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d90acd1936f50f76f4e693f85c327af71177a01c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"p4GTqE2rgi7bqnpSL3pp", "api_key"=>"72b36d70d3b7c185b9837e816964b6ded4871b10", "updated_at"=>2013-11-01 01:50:11 UTC, "created_at"=>2013-11-01 01:50:11 UTC}] flags=[] (0.2632ms) 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.6758ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527308d387f64324a5000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:50:10 UTC, "updated_at"=>2013-11-01 01:50:11 UTC, "memberships"=>[{"_id"=>"527308d387f64324a5000003", "role"=>"admin", "account_id"=>"527308d387f64324a5000001"}]}] flags=[] (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d387f64324a5000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d387f64324a5000002", "_id"=>{"$ne"=>"527308d387f64324a5000004"}, "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"=>"527308d387f64324a5000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527308d387f64324a5000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:11 UTC, "created_at"=>2013-11-01 01:50:11 UTC}] flags=[] (0.3002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d387f64324a5000004"}, "$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"=>{"site_id"=>"527308d387f64324a5000002", "template_dependencies.en"=>{"$in"=>["527308d387f64324a5000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3707ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308d387f64324a5000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d387f64324a5000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"527308d387f64324a5000002", "_id"=>{"$ne"=>"527308d487f64324a5000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d387f64324a5000002"}, "$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"=>"527308d487f64324a5000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527308d387f64324a5000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:12 UTC, "created_at"=>2013-11-01 01:50:12 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "template_dependencies.en"=>{"$in"=>["527308d487f64324a5000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d487f64324a5000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308d487f64324a5000005"]}} 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"=>"527308d387f64324a5000002", "slug"=>"examples"} 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"=>"527308d487f64324a5000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527308d387f64324a5000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527308d487f64324a5000007", "updated_at"=>2013-11-01 01:50:12 UTC, "created_at"=>2013-11-01 01:50:12 UTC, "entries_custom_fields"=>[{"_id"=>"527308d487f64324a5000007", "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.2601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527308d487f64324a5000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527308d487f64324a5000008", "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", "updated_at"=>2013-11-01 01:50:12 UTC, "created_at"=>2013-11-01 01:50:12 UTC}}} flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308d487f64324a5000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527308d487f64324a5000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527308d487f64324a5000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308d487f64324a5000006"]}}} (0.4561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308d487f64324a5000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527308d487f64324a5000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308d487f64324a5000006", "content_type_id"=>"527308d487f64324a5000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527308d387f64324a5000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:50:12 UTC, "created_at"=>2013-11-01 01:50:12 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308d487f64324a500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527308d487f64324a5000006"]}} 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"=>"527308d487f64324a5000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308d487f64324a5000006"]}}} (1.0021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308d487f64324a5000006"]}}} (2.1701ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308d487f64324a5000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (2.6741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308d487f64324a500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527308d487f64324a5000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308d487f64324a5000006", "content_type_id"=>"527308d487f64324a5000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527308d387f64324a5000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:50:12 UTC, "created_at"=>2013-11-01 01:50:12 UTC}] flags=[] (0.3269ms) 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.7970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d387f64324a5000002", "parent_id"=>"527308d387f64324a5000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d387f64324a5000004", "site_id"=>"527308d387f64324a5000002", "_id"=>{"$ne"=>"527308d587f64324a500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527308d387f64324a5000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308d587f64324a500000b", "parent_ids"=>["527308d387f64324a5000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527308d387f64324a5000002", "parent_id"=>"527308d387f64324a5000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:13 UTC, "created_at"=>2013-11-01 01:50:13 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "template_dependencies.en"=>{"$in"=>["527308d587f64324a500000b"]}}, "$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"=>"527308d587f64324a500000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308d587f64324a500000b"]}} 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.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d387f64324a5000002", "parent_id"=>"527308d387f64324a5000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d387f64324a5000004", "site_id"=>"527308d387f64324a5000002", "_id"=>{"$ne"=>"527308d687f64324a500000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d387f64324a5000004", "site_id"=>"527308d387f64324a5000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527308d387f64324a5000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308d687f64324a500000c", "parent_ids"=>["527308d387f64324a5000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527308d387f64324a5000002", "parent_id"=>"527308d387f64324a5000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:14 UTC, "created_at"=>2013-11-01 01:50:14 UTC}] flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "template_dependencies.en"=>{"$in"=>["527308d687f64324a500000c"]}}, "$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"=>"527308d687f64324a500000c"}, "$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"=>["527308d687f64324a500000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6714ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527308d387f64324a5000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527308d387f64324a5000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:50:14 UTC}} flags=[] (0.2367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "template_dependencies.en"=>{"$in"=>["527308d387f64324a5000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) 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.7920ms) 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.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527308d787f64324a500000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:50:10 UTC, "updated_at"=>2013-11-01 01:50:15 UTC, "memberships"=>[{"_id"=>"527308d787f64324a500000e", "role"=>"admin", "account_id"=>"527308d387f64324a5000001"}]}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d787f64324a500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d787f64324a500000d", "_id"=>{"$ne"=>"527308d787f64324a500000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308d787f64324a500000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527308d787f64324a500000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:15 UTC, "created_at"=>2013-11-01 01:50:15 UTC}] flags=[] (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d787f64324a500000d", "template_dependencies.en"=>{"$in"=>["527308d787f64324a500000f"]}}, "$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"=>"527308d787f64324a500000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6950ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308d787f64324a500000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d787f64324a500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d787f64324a500000d", "_id"=>{"$ne"=>"527308d787f64324a5000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d787f64324a500000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8237ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308d787f64324a5000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527308d787f64324a500000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:15 UTC, "created_at"=>2013-11-01 01:50:15 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d787f64324a500000d", "template_dependencies.en"=>{"$in"=>["527308d787f64324a5000010"]}}, "$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"=>"527308d787f64324a5000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3831ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308d787f64324a5000010"]}} 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={"site_id"=>"527308d787f64324a500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d787f64324a500000d", "_id"=>{"$ne"=>"527308d887f64324a5000011"}, "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"=>"527308d787f64324a500000d"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308d887f64324a5000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527308d787f64324a500000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:16 UTC, "created_at"=>2013-11-01 01:50:16 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d787f64324a500000d", "template_dependencies.en"=>{"$in"=>["527308d887f64324a5000011"]}}, "$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"=>"527308d887f64324a5000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308d887f64324a5000011"]}} 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_content_types selector={"site_id"=>"527308d787f64324a500000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527308d887f64324a5000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527308d787f64324a500000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527308d887f64324a5000013", "updated_at"=>2013-11-01 01:50:16 UTC, "created_at"=>2013-11-01 01:50:16 UTC, "entries_custom_fields"=>[{"_id"=>"527308d887f64324a5000013", "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.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308d887f64324a5000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527308d887f64324a5000012"]}} 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"=>"527308d887f64324a5000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308d887f64324a5000012"]}}} (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308d887f64324a5000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527308d887f64324a5000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308d887f64324a5000012", "content_type_id"=>"527308d887f64324a5000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527308d787f64324a500000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:50:16 UTC, "created_at"=>2013-11-01 01:50:16 UTC}] flags=[] (0.2377ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:50: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.8729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9341ms) Rendered text template (0.0ms) Completed 200 OK in 14.6ms (Views: 7.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:50:17 +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.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d387f64324a5000002", "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.5939ms) Completed 500 Internal Server Error in 5.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.5779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6222ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9820ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4369ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3771ms) 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.4082ms) 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.0678ms) 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.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527308d987f64324a5000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7bf2c06a093a0c40ba46983e5f17c5488dfaac39", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xbKz917j9fp8zmxtCVoq", "api_key"=>"4ff225c402802f2980676d6bbce80d1b7f56c420", "updated_at"=>2013-11-01 01:50:17 UTC, "created_at"=>2013-11-01 01:50:17 UTC}] flags=[] (0.1929ms) 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.8709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527308d987f64324a5000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:50:10 UTC, "updated_at"=>2013-11-01 01:50:17 UTC, "memberships"=>[{"_id"=>"527308d987f64324a5000017", "role"=>"admin", "account_id"=>"527308d987f64324a5000015"}]}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d987f64324a5000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d987f64324a5000016", "_id"=>{"$ne"=>"527308d987f64324a5000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308d987f64324a5000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527308d987f64324a5000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:17 UTC, "created_at"=>2013-11-01 01:50:17 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "template_dependencies.en"=>{"$in"=>["527308d987f64324a5000018"]}}, "$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"=>"527308d987f64324a5000018"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["527308d987f64324a5000018"]}} 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={"site_id"=>"527308d987f64324a5000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d987f64324a5000016", "_id"=>{"$ne"=>"527308da87f64324a5000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308d987f64324a5000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308da87f64324a5000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527308d987f64324a5000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:18 UTC, "created_at"=>2013-11-01 01:50:18 UTC}] flags=[] (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "template_dependencies.en"=>{"$in"=>["527308da87f64324a5000019"]}}, "$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"=>"527308da87f64324a5000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308da87f64324a5000019"]}} 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_content_types selector={"site_id"=>"527308d987f64324a5000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527308da87f64324a500001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527308d987f64324a5000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527308da87f64324a500001b", "updated_at"=>2013-11-01 01:50:18 UTC, "created_at"=>2013-11-01 01:50:18 UTC, "entries_custom_fields"=>[{"_id"=>"527308da87f64324a500001b", "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.2410ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527308da87f64324a500001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527308da87f64324a500001c", "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", "updated_at"=>2013-11-01 01:50:18 UTC, "created_at"=>2013-11-01 01:50:18 UTC}}} flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308da87f64324a500001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527308da87f64324a500001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.9100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}}} (0.6351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308da87f64324a500001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527308da87f64324a500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308da87f64324a500001a", "content_type_id"=>"527308da87f64324a500001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527308d987f64324a5000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:50:18 UTC, "created_at"=>2013-11-01 01:50:18 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308db87f64324a500001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}} 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"=>"527308da87f64324a500001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}}} (0.6227ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}}} (3.3381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.9849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308db87f64324a500001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527308da87f64324a500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308da87f64324a500001a", "content_type_id"=>"527308da87f64324a500001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527308d987f64324a5000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:50:19 UTC, "created_at"=>2013-11-01 01:50:19 UTC}] flags=[] (0.2620ms) 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.6163ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d987f64324a5000016", "parent_id"=>"527308d987f64324a5000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d987f64324a5000018", "site_id"=>"527308d987f64324a5000016", "_id"=>{"$ne"=>"527308db87f64324a500001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527308d987f64324a5000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308db87f64324a500001f", "parent_ids"=>["527308d987f64324a5000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527308d987f64324a5000016", "parent_id"=>"527308d987f64324a5000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:19 UTC, "created_at"=>2013-11-01 01:50:19 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "template_dependencies.en"=>{"$in"=>["527308db87f64324a500001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308db87f64324a500001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308db87f64324a500001f"]}} 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.8767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308d987f64324a5000016", "parent_id"=>"527308d987f64324a5000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d987f64324a5000018", "site_id"=>"527308d987f64324a5000016", "_id"=>{"$ne"=>"527308dc87f64324a5000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527308d987f64324a5000018", "site_id"=>"527308d987f64324a5000016"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527308d987f64324a5000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308dc87f64324a5000020", "parent_ids"=>["527308d987f64324a5000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527308d987f64324a5000016", "parent_id"=>"527308d987f64324a5000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:20 UTC, "created_at"=>2013-11-01 01:50:20 UTC}] flags=[] (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "template_dependencies.en"=>{"$in"=>["527308dc87f64324a5000020"]}}, "$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"=>"527308dc87f64324a5000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308dc87f64324a5000020"]}} 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_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"527308d987f64324a5000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527308d987f64324a5000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:50:21 UTC}} flags=[] (0.2587ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "template_dependencies.en"=>{"$in"=>["527308d987f64324a5000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) 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.9868ms) 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.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527308dd87f64324a5000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:50:10 UTC, "updated_at"=>2013-11-01 01:50:21 UTC, "memberships"=>[{"_id"=>"527308dd87f64324a5000022", "role"=>"admin", "account_id"=>"527308d987f64324a5000015"}]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308dd87f64324a5000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308dd87f64324a5000021", "_id"=>{"$ne"=>"527308dd87f64324a5000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527308dd87f64324a5000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527308dd87f64324a5000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:21 UTC, "created_at"=>2013-11-01 01:50:21 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308dd87f64324a5000021", "template_dependencies.en"=>{"$in"=>["527308dd87f64324a5000023"]}}, "$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"=>"527308dd87f64324a5000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308dd87f64324a5000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308dd87f64324a5000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308dd87f64324a5000021", "_id"=>{"$ne"=>"527308de87f64324a5000024"}, "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"=>"527308dd87f64324a5000021"}, "$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"=>"527308de87f64324a5000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527308dd87f64324a5000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:22 UTC, "created_at"=>2013-11-01 01:50:22 UTC}] flags=[] (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308dd87f64324a5000021", "template_dependencies.en"=>{"$in"=>["527308de87f64324a5000024"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"527308de87f64324a5000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527308de87f64324a5000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527308dd87f64324a5000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308dd87f64324a5000021", "_id"=>{"$ne"=>"527308de87f64324a5000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527308dd87f64324a5000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_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"=>"527308de87f64324a5000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527308dd87f64324a5000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:50:22 UTC, "created_at"=>2013-11-01 01:50:22 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308dd87f64324a5000021", "template_dependencies.en"=>{"$in"=>["527308de87f64324a5000025"]}}, "$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"=>"527308de87f64324a5000025"}, "$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"=>["527308de87f64324a5000025"]}} 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"=>"527308dd87f64324a5000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527308df87f64324a5000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527308dd87f64324a5000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527308df87f64324a5000027", "updated_at"=>2013-11-01 01:50:23 UTC, "created_at"=>2013-11-01 01:50:23 UTC, "entries_custom_fields"=>[{"_id"=>"527308df87f64324a5000027", "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.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308df87f64324a5000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527308df87f64324a5000026"]}} 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"=>"527308df87f64324a5000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4783ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527308df87f64324a5000026"]}}} (0.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527308df87f64324a5000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527308df87f64324a5000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527308df87f64324a5000026", "content_type_id"=>"527308df87f64324a5000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527308dd87f64324a5000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:50:23 UTC, "created_at"=>2013-11-01 01:50:23 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308da87f64324a500001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527308db87f64324a500001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527308da87f64324a500001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527308da87f64324a500001a"} update={"$set"=>{"updated_at"=>2013-11-01 01:50:23 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527308da87f64324a500001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2351ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:50:23 +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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "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 5.0ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:50:23 +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.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527308d987f64324a5000016", "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.5679ms) Completed 500 Internal Server Error in 4.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.6371ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4892ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9222ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (3.0150ms) 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.2000ms) 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.5169ms) 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.1959ms) 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.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273092a87f6432f11000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"91fd699c8b7533b689683b45672c1dc5834d2f28", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"h7yw2hDYmypxoqixrLpp", "api_key"=>"938c3254d5fe09d5baa85ad0484126b332b788be", "updated_at"=>2013-11-01 01:51:38 UTC, "created_at"=>2013-11-01 01:51:38 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} (1.0760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273092a87f6432f11000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:51:38 UTC, "updated_at"=>2013-11-01 01:51:38 UTC, "memberships"=>[{"_id"=>"5273092a87f6432f11000003", "role"=>"admin", "account_id"=>"5273092a87f6432f11000001"}]}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273092a87f6432f11000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9243ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273092a87f6432f11000002", "_id"=>{"$ne"=>"5273092a87f6432f11000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273092a87f6432f11000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273092a87f6432f11000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:38 UTC, "created_at"=>2013-11-01 01:51:38 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273092a87f6432f11000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "template_dependencies.en"=>{"$in"=>["5273092a87f6432f11000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273092a87f6432f11000004"]}} 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={"site_id"=>"5273092a87f6432f11000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273092a87f6432f11000002", "_id"=>{"$ne"=>"5273092b87f6432f11000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273092a87f6432f11000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5273092b87f6432f11000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273092a87f6432f11000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:39 UTC, "created_at"=>2013-11-01 01:51:39 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "template_dependencies.en"=>{"$in"=>["5273092b87f6432f11000005"]}}, "$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"=>"5273092b87f6432f11000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273092b87f6432f11000005"]}} 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_content_types selector={"site_id"=>"5273092a87f6432f11000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8843ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273092b87f6432f11000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273092a87f6432f11000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273092b87f6432f11000007", "updated_at"=>2013-11-01 01:51:39 UTC, "created_at"=>2013-11-01 01:51:39 UTC, "entries_custom_fields"=>[{"_id"=>"5273092b87f6432f11000007", "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.3250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273092b87f6432f11000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273092b87f6432f11000008", "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", "updated_at"=>2013-11-01 01:51:39 UTC, "created_at"=>2013-11-01 01:51:39 UTC}}} flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273092b87f6432f11000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273092b87f6432f11000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273092b87f6432f11000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273092b87f6432f11000006"]}}} (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273092b87f6432f11000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273092b87f6432f11000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273092b87f6432f11000006", "content_type_id"=>"5273092b87f6432f11000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273092a87f6432f11000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:51:39 UTC, "created_at"=>2013-11-01 01:51:39 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273092c87f6432f1100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273092b87f6432f11000006"]}} 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_content_entries selector={"content_type_id"=>"5273092b87f6432f11000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273092b87f6432f11000006"]}}} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273092b87f6432f11000006"]}}} (0.3128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273092b87f6432f11000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273092c87f6432f1100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273092b87f6432f11000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273092b87f6432f11000006", "content_type_id"=>"5273092b87f6432f11000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273092a87f6432f11000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:51:40 UTC, "created_at"=>2013-11-01 01:51:40 UTC}] flags=[] (0.1879ms) 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.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273092a87f6432f11000002", "parent_id"=>"5273092a87f6432f11000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5273092a87f6432f11000004", "site_id"=>"5273092a87f6432f11000002", "_id"=>{"$ne"=>"5273092d87f6432f1100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273092a87f6432f11000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273092d87f6432f1100000b", "parent_ids"=>["5273092a87f6432f11000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273092a87f6432f11000002", "parent_id"=>"5273092a87f6432f11000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:41 UTC, "created_at"=>2013-11-01 01:51:41 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "template_dependencies.en"=>{"$in"=>["5273092d87f6432f1100000b"]}}, "$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"=>"5273092d87f6432f1100000b"}, "$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"=>["5273092d87f6432f1100000b"]}} 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.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273092a87f6432f11000002", "parent_id"=>"5273092a87f6432f11000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5273092a87f6432f11000004", "site_id"=>"5273092a87f6432f11000002", "_id"=>{"$ne"=>"5273092d87f6432f1100000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273092a87f6432f11000004", "site_id"=>"5273092a87f6432f11000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273092a87f6432f11000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273092d87f6432f1100000c", "parent_ids"=>["5273092a87f6432f11000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273092a87f6432f11000002", "parent_id"=>"5273092a87f6432f11000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:41 UTC, "created_at"=>2013-11-01 01:51:41 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "template_dependencies.en"=>{"$in"=>["5273092d87f6432f1100000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4044ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273092d87f6432f1100000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4044ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273092d87f6432f1100000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5273092a87f6432f11000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273092a87f6432f11000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:51:42 UTC}} flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "template_dependencies.en"=>{"$in"=>["5273092a87f6432f11000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3521ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273092e87f6432f1100000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:51:38 UTC, "updated_at"=>2013-11-01 01:51:42 UTC, "memberships"=>[{"_id"=>"5273092e87f6432f1100000e", "role"=>"admin", "account_id"=>"5273092a87f6432f11000001"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273092e87f6432f1100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5273092e87f6432f1100000d", "_id"=>{"$ne"=>"5273092e87f6432f1100000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5273092e87f6432f1100000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273092e87f6432f1100000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:42 UTC, "created_at"=>2013-11-01 01:51:42 UTC}] flags=[] (0.3238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092e87f6432f1100000d", "template_dependencies.en"=>{"$in"=>["5273092e87f6432f1100000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273092e87f6432f1100000f"}, "$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"=>["5273092e87f6432f1100000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273092e87f6432f1100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273092e87f6432f1100000d", "_id"=>{"$ne"=>"5273092f87f6432f11000010"}, "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"=>"5273092e87f6432f1100000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273092f87f6432f11000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273092e87f6432f1100000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:43 UTC, "created_at"=>2013-11-01 01:51:43 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092e87f6432f1100000d", "template_dependencies.en"=>{"$in"=>["5273092f87f6432f11000010"]}}, "$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"=>"5273092f87f6432f11000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273092f87f6432f11000010"]}} 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={"site_id"=>"5273092e87f6432f1100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5273092e87f6432f1100000d", "_id"=>{"$ne"=>"5273092f87f6432f11000011"}, "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"=>"5273092e87f6432f1100000d"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273092f87f6432f11000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273092e87f6432f1100000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:43 UTC, "created_at"=>2013-11-01 01:51:43 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092e87f6432f1100000d", "template_dependencies.en"=>{"$in"=>["5273092f87f6432f11000011"]}}, "$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"=>"5273092f87f6432f11000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273092f87f6432f11000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273092e87f6432f1100000d", "slug"=>"examples"} 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"=>"5273093087f6432f11000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273092e87f6432f1100000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273093087f6432f11000013", "updated_at"=>2013-11-01 01:51:44 UTC, "created_at"=>2013-11-01 01:51:44 UTC, "entries_custom_fields"=>[{"_id"=>"5273093087f6432f11000013", "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.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273093087f6432f11000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273093087f6432f11000012"]}} 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"=>"5273093087f6432f11000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273093087f6432f11000012"]}}} (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273093087f6432f11000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273093087f6432f11000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273093087f6432f11000012", "content_type_id"=>"5273093087f6432f11000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273092e87f6432f1100000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:51:44 UTC, "created_at"=>2013-11-01 01:51:44 UTC}] flags=[] (0.1569ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:51:44 +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.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7019ms) Rendered text template (0.0ms) Completed 200 OK in 12.9ms (Views: 7.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:51:44 +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.8006ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273092a87f6432f11000002", "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.7277ms) Completed 500 Internal Server Error in 5.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.6680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9010ms) 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.7920ms) 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.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273093187f6432f11000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f2bb98076ef6748f5d0b229ff7948e45ab7e0178", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yDSCTypS1o6yyFpUntxP", "api_key"=>"1403d765848a5e2c3756a96b64f942e92db9c58e", "updated_at"=>2013-11-01 01:51:45 UTC, "created_at"=>2013-11-01 01:51:45 UTC}] flags=[] (0.1359ms) 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.7739ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273093187f6432f11000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:51:38 UTC, "updated_at"=>2013-11-01 01:51:45 UTC, "memberships"=>[{"_id"=>"5273093187f6432f11000017", "role"=>"admin", "account_id"=>"5273093187f6432f11000015"}]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273093187f6432f11000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273093187f6432f11000016", "_id"=>{"$ne"=>"5273093187f6432f11000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273093187f6432f11000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273093187f6432f11000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:45 UTC, "created_at"=>2013-11-01 01:51:45 UTC}] flags=[] (0.2897ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "template_dependencies.en"=>{"$in"=>["5273093187f6432f11000018"]}}, "$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"=>"5273093187f6432f11000018"}, "$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"=>["5273093187f6432f11000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273093187f6432f11000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273093187f6432f11000016", "_id"=>{"$ne"=>"5273093187f6432f11000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273093187f6432f11000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273093187f6432f11000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273093187f6432f11000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:45 UTC, "created_at"=>2013-11-01 01:51:45 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "template_dependencies.en"=>{"$in"=>["5273093187f6432f11000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093187f6432f11000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7849ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273093187f6432f11000019"]}} 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_content_types selector={"site_id"=>"5273093187f6432f11000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273093187f6432f1100001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273093187f6432f11000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273093187f6432f1100001b", "updated_at"=>2013-11-01 01:51:45 UTC, "created_at"=>2013-11-01 01:51:45 UTC, "entries_custom_fields"=>[{"_id"=>"5273093187f6432f1100001b", "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.2232ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273093187f6432f1100001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273093187f6432f1100001c", "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", "updated_at"=>2013-11-01 01:51:45 UTC, "created_at"=>2013-11-01 01:51:45 UTC}}} flags=[] (0.2413ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273093187f6432f1100001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273093187f6432f1100001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4468ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}}} (0.6111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273093187f6432f1100001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273093187f6432f1100001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273093187f6432f1100001a", "content_type_id"=>"5273093187f6432f1100001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273093187f6432f11000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:51:45 UTC, "created_at"=>2013-11-01 01:51:45 UTC}] flags=[] (0.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273093287f6432f1100001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}} 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_content_entries selector={"content_type_id"=>"5273093187f6432f1100001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}}} (0.4191ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}}} (0.3860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273093287f6432f1100001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273093187f6432f1100001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273093187f6432f1100001a", "content_type_id"=>"5273093187f6432f1100001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273093187f6432f11000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:51:46 UTC, "created_at"=>2013-11-01 01:51:46 UTC}] flags=[] (0.1850ms) 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.8020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273093187f6432f11000016", "parent_id"=>"5273093187f6432f11000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093187f6432f11000018", "site_id"=>"5273093187f6432f11000016", "_id"=>{"$ne"=>"5273093387f6432f1100001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273093187f6432f11000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273093387f6432f1100001f", "parent_ids"=>["5273093187f6432f11000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273093187f6432f11000016", "parent_id"=>"5273093187f6432f11000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:47 UTC, "created_at"=>2013-11-01 01:51:47 UTC}] flags=[] (0.4177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "template_dependencies.en"=>{"$in"=>["5273093387f6432f1100001f"]}}, "$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"=>"5273093387f6432f1100001f"}, "$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"=>["5273093387f6432f1100001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2239ms) 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.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273093187f6432f11000016", "parent_id"=>"5273093187f6432f11000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093187f6432f11000018", "site_id"=>"5273093187f6432f11000016", "_id"=>{"$ne"=>"5273093387f6432f11000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093187f6432f11000018", "site_id"=>"5273093187f6432f11000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273093187f6432f11000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273093387f6432f11000020", "parent_ids"=>["5273093187f6432f11000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273093187f6432f11000016", "parent_id"=>"5273093187f6432f11000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:47 UTC, "created_at"=>2013-11-01 01:51:47 UTC}] flags=[] (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "template_dependencies.en"=>{"$in"=>["5273093387f6432f11000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4463ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093387f6432f11000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273093387f6432f11000020"]}} 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"=>{"site_id"=>"5273093187f6432f11000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273093187f6432f11000016"}, "$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=locomotive_pages selector={"_id"=>"5273093187f6432f11000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:51:48 UTC}} flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "template_dependencies.en"=>{"$in"=>["5273093187f6432f11000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273093487f6432f11000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:51:38 UTC, "updated_at"=>2013-11-01 01:51:48 UTC, "memberships"=>[{"_id"=>"5273093487f6432f11000022", "role"=>"admin", "account_id"=>"5273093187f6432f11000015"}]}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273093487f6432f11000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273093487f6432f11000021", "_id"=>{"$ne"=>"5273093487f6432f11000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273093487f6432f11000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273093487f6432f11000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:48 UTC, "created_at"=>2013-11-01 01:51:48 UTC}] flags=[] (0.2544ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093487f6432f11000021", "template_dependencies.en"=>{"$in"=>["5273093487f6432f11000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093487f6432f11000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273093487f6432f11000023"]}} 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"=>"5273093487f6432f11000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273093487f6432f11000021", "_id"=>{"$ne"=>"5273093587f6432f11000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273093487f6432f11000021"}, "$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"=>"5273093587f6432f11000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273093487f6432f11000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:49 UTC, "created_at"=>2013-11-01 01:51:49 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093487f6432f11000021", "template_dependencies.en"=>{"$in"=>["5273093587f6432f11000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273093587f6432f11000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273093587f6432f11000024"]}} 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"=>"5273093487f6432f11000021", "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"=>"5273093487f6432f11000021", "_id"=>{"$ne"=>"5273093587f6432f11000025"}, "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"=>"5273093487f6432f11000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5479ms) 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"=>"5273093587f6432f11000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273093487f6432f11000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:51:49 UTC, "created_at"=>2013-11-01 01:51:49 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093487f6432f11000021", "template_dependencies.en"=>{"$in"=>["5273093587f6432f11000025"]}}, "$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"=>"5273093587f6432f11000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273093587f6432f11000025"]}} 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_content_types selector={"site_id"=>"5273093487f6432f11000021", "slug"=>"examples"} 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"=>"5273093687f6432f11000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273093487f6432f11000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273093687f6432f11000027", "updated_at"=>2013-11-01 01:51:50 UTC, "created_at"=>2013-11-01 01:51:50 UTC, "entries_custom_fields"=>[{"_id"=>"5273093687f6432f11000027", "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.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273093687f6432f11000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273093687f6432f11000026"]}} 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_entries selector={"content_type_id"=>"5273093687f6432f11000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273093687f6432f11000026"]}}} (0.4413ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273093687f6432f11000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273093687f6432f11000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273093687f6432f11000026", "content_type_id"=>"5273093687f6432f11000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273093487f6432f11000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:51:50 UTC, "created_at"=>2013-11-01 01:51:50 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273093187f6432f1100001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273093287f6432f1100001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5273093187f6432f1100001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273093187f6432f1100001a"} update={"$set"=>{"updated_at"=>2013-11-01 01:51:50 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273093187f6432f1100001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1640ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:51:50 +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.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6220ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:51:50 +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.6480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273093187f6432f11000016", "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.5310ms) Completed 500 Internal Server Error in 4.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.7052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3192ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8998ms) 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.5734ms) 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.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 (1.0700ms) 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.4573ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273096f87f643c6f3000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"62359952189642a9e04b0680356c3863623767bb", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"g1xpwXCN8YKhAfPre6x2", "api_key"=>"f426f0fc4930c8e01fe0a1198bf3faddea33e615", "updated_at"=>2013-11-01 01:52:47 UTC, "created_at"=>2013-11-01 01:52:47 UTC}] flags=[] (0.1900ms) 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.8392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273096f87f643c6f3000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:52:46 UTC, "updated_at"=>2013-11-01 01:52:47 UTC, "memberships"=>[{"_id"=>"5273096f87f643c6f3000003", "role"=>"admin", "account_id"=>"5273096f87f643c6f3000001"}]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273096f87f643c6f3000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273096f87f643c6f3000002", "_id"=>{"$ne"=>"5273096f87f643c6f3000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5273096f87f643c6f3000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273096f87f643c6f3000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:47 UTC, "created_at"=>2013-11-01 01:52:47 UTC}] flags=[] (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273096f87f643c6f3000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "template_dependencies.en"=>{"$in"=>["5273096f87f643c6f3000004"]}}, "$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"=>["5273096f87f643c6f3000004"]}} 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"=>"5273096f87f643c6f3000002", "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"=>"5273096f87f643c6f3000002", "_id"=>{"$ne"=>"5273097087f643c6f3000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273096f87f643c6f3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097087f643c6f3000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273096f87f643c6f3000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:48 UTC, "created_at"=>2013-11-01 01:52:48 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "template_dependencies.en"=>{"$in"=>["5273097087f643c6f3000005"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"5273097087f643c6f3000005"}, "$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"=>["5273097087f643c6f3000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273096f87f643c6f3000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8540ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273097087f643c6f3000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273096f87f643c6f3000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273097087f643c6f3000007", "updated_at"=>2013-11-01 01:52:48 UTC, "created_at"=>2013-11-01 01:52:48 UTC, "entries_custom_fields"=>[{"_id"=>"5273097087f643c6f3000007", "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.2301ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273097087f643c6f3000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273097087f643c6f3000008", "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", "updated_at"=>2013-11-01 01:52:48 UTC, "created_at"=>2013-11-01 01:52:48 UTC}}} flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273097087f643c6f3000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097087f643c6f3000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273097087f643c6f3000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5701ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097087f643c6f3000006"]}}} (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273097087f643c6f3000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273097087f643c6f3000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273097087f643c6f3000006", "content_type_id"=>"5273097087f643c6f3000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273096f87f643c6f3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:52:48 UTC, "created_at"=>2013-11-01 01:52:48 UTC}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273097087f643c6f300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097087f643c6f3000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5273097087f643c6f3000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3982ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097087f643c6f3000006"]}}} (0.4952ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097087f643c6f3000006"]}}} (0.3829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097087f643c6f3000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273097087f643c6f300000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273097087f643c6f3000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273097087f643c6f3000006", "content_type_id"=>"5273097087f643c6f3000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273096f87f643c6f3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:52:48 UTC, "created_at"=>2013-11-01 01:52:48 UTC}] flags=[] (0.2050ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273096f87f643c6f3000002", "parent_id"=>"5273096f87f643c6f3000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273096f87f643c6f3000004", "site_id"=>"5273096f87f643c6f3000002", "_id"=>{"$ne"=>"5273097187f643c6f300000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273096f87f643c6f3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5193ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097187f643c6f300000b", "parent_ids"=>["5273096f87f643c6f3000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273096f87f643c6f3000002", "parent_id"=>"5273096f87f643c6f3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:49 UTC, "created_at"=>2013-11-01 01:52:49 UTC}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "template_dependencies.en"=>{"$in"=>["5273097187f643c6f300000b"]}}, "$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"=>"5273097187f643c6f300000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097187f643c6f300000b"]}} 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.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273096f87f643c6f3000002", "parent_id"=>"5273096f87f643c6f3000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5273096f87f643c6f3000004", "site_id"=>"5273096f87f643c6f3000002", "_id"=>{"$ne"=>"5273097287f643c6f300000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5273096f87f643c6f3000004", "site_id"=>"5273096f87f643c6f3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4907ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273096f87f643c6f3000004"}]}]}, "$orderby"=>{"depth"=>1}} 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=locomotive_pages documents=[{"_id"=>"5273097287f643c6f300000c", "parent_ids"=>["5273096f87f643c6f3000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273096f87f643c6f3000002", "parent_id"=>"5273096f87f643c6f3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:50 UTC, "created_at"=>2013-11-01 01:52:50 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "template_dependencies.en"=>{"$in"=>["5273097287f643c6f300000c"]}}, "$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"=>"5273097287f643c6f300000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097287f643c6f300000c"]}} 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_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5273096f87f643c6f3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273096f87f643c6f3000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:52:50 UTC}} flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "template_dependencies.en"=>{"$in"=>["5273096f87f643c6f3000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7942ms) 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.6151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273097387f643c6f300000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:52:46 UTC, "updated_at"=>2013-11-01 01:52:51 UTC, "memberships"=>[{"_id"=>"5273097387f643c6f300000e", "role"=>"admin", "account_id"=>"5273096f87f643c6f3000001"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273097387f643c6f300000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097387f643c6f300000d", "_id"=>{"$ne"=>"5273097387f643c6f300000f"}, "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"=>"5273097387f643c6f300000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273097387f643c6f300000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:51 UTC, "created_at"=>2013-11-01 01:52:51 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097387f643c6f300000d", "template_dependencies.en"=>{"$in"=>["5273097387f643c6f300000f"]}}, "$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"=>"5273097387f643c6f300000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4568ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097387f643c6f300000f"]}} 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={"site_id"=>"5273097387f643c6f300000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5273097387f643c6f300000d", "_id"=>{"$ne"=>"5273097487f643c6f3000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097387f643c6f300000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097487f643c6f3000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273097387f643c6f300000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:52 UTC, "created_at"=>2013-11-01 01:52:52 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097387f643c6f300000d", "template_dependencies.en"=>{"$in"=>["5273097487f643c6f3000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273097487f643c6f3000010"}, "$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"=>["5273097487f643c6f3000010"]}} 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"=>"5273097387f643c6f300000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097387f643c6f300000d", "_id"=>{"$ne"=>"5273097487f643c6f3000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097387f643c6f300000d"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097487f643c6f3000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273097387f643c6f300000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:52 UTC, "created_at"=>2013-11-01 01:52:52 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097387f643c6f300000d", "template_dependencies.en"=>{"$in"=>["5273097487f643c6f3000011"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5273097487f643c6f3000011"}, "$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"=>["5273097487f643c6f3000011"]}} 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"=>"5273097387f643c6f300000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273097487f643c6f3000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273097387f643c6f300000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273097487f643c6f3000013", "updated_at"=>2013-11-01 01:52:52 UTC, "created_at"=>2013-11-01 01:52:52 UTC, "entries_custom_fields"=>[{"_id"=>"5273097487f643c6f3000013", "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"=>"5273097487f643c6f3000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097487f643c6f3000012"]}} 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"=>"5273097487f643c6f3000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097487f643c6f3000012"]}}} (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273097487f643c6f3000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273097487f643c6f3000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273097487f643c6f3000012", "content_type_id"=>"5273097487f643c6f3000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273097387f643c6f300000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:52:52 UTC, "created_at"=>2013-11-01 01:52:52 UTC}] flags=[] (0.1612ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:52:53 +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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6268ms) Rendered text template (0.0ms) Completed 200 OK in 12.8ms (Views: 7.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:52:53 +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.7553ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "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.8371ms) Rendered text template (0.0ms) Completed 200 OK in 892.6ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 02:52:54 +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.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "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.5870ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:52:54 +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.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) Rendered text template (0.0ms) Completed 200 OK in 3.8ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 02:52:54 +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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273096f87f643c6f3000002", "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.7989ms) Rendered text template (0.0ms) Completed 200 OK in 884.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.6421ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4129ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3428ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9198ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9940ms) 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.4058ms) 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.8950ms) 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.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273097787f643c6f3000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f124ece7afa95ec4a70b1bae04ca3f2299b9f935", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"JZkCcUsEAgL3P2jxwuFc", "api_key"=>"0d1021c58f33664d3994b632b782dda266b33220", "updated_at"=>2013-11-01 01:52:55 UTC, "created_at"=>2013-11-01 01:52:55 UTC}] flags=[] (0.1490ms) 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.8199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273097787f643c6f3000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:52:46 UTC, "updated_at"=>2013-11-01 01:52:55 UTC, "memberships"=>[{"_id"=>"5273097787f643c6f3000017", "role"=>"admin", "account_id"=>"5273097787f643c6f3000015"}]}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273097787f643c6f3000016", "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"=>"5273097787f643c6f3000016", "_id"=>{"$ne"=>"5273097787f643c6f3000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097787f643c6f3000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273097787f643c6f3000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:55 UTC, "created_at"=>2013-11-01 01:52:55 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "template_dependencies.en"=>{"$in"=>["5273097787f643c6f3000018"]}}, "$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"=>"5273097787f643c6f3000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097787f643c6f3000018"]}} 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={"site_id"=>"5273097787f643c6f3000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5273097787f643c6f3000016", "_id"=>{"$ne"=>"5273097887f643c6f3000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"5273097787f643c6f3000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097887f643c6f3000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273097787f643c6f3000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:56 UTC, "created_at"=>2013-11-01 01:52:56 UTC}] flags=[] (0.2961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "template_dependencies.en"=>{"$in"=>["5273097887f643c6f3000019"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"5273097887f643c6f3000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097887f643c6f3000019"]}} 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_content_types selector={"site_id"=>"5273097787f643c6f3000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7832ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273097887f643c6f300001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273097787f643c6f3000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273097887f643c6f300001b", "updated_at"=>2013-11-01 01:52:56 UTC, "created_at"=>2013-11-01 01:52:56 UTC, "entries_custom_fields"=>[{"_id"=>"5273097887f643c6f300001b", "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.2387ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273097887f643c6f300001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273097887f643c6f300001c", "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", "updated_at"=>2013-11-01 01:52:56 UTC, "created_at"=>2013-11-01 01:52:56 UTC}}} flags=[] (0.4113ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273097887f643c6f300001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273097887f643c6f300001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}}} (0.7799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273097887f643c6f300001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273097887f643c6f300001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273097887f643c6f300001a", "content_type_id"=>"5273097887f643c6f300001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273097787f643c6f3000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:52:56 UTC, "created_at"=>2013-11-01 01:52:56 UTC}] flags=[] (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273097887f643c6f300001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}} 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"=>"5273097887f643c6f300001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3603ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}}} (0.3598ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}}} (0.3028ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273097887f643c6f300001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273097887f643c6f300001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273097887f643c6f300001a", "content_type_id"=>"5273097887f643c6f300001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273097787f643c6f3000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:52:56 UTC, "created_at"=>2013-11-01 01:52:56 UTC}] flags=[] (0.1740ms) 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.7448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273097787f643c6f3000016", "parent_id"=>"5273097787f643c6f3000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273097787f643c6f3000018", "site_id"=>"5273097787f643c6f3000016", "_id"=>{"$ne"=>"5273097987f643c6f300001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273097787f643c6f3000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097987f643c6f300001f", "parent_ids"=>["5273097787f643c6f3000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273097787f643c6f3000016", "parent_id"=>"5273097787f643c6f3000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:57 UTC, "created_at"=>2013-11-01 01:52:57 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "template_dependencies.en"=>{"$in"=>["5273097987f643c6f300001f"]}}, "$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"=>"5273097987f643c6f300001f"}, "$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"=>["5273097987f643c6f300001f"]}} 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.7632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273097787f643c6f3000016", "parent_id"=>"5273097787f643c6f3000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273097787f643c6f3000018", "site_id"=>"5273097787f643c6f3000016", "_id"=>{"$ne"=>"5273097a87f643c6f3000020"}, "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"=>"5273097787f643c6f3000018", "site_id"=>"5273097787f643c6f3000016"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273097787f643c6f3000018"}]}]}, "$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"=>"5273097a87f643c6f3000020", "parent_ids"=>["5273097787f643c6f3000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273097787f643c6f3000016", "parent_id"=>"5273097787f643c6f3000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:58 UTC, "created_at"=>2013-11-01 01:52:58 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "template_dependencies.en"=>{"$in"=>["5273097a87f643c6f3000020"]}}, "$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"=>"5273097a87f643c6f3000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4377ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097a87f643c6f3000020"]}} 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_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "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_sites selector={"$query"=>{"_id"=>"5273097787f643c6f3000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273097787f643c6f3000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:52:58 UTC}} flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "template_dependencies.en"=>{"$in"=>["5273097787f643c6f3000018"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"5273097b87f643c6f3000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:52:46 UTC, "updated_at"=>2013-11-01 01:52:59 UTC, "memberships"=>[{"_id"=>"5273097b87f643c6f3000022", "role"=>"admin", "account_id"=>"5273097787f643c6f3000015"}]}] flags=[] (0.2918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273097b87f643c6f3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097b87f643c6f3000021", "_id"=>{"$ne"=>"5273097b87f643c6f3000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273097b87f643c6f3000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273097b87f643c6f3000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:59 UTC, "created_at"=>2013-11-01 01:52:59 UTC}] flags=[] (0.2763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097b87f643c6f3000021", "template_dependencies.en"=>{"$in"=>["5273097b87f643c6f3000023"]}}, "$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"=>"5273097b87f643c6f3000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4387ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097b87f643c6f3000023"]}} 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"=>"5273097b87f643c6f3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097b87f643c6f3000021", "_id"=>{"$ne"=>"5273097b87f643c6f3000024"}, "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"=>nil, "site_id"=>"5273097b87f643c6f3000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097b87f643c6f3000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273097b87f643c6f3000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:52:59 UTC, "created_at"=>2013-11-01 01:52:59 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097b87f643c6f3000021", "template_dependencies.en"=>{"$in"=>["5273097b87f643c6f3000024"]}}, "$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"=>"5273097b87f643c6f3000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273097b87f643c6f3000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273097b87f643c6f3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273097b87f643c6f3000021", "_id"=>{"$ne"=>"5273097b87f643c6f3000025"}, "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"=>nil, "site_id"=>"5273097b87f643c6f3000021"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273097b87f643c6f3000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273097b87f643c6f3000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:53:00 UTC, "created_at"=>2013-11-01 01:53:00 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097b87f643c6f3000021", "template_dependencies.en"=>{"$in"=>["5273097b87f643c6f3000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5273097b87f643c6f3000025"}, "$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"=>["5273097b87f643c6f3000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273097b87f643c6f3000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5012ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273097c87f643c6f3000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273097b87f643c6f3000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273097c87f643c6f3000027", "updated_at"=>2013-11-01 01:53:00 UTC, "created_at"=>2013-11-01 01:53:00 UTC, "entries_custom_fields"=>[{"_id"=>"5273097c87f643c6f3000027", "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"=>"5273097c87f643c6f3000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097c87f643c6f3000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273097c87f643c6f3000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273097c87f643c6f3000026"]}}} (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273097c87f643c6f3000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273097c87f643c6f3000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273097c87f643c6f3000026", "content_type_id"=>"5273097c87f643c6f3000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273097b87f643c6f3000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:53:00 UTC, "created_at"=>2013-11-01 01:53:00 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273097887f643c6f300001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273097887f643c6f300001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}} 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"=>"5273097887f643c6f300001a"} update={"$set"=>{"updated_at"=>2013-11-01 01:53:01 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273097887f643c6f300001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1218ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:53: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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:53: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.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "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.8390ms) Rendered text template (0.0ms) Completed 200 OK in 913.1ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273097887f643c6f300001a"} 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"=>"5273097887f643c6f300001a", "updated_at"=>{"$lt"=>2013-11-01 01:53:01 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5273097887f643c6f300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273097787f643c6f3000016"}, "$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"=>"5273097887f643c6f300001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5273097887f643c6f300001d"} update={"$set"=>{"updated_at"=>2013-11-01 01:53:02 UTC}} flags=[] (0.1349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273097787f643c6f3000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5273097887f643c6f300001a"}, "$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"=>"5273097887f643c6f300001e"} update={"$set"=>{"updated_at"=>2013-11-01 01:53:02 UTC}} flags=[] (0.2151ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 02:53:03 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 02:53:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:53: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.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273097787f643c6f3000016", "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 879.1ms (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.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0688ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0619ms) 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.5581ms) 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.5651ms) 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.8321ms) 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.5291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527309d287f6431100000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"297e9514258b272d2e8e27d59117e1fc2f9de4e4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9sCTWHjTcoU8qMpb754E", "api_key"=>"43f4f0b74891d30886cdde5b2dfc688f267328fb", "updated_at"=>2013-11-01 01:54:26 UTC, "created_at"=>2013-11-01 01:54:26 UTC}] flags=[] (0.1609ms) 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.8490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309d287f6431100000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:54:25 UTC, "updated_at"=>2013-11-01 01:54:26 UTC, "memberships"=>[{"_id"=>"527309d287f6431100000003", "role"=>"admin", "account_id"=>"527309d287f6431100000001"}]}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d287f6431100000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d287f6431100000002", "_id"=>{"$ne"=>"527309d287f6431100000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527309d287f6431100000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309d287f6431100000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:26 UTC, "created_at"=>2013-11-01 01:54:26 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309d287f6431100000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"527309d287f6431100000002", "template_dependencies.en"=>{"$in"=>["527309d287f6431100000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3998ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309d287f6431100000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d287f6431100000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d287f6431100000002", "_id"=>{"$ne"=>"527309d287f6431100000005"}, "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"=>nil, "site_id"=>"527309d287f6431100000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527309d287f6431100000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309d287f6431100000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:26 UTC, "created_at"=>2013-11-01 01:54:26 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "template_dependencies.en"=>{"$in"=>["527309d287f6431100000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527309d287f6431100000005"}, "$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"=>["527309d287f6431100000005"]}} 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_content_types selector={"site_id"=>"527309d287f6431100000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309d287f6431100000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309d287f6431100000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309d287f6431100000007", "updated_at"=>2013-11-01 01:54:26 UTC, "created_at"=>2013-11-01 01:54:26 UTC, "entries_custom_fields"=>[{"_id"=>"527309d287f6431100000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309d287f6431100000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527309d287f6431100000008", "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", "updated_at"=>2013-11-01 01:54:26 UTC, "created_at"=>2013-11-01 01:54:26 UTC}}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309d287f6431100000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d287f6431100000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309d287f6431100000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d287f6431100000006"]}}} (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309d287f6431100000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309d287f6431100000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309d287f6431100000006", "content_type_id"=>"527309d287f6431100000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527309d287f6431100000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:26 UTC, "created_at"=>2013-11-01 01:54:26 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309d387f643110000000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d287f6431100000006"]}} 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_entries selector={"content_type_id"=>"527309d287f6431100000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d287f6431100000006"]}}} (0.3800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d287f6431100000006"]}}} (0.3462ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d287f6431100000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309d387f643110000000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527309d287f6431100000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309d287f6431100000006", "content_type_id"=>"527309d287f6431100000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527309d287f6431100000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:27 UTC, "created_at"=>2013-11-01 01:54:27 UTC}] flags=[] (0.3080ms) 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.7098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d287f6431100000002", "parent_id"=>"527309d287f6431100000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"527309d287f6431100000004", "site_id"=>"527309d287f6431100000002", "_id"=>{"$ne"=>"527309d487f643110000000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527309d287f6431100000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5772ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309d487f643110000000b", "parent_ids"=>["527309d287f6431100000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527309d287f6431100000002", "parent_id"=>"527309d287f6431100000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:28 UTC, "created_at"=>2013-11-01 01:54:28 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "template_dependencies.en"=>{"$in"=>["527309d487f643110000000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309d487f643110000000b"}, "$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"=>["527309d487f643110000000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0968ms) 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.7129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d287f6431100000002", "parent_id"=>"527309d287f6431100000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309d287f6431100000004", "site_id"=>"527309d287f6431100000002", "_id"=>{"$ne"=>"527309d487f643110000000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309d287f6431100000004", "site_id"=>"527309d287f6431100000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"527309d287f6431100000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309d487f643110000000c", "parent_ids"=>["527309d287f6431100000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527309d287f6431100000002", "parent_id"=>"527309d287f6431100000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:28 UTC, "created_at"=>2013-11-01 01:54:28 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "template_dependencies.en"=>{"$in"=>["527309d487f643110000000c"]}}, "$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"=>"527309d487f643110000000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309d487f643110000000c"]}} 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"=>"527309d287f6431100000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309d287f6431100000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527309d287f6431100000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:54:29 UTC}} flags=[] (0.2799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "template_dependencies.en"=>{"$in"=>["527309d287f6431100000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7608ms) 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.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309d687f643110000000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:54:25 UTC, "updated_at"=>2013-11-01 01:54:30 UTC, "memberships"=>[{"_id"=>"527309d687f643110000000e", "role"=>"admin", "account_id"=>"527309d287f6431100000001"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d687f643110000000d", "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"=>"527309d687f643110000000d", "_id"=>{"$ne"=>"527309d687f643110000000f"}, "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"=>"527309d687f643110000000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309d687f643110000000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:30 UTC, "created_at"=>2013-11-01 01:54:30 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d687f643110000000d", "template_dependencies.en"=>{"$in"=>["527309d687f643110000000f"]}}, "$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"=>"527309d687f643110000000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309d687f643110000000f"]}} 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"=>"527309d687f643110000000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d687f643110000000d", "_id"=>{"$ne"=>"527309d687f6431100000010"}, "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"=>nil, "site_id"=>"527309d687f643110000000d"}, "$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"=>"527309d687f6431100000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309d687f643110000000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:30 UTC, "created_at"=>2013-11-01 01:54:30 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d687f643110000000d", "template_dependencies.en"=>{"$in"=>["527309d687f6431100000010"]}}, "$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"=>"527309d687f6431100000010"}, "$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"=>["527309d687f6431100000010"]}} 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"=>"527309d687f643110000000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d687f643110000000d", "_id"=>{"$ne"=>"527309d687f6431100000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d687f643110000000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309d687f6431100000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527309d687f643110000000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:30 UTC, "created_at"=>2013-11-01 01:54:30 UTC}] flags=[] (0.2849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d687f643110000000d", "template_dependencies.en"=>{"$in"=>["527309d687f6431100000011"]}}, "$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"=>"527309d687f6431100000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309d687f6431100000011"]}} 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"=>"527309d687f643110000000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4883ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309d787f6431100000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309d687f643110000000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309d787f6431100000013", "updated_at"=>2013-11-01 01:54:31 UTC, "created_at"=>2013-11-01 01:54:31 UTC, "entries_custom_fields"=>[{"_id"=>"527309d787f6431100000013", "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.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309d787f6431100000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d787f6431100000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309d787f6431100000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d787f6431100000012"]}}} (0.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309d787f6431100000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309d787f6431100000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309d787f6431100000012", "content_type_id"=>"527309d787f6431100000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527309d687f643110000000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:31 UTC, "created_at"=>2013-11-01 01:54:31 UTC}] flags=[] (0.1760ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:54: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.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) Rendered text template (0.0ms) Completed 200 OK in 12.7ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:54: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.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "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 511.8ms (Views: 0.7ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:54: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.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d287f6431100000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) Rendered text template (0.0ms) Completed 200 OK in 4.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.6242ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3549ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1058ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7889ms) 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.3378ms) 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.7973ms) 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.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527309d887f6431100000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2c1a0722be27c9411fb6a9b3f604af08278ac01d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"byY3FMayUGviqpkVFiQz", "api_key"=>"7903fd418a3c3f451637610ef500ccf12ec17dd9", "updated_at"=>2013-11-01 01:54:32 UTC, "created_at"=>2013-11-01 01:54:32 UTC}] flags=[] (0.1700ms) 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.7670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309d987f6431100000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:54:25 UTC, "updated_at"=>2013-11-01 01:54:33 UTC, "memberships"=>[{"_id"=>"527309d987f6431100000017", "role"=>"admin", "account_id"=>"527309d887f6431100000015"}]}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d987f6431100000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d987f6431100000016", "_id"=>{"$ne"=>"527309d987f6431100000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527309d987f6431100000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309d987f6431100000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:33 UTC, "created_at"=>2013-11-01 01:54:33 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "template_dependencies.en"=>{"$in"=>["527309d987f6431100000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527309d987f6431100000018"}, "$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"=>["527309d987f6431100000018"]}} 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"=>"527309d987f6431100000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309d987f6431100000016", "_id"=>{"$ne"=>"527309d987f6431100000019"}, "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"=>"527309d987f6431100000016"}, "$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"=>"527309d987f6431100000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309d987f6431100000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:33 UTC, "created_at"=>2013-11-01 01:54:33 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "template_dependencies.en"=>{"$in"=>["527309d987f6431100000019"]}}, "$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"=>"527309d987f6431100000019"}, "$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"=>["527309d987f6431100000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527309d987f6431100000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7868ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309d987f643110000001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309d987f6431100000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309d987f643110000001b", "updated_at"=>2013-11-01 01:54:33 UTC, "created_at"=>2013-11-01 01:54:33 UTC, "entries_custom_fields"=>[{"_id"=>"527309d987f643110000001b", "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.2213ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309d987f643110000001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527309d987f643110000001c", "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", "updated_at"=>2013-11-01 01:54:33 UTC, "created_at"=>2013-11-01 01:54:33 UTC}}} flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309d987f643110000001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9086ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309d987f643110000001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}}} (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309d987f643110000001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309d987f643110000001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309d987f643110000001a", "content_type_id"=>"527309d987f643110000001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527309d987f6431100000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:33 UTC, "created_at"=>2013-11-01 01:54:33 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309da87f643110000001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}} 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"=>"527309d987f643110000001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}}} (0.4413ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}}} (0.3150ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309da87f643110000001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527309d987f643110000001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309d987f643110000001a", "content_type_id"=>"527309d987f643110000001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527309d987f6431100000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:34 UTC, "created_at"=>2013-11-01 01:54:34 UTC}] flags=[] (0.1950ms) 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"=>"527309d987f6431100000016", "parent_id"=>"527309d987f6431100000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309d987f6431100000018", "site_id"=>"527309d987f6431100000016", "_id"=>{"$ne"=>"527309da87f643110000001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527309d987f6431100000018"}]}]}, "$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"=>"527309da87f643110000001f", "parent_ids"=>["527309d987f6431100000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527309d987f6431100000016", "parent_id"=>"527309d987f6431100000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:34 UTC, "created_at"=>2013-11-01 01:54:34 UTC}] flags=[] (0.2213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "template_dependencies.en"=>{"$in"=>["527309da87f643110000001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527309da87f643110000001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309da87f643110000001f"]}} 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.7582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309d987f6431100000016", "parent_id"=>"527309d987f6431100000018", "$or"=>[{"slug.en"=>"search"}]} 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"=>"527309d987f6431100000018", "site_id"=>"527309d987f6431100000016", "_id"=>{"$ne"=>"527309db87f6431100000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"527309d987f6431100000018", "site_id"=>"527309d987f6431100000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527309d987f6431100000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6278ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309db87f6431100000020", "parent_ids"=>["527309d987f6431100000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527309d987f6431100000016", "parent_id"=>"527309d987f6431100000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:35 UTC, "created_at"=>2013-11-01 01:54:35 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "template_dependencies.en"=>{"$in"=>["527309db87f6431100000020"]}}, "$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"=>"527309db87f6431100000020"}, "$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"=>["527309db87f6431100000020"]}} 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={"$query"=>{"site_id"=>"527309d987f6431100000016", "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_sites selector={"$query"=>{"_id"=>"527309d987f6431100000016"}, "$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=locomotive_pages selector={"_id"=>"527309d987f6431100000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:54:36 UTC}} flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "template_dependencies.en"=>{"$in"=>["527309d987f6431100000018"]}}, "$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.5958ms) 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.3448ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309dc87f6431100000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:54:25 UTC, "updated_at"=>2013-11-01 01:54:36 UTC, "memberships"=>[{"_id"=>"527309dc87f6431100000022", "role"=>"admin", "account_id"=>"527309d887f6431100000015"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309dc87f6431100000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309dc87f6431100000021", "_id"=>{"$ne"=>"527309dc87f6431100000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309dc87f6431100000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309dc87f6431100000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:36 UTC, "created_at"=>2013-11-01 01:54:36 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309dc87f6431100000021", "template_dependencies.en"=>{"$in"=>["527309dc87f6431100000023"]}}, "$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"=>"527309dc87f6431100000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309dc87f6431100000023"]}} 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={"site_id"=>"527309dc87f6431100000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309dc87f6431100000021", "_id"=>{"$ne"=>"527309dd87f6431100000024"}, "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"=>"527309dc87f6431100000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527309dd87f6431100000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309dc87f6431100000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:37 UTC, "created_at"=>2013-11-01 01:54:37 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309dc87f6431100000021", "template_dependencies.en"=>{"$in"=>["527309dd87f6431100000024"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527309dd87f6431100000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309dd87f6431100000024"]}} 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"=>"527309dc87f6431100000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309dc87f6431100000021", "_id"=>{"$ne"=>"527309dd87f6431100000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309dc87f6431100000021"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309dd87f6431100000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527309dc87f6431100000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:37 UTC, "created_at"=>2013-11-01 01:54:37 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309dc87f6431100000021", "template_dependencies.en"=>{"$in"=>["527309dd87f6431100000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309dd87f6431100000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309dd87f6431100000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527309dc87f6431100000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309dd87f6431100000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309dc87f6431100000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309dd87f6431100000027", "updated_at"=>2013-11-01 01:54:37 UTC, "created_at"=>2013-11-01 01:54:37 UTC, "entries_custom_fields"=>[{"_id"=>"527309dd87f6431100000027", "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.4232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309dd87f6431100000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309dd87f6431100000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309dd87f6431100000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309dd87f6431100000026"]}}} (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309dd87f6431100000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309dd87f6431100000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309dd87f6431100000026", "content_type_id"=>"527309dd87f6431100000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527309dc87f6431100000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:37 UTC, "created_at"=>2013-11-01 01:54:37 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309d987f643110000001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}} 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={"_id"=>{"$ne"=>"527309da87f643110000001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}} 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::ContentEntry527309d987f643110000001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309d987f643110000001a"} update={"$set"=>{"updated_at"=>2013-11-01 01:54:38 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309d987f643110000001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1140ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:54: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.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6406ms) 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 2013-11-01 02:54: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.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "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.5360ms) Rendered text template (0.0ms) Completed 200 OK in 451.1ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309d987f643110000001a"} 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"=>"527309d987f643110000001a", "updated_at"=>{"$lt"=>2013-11-01 01:54:38 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527309d987f643110000001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309d987f6431100000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"527309d987f643110000001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"527309d987f643110000001d"} update={"$set"=>{"updated_at"=>2013-11-01 01:54:39 UTC}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309d987f6431100000016"}, "$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_content_types selector={"$query"=>{"_id"=>"527309d987f643110000001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527309da87f643110000001e"} update={"$set"=>{"updated_at"=>2013-11-01 01:54:39 UTC}} flags=[] (0.1969ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 02:54:40 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 02:54:40 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:54: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.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309d987f6431100000016", "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 453.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.7019ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4532ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2612ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9432ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9599ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8328ms) 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.5131ms) 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.4609ms) 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.9251ms) 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.5283ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527309f287f6431c4d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9d5c44f0c0b37a737200653bf279f998acab17f1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7d3LfpbopRVZLwnyUAgZ", "api_key"=>"8f44621ac6cdc740f26c4855d9c025e3eeeb1039", "updated_at"=>2013-11-01 01:54:58 UTC, "created_at"=>2013-11-01 01:54:58 UTC}] flags=[] (0.1512ms) 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.8960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309f287f6431c4d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:54:57 UTC, "updated_at"=>2013-11-01 01:54:58 UTC, "memberships"=>[{"_id"=>"527309f287f6431c4d000003", "role"=>"admin", "account_id"=>"527309f287f6431c4d000001"}]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f287f6431c4d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"527309f287f6431c4d000002", "_id"=>{"$ne"=>"527309f287f6431c4d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527309f287f6431c4d000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309f287f6431c4d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:58 UTC, "created_at"=>2013-11-01 01:54:58 UTC}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f287f6431c4d000004"}, "$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"=>{"site_id"=>"527309f287f6431c4d000002", "template_dependencies.en"=>{"$in"=>["527309f287f6431c4d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309f287f6431c4d000004"]}} 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={"site_id"=>"527309f287f6431c4d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309f287f6431c4d000002", "_id"=>{"$ne"=>"527309f387f6431c4d000005"}, "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"=>{"parent_id"=>nil, "site_id"=>"527309f287f6431c4d000002"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"527309f387f6431c4d000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309f287f6431c4d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:54:59 UTC, "created_at"=>2013-11-01 01:54:59 UTC}] flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "template_dependencies.en"=>{"$in"=>["527309f387f6431c4d000005"]}}, "$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"=>"527309f387f6431c4d000005"}, "$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"=>["527309f387f6431c4d000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527309f287f6431c4d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4537ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309f387f6431c4d000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309f287f6431c4d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309f387f6431c4d000007", "updated_at"=>2013-11-01 01:54:59 UTC, "created_at"=>2013-11-01 01:54:59 UTC, "entries_custom_fields"=>[{"_id"=>"527309f387f6431c4d000007", "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.2332ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309f387f6431c4d000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527309f387f6431c4d000008", "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", "updated_at"=>2013-11-01 01:54:59 UTC, "created_at"=>2013-11-01 01:54:59 UTC}}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309f387f6431c4d000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309f387f6431c4d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309f387f6431c4d000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309f387f6431c4d000006"]}}} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309f387f6431c4d000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309f387f6431c4d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309f387f6431c4d000006", "content_type_id"=>"527309f387f6431c4d000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527309f287f6431c4d000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:59 UTC, "created_at"=>2013-11-01 01:54:59 UTC}] flags=[] (0.1798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309f387f6431c4d00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527309f387f6431c4d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309f387f6431c4d000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3989ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309f387f6431c4d000006"]}}} (0.3581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309f387f6431c4d000006"]}}} (0.3192ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309f387f6431c4d000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309f387f6431c4d00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527309f387f6431c4d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309f387f6431c4d000006", "content_type_id"=>"527309f387f6431c4d000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527309f287f6431c4d000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:54:59 UTC, "created_at"=>2013-11-01 01:54:59 UTC}] flags=[] (0.2391ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f287f6431c4d000002", "parent_id"=>"527309f287f6431c4d000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f287f6431c4d000004", "site_id"=>"527309f287f6431c4d000002", "_id"=>{"$ne"=>"527309f487f6431c4d00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527309f287f6431c4d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309f487f6431c4d00000b", "parent_ids"=>["527309f287f6431c4d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527309f287f6431c4d000002", "parent_id"=>"527309f287f6431c4d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:00 UTC, "created_at"=>2013-11-01 01:55:00 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "template_dependencies.en"=>{"$in"=>["527309f487f6431c4d00000b"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f487f6431c4d00000b"}, "$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"=>["527309f487f6431c4d00000b"]}} 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.7088ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f287f6431c4d000002", "parent_id"=>"527309f287f6431c4d000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"527309f287f6431c4d000004", "site_id"=>"527309f287f6431c4d000002", "_id"=>{"$ne"=>"527309f587f6431c4d00000c"}, "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"=>"527309f287f6431c4d000004", "site_id"=>"527309f287f6431c4d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527309f287f6431c4d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309f587f6431c4d00000c", "parent_ids"=>["527309f287f6431c4d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527309f287f6431c4d000002", "parent_id"=>"527309f287f6431c4d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:01 UTC, "created_at"=>2013-11-01 01:55:01 UTC}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "template_dependencies.en"=>{"$in"=>["527309f587f6431c4d00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f587f6431c4d00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309f587f6431c4d00000c"]}} 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"=>"527309f287f6431c4d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309f287f6431c4d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527309f287f6431c4d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:55:01 UTC}} flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "template_dependencies.en"=>{"$in"=>["527309f287f6431c4d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) 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.7739ms) 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.6449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309f687f6431c4d00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:54:57 UTC, "updated_at"=>2013-11-01 01:55:02 UTC, "memberships"=>[{"_id"=>"527309f687f6431c4d00000e", "role"=>"admin", "account_id"=>"527309f287f6431c4d000001"}]}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f687f6431c4d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"527309f687f6431c4d00000d", "_id"=>{"$ne"=>"527309f687f6431c4d00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309f687f6431c4d00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309f687f6431c4d00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:02 UTC, "created_at"=>2013-11-01 01:55:02 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f687f6431c4d00000d", "template_dependencies.en"=>{"$in"=>["527309f687f6431c4d00000f"]}}, "$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"=>"527309f687f6431c4d00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309f687f6431c4d00000f"]}} 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_pages selector={"site_id"=>"527309f687f6431c4d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"527309f687f6431c4d00000d", "_id"=>{"$ne"=>"527309f687f6431c4d000010"}, "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"=>nil, "site_id"=>"527309f687f6431c4d00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309f687f6431c4d000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309f687f6431c4d00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:02 UTC, "created_at"=>2013-11-01 01:55:02 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f687f6431c4d00000d", "template_dependencies.en"=>{"$in"=>["527309f687f6431c4d000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f687f6431c4d000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309f687f6431c4d000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f687f6431c4d00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"527309f687f6431c4d00000d", "_id"=>{"$ne"=>"527309f687f6431c4d000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8602ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309f687f6431c4d00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7091ms) 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.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309f687f6431c4d000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527309f687f6431c4d00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:02 UTC, "created_at"=>2013-11-01 01:55:02 UTC}] flags=[] (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f687f6431c4d00000d", "template_dependencies.en"=>{"$in"=>["527309f687f6431c4d000011"]}}, "$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"=>"527309f687f6431c4d000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309f687f6431c4d000011"]}} 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"=>"527309f687f6431c4d00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309f787f6431c4d000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309f687f6431c4d00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309f787f6431c4d000013", "updated_at"=>2013-11-01 01:55:03 UTC, "created_at"=>2013-11-01 01:55:03 UTC, "entries_custom_fields"=>[{"_id"=>"527309f787f6431c4d000013", "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"=>"527309f787f6431c4d000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309f787f6431c4d000012"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"527309f787f6431c4d000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4637ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309f787f6431c4d000012"]}}} (0.7250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309f787f6431c4d000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309f787f6431c4d000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309f787f6431c4d000012", "content_type_id"=>"527309f787f6431c4d000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527309f687f6431c4d00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:55:03 UTC, "created_at"=>2013-11-01 01:55:03 UTC}] flags=[] (0.1681ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:55:04 +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.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7570ms) Rendered text template (0.0ms) Completed 200 OK in 13.4ms (Views: 7.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 02:55:04 +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.6778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "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.6931ms) Rendered text template (0.0ms) Completed 200 OK in 932.1ms (Views: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:55:05 +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.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f287f6431c4d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7967ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4989ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0712ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9699ms) 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.3300ms) 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.7291ms) 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.3359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527309f987f6431c4d000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2d95224b237a075cf05ef48c1da6f97f4fee14a5", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"tSBTuifVSPsNsziV8FcB", "api_key"=>"dc014380a974aad94c46f3701f6894278e70a2f3", "updated_at"=>2013-11-01 01:55:05 UTC, "created_at"=>2013-11-01 01:55:05 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.8547ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309f987f6431c4d000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 01:54:57 UTC, "updated_at"=>2013-11-01 01:55:05 UTC, "memberships"=>[{"_id"=>"527309f987f6431c4d000017", "role"=>"admin", "account_id"=>"527309f987f6431c4d000015"}]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f987f6431c4d000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309f987f6431c4d000016", "_id"=>{"$ne"=>"527309f987f6431c4d000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527309f987f6431c4d000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309f987f6431c4d000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:05 UTC, "created_at"=>2013-11-01 01:55:05 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "template_dependencies.en"=>{"$in"=>["527309f987f6431c4d000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f987f6431c4d000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309f987f6431c4d000018"]}} 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"=>"527309f987f6431c4d000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"527309f987f6431c4d000016", "_id"=>{"$ne"=>"527309fa87f6431c4d000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309f987f6431c4d000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309fa87f6431c4d000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309f987f6431c4d000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:06 UTC, "created_at"=>2013-11-01 01:55:06 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "template_dependencies.en"=>{"$in"=>["527309fa87f6431c4d000019"]}}, "$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"=>"527309fa87f6431c4d000019"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["527309fa87f6431c4d000019"]}} 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_content_types selector={"site_id"=>"527309f987f6431c4d000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8681ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309fa87f6431c4d00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309f987f6431c4d000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309fa87f6431c4d00001b", "updated_at"=>2013-11-01 01:55:06 UTC, "created_at"=>2013-11-01 01:55:06 UTC, "entries_custom_fields"=>[{"_id"=>"527309fa87f6431c4d00001b", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309fa87f6431c4d00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527309fa87f6431c4d00001c", "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", "updated_at"=>2013-11-01 01:55:06 UTC, "created_at"=>2013-11-01 01:55:06 UTC}}} flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309fa87f6431c4d00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"527309fa87f6431c4d00001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}}} (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309fa87f6431c4d00001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309fa87f6431c4d00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309fa87f6431c4d00001a", "content_type_id"=>"527309fa87f6431c4d00001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527309f987f6431c4d000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:55:06 UTC, "created_at"=>2013-11-01 01:55:06 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309fa87f6431c4d00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309fa87f6431c4d00001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}}} (0.4981ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}}} (0.3228ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309fa87f6431c4d00001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527309fa87f6431c4d00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309fa87f6431c4d00001a", "content_type_id"=>"527309fa87f6431c4d00001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527309f987f6431c4d000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:55:06 UTC, "created_at"=>2013-11-01 01:55:06 UTC}] flags=[] (0.1740ms) 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"=>"527309f987f6431c4d000016", "parent_id"=>"527309f987f6431c4d000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f987f6431c4d000018", "site_id"=>"527309f987f6431c4d000016", "_id"=>{"$ne"=>"527309fb87f6431c4d00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527309f987f6431c4d000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309fb87f6431c4d00001f", "parent_ids"=>["527309f987f6431c4d000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527309f987f6431c4d000016", "parent_id"=>"527309f987f6431c4d000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:07 UTC, "created_at"=>2013-11-01 01:55:07 UTC}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "template_dependencies.en"=>{"$in"=>["527309fb87f6431c4d00001f"]}}, "$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"=>"527309fb87f6431c4d00001f"}, "$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"=>["527309fb87f6431c4d00001f"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309f987f6431c4d000016", "parent_id"=>"527309f987f6431c4d000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f987f6431c4d000018", "site_id"=>"527309f987f6431c4d000016", "_id"=>{"$ne"=>"527309fc87f6431c4d000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309f987f6431c4d000018", "site_id"=>"527309f987f6431c4d000016"}, "$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"=>"527309f987f6431c4d000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309fc87f6431c4d000020", "parent_ids"=>["527309f987f6431c4d000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527309f987f6431c4d000016", "parent_id"=>"527309f987f6431c4d000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:08 UTC, "created_at"=>2013-11-01 01:55:08 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "template_dependencies.en"=>{"$in"=>["527309fc87f6431c4d000020"]}}, "$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"=>"527309fc87f6431c4d000020"}, "$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"=>["527309fc87f6431c4d000020"]}} 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"=>{"site_id"=>"527309f987f6431c4d000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309f987f6431c4d000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527309f987f6431c4d000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 01:55:08 UTC}} flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "template_dependencies.en"=>{"$in"=>["527309f987f6431c4d000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6142ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527309fd87f6431c4d000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 01:54:57 UTC, "updated_at"=>2013-11-01 01:55:09 UTC, "memberships"=>[{"_id"=>"527309fd87f6431c4d000022", "role"=>"admin", "account_id"=>"527309f987f6431c4d000015"}]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309fd87f6431c4d000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309fd87f6431c4d000021", "_id"=>{"$ne"=>"527309fd87f6431c4d000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309fd87f6431c4d000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527309fd87f6431c4d000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:09 UTC, "created_at"=>2013-11-01 01:55:09 UTC}] flags=[] (0.3788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309fd87f6431c4d000021", "template_dependencies.en"=>{"$in"=>["527309fd87f6431c4d000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.4168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309fd87f6431c4d000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6127ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309fd87f6431c4d000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309fd87f6431c4d000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309fd87f6431c4d000021", "_id"=>{"$ne"=>"527309fe87f6431c4d000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309fd87f6431c4d000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309fe87f6431c4d000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527309fd87f6431c4d000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:10 UTC, "created_at"=>2013-11-01 01:55:10 UTC}] flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309fd87f6431c4d000021", "template_dependencies.en"=>{"$in"=>["527309fe87f6431c4d000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527309fe87f6431c4d000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309fe87f6431c4d000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527309fd87f6431c4d000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309fd87f6431c4d000021", "_id"=>{"$ne"=>"527309fe87f6431c4d000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2434ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527309fd87f6431c4d000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7091ms) 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.5920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527309fe87f6431c4d000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527309fd87f6431c4d000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 01:55:10 UTC, "created_at"=>2013-11-01 01:55:10 UTC}] flags=[] (0.3598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309fd87f6431c4d000021", "template_dependencies.en"=>{"$in"=>["527309fe87f6431c4d000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527309fe87f6431c4d000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9122ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527309fe87f6431c4d000025"]}} 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=locomotive_content_types selector={"site_id"=>"527309fd87f6431c4d000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527309fe87f6431c4d000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527309fd87f6431c4d000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527309fe87f6431c4d000027", "updated_at"=>2013-11-01 01:55:10 UTC, "created_at"=>2013-11-01 01:55:10 UTC, "entries_custom_fields"=>[{"_id"=>"527309fe87f6431c4d000027", "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"=>"527309fe87f6431c4d000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309fe87f6431c4d000026"]}} 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"=>"527309fe87f6431c4d000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3741ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527309fe87f6431c4d000026"]}}} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527309fe87f6431c4d000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527309fe87f6431c4d000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527309fe87f6431c4d000026", "content_type_id"=>"527309fe87f6431c4d000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527309fd87f6431c4d000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 01:55:10 UTC, "created_at"=>2013-11-01 01:55:10 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309fa87f6431c4d00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527309fa87f6431c4d00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8597ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1509ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309fa87f6431c4d00001a"} update={"$set"=>{"updated_at"=>2013-11-01 01:55:11 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0901ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527309fa87f6431c4d00001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1948ms) Started GET "/" for 127.0.0.1 at 2013-11-01 02:55:11 +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 (1.2119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9060ms) Rendered text template (0.0ms) Completed 200 OK in 8.7ms (Views: 0.9ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:55:11 +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.9272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "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.8991ms) Rendered text template (0.0ms) Completed 200 OK in 886.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527309fa87f6431c4d00001a"} 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"=>"527309fa87f6431c4d00001a", "updated_at"=>{"$lt"=>2013-11-01 01:55:11 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527309fa87f6431c4d00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309f987f6431c4d000016"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"527309fa87f6431c4d00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527309fa87f6431c4d00001d"} update={"$set"=>{"updated_at"=>2013-11-01 01:55:12 UTC}} flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527309f987f6431c4d000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"527309fa87f6431c4d00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527309fa87f6431c4d00001e"} update={"$set"=>{"updated_at"=>2013-11-01 01:55:12 UTC}} flags=[] (0.1261ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 02:55:13 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 02:55:13 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 02:55:13 +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.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527309f987f6431c4d000016", "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.6771ms) Rendered text template (0.0ms) Completed 200 OK in 896.0ms (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.7024ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7343ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1473ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3709ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2081ms) 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.6042ms) 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.5300ms) 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.8740ms) 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.6771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52730b3687f6435a18000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"743bb8943f755f840ff4d326bf9dda5cb8c97b2d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"o4UfcDNeuyeSuSrvoAup", "api_key"=>"8ad093e596687b99c63a838f66ec0e6706ad9c12", "updated_at"=>2013-11-01 02:00:22 UTC, "created_at"=>2013-11-01 02:00:22 UTC}] flags=[] (0.2711ms) 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.9289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730b3687f6435a18000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:00:21 UTC, "updated_at"=>2013-11-01 02:00:22 UTC, "memberships"=>[{"_id"=>"52730b3687f6435a18000003", "role"=>"admin", "account_id"=>"52730b3687f6435a18000001"}]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3687f6435a18000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9937ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3687f6435a18000002", "_id"=>{"$ne"=>"52730b3687f6435a18000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52730b3687f6435a18000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730b3687f6435a18000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:22 UTC, "created_at"=>2013-11-01 02:00:22 UTC}] flags=[] (0.3419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730b3687f6435a18000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "template_dependencies.en"=>{"$in"=>["52730b3687f6435a18000004"]}}, "$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"=>["52730b3687f6435a18000004"]}} 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"=>"52730b3687f6435a18000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3687f6435a18000002", "_id"=>{"$ne"=>"52730b3787f6435a18000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3687f6435a18000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52730b3787f6435a18000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730b3687f6435a18000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:23 UTC, "created_at"=>2013-11-01 02:00:23 UTC}] flags=[] (0.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "template_dependencies.en"=>{"$in"=>["52730b3787f6435a18000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730b3787f6435a18000005"}, "$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"=>["52730b3787f6435a18000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52730b3687f6435a18000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730b3787f6435a18000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730b3687f6435a18000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730b3787f6435a18000007", "updated_at"=>2013-11-01 02:00:23 UTC, "created_at"=>2013-11-01 02:00:23 UTC, "entries_custom_fields"=>[{"_id"=>"52730b3787f6435a18000007", "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.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730b3787f6435a18000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52730b3787f6435a18000008", "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", "updated_at"=>2013-11-01 02:00:23 UTC, "created_at"=>2013-11-01 02:00:23 UTC}}} flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730b3787f6435a18000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3787f6435a18000006"]}} 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_content_entries selector={"content_type_id"=>"52730b3787f6435a18000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3787f6435a18000006"]}}} (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730b3787f6435a18000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730b3787f6435a18000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730b3787f6435a18000006", "content_type_id"=>"52730b3787f6435a18000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52730b3687f6435a18000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:00:23 UTC, "created_at"=>2013-11-01 02:00:23 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730b3887f6435a1800000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3787f6435a18000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52730b3787f6435a18000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3787f6435a18000006"]}}} (0.4959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3787f6435a18000006"]}}} (0.2978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3787f6435a18000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730b3887f6435a1800000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52730b3787f6435a18000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730b3787f6435a18000006", "content_type_id"=>"52730b3787f6435a18000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52730b3687f6435a18000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:00:24 UTC, "created_at"=>2013-11-01 02:00:24 UTC}] flags=[] (0.2730ms) 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.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3687f6435a18000002", "parent_id"=>"52730b3687f6435a18000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730b3687f6435a18000004", "site_id"=>"52730b3687f6435a18000002", "_id"=>{"$ne"=>"52730b3887f6435a1800000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52730b3687f6435a18000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52730b3887f6435a1800000b", "parent_ids"=>["52730b3687f6435a18000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52730b3687f6435a18000002", "parent_id"=>"52730b3687f6435a18000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:24 UTC, "created_at"=>2013-11-01 02:00:24 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "template_dependencies.en"=>{"$in"=>["52730b3887f6435a1800000b"]}}, "$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"=>"52730b3887f6435a1800000b"}, "$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"=>["52730b3887f6435a1800000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3687f6435a18000002", "parent_id"=>"52730b3687f6435a18000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730b3687f6435a18000004", "site_id"=>"52730b3687f6435a18000002", "_id"=>{"$ne"=>"52730b3987f6435a1800000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730b3687f6435a18000004", "site_id"=>"52730b3687f6435a18000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52730b3687f6435a18000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3987f6435a1800000c", "parent_ids"=>["52730b3687f6435a18000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52730b3687f6435a18000002", "parent_id"=>"52730b3687f6435a18000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:25 UTC, "created_at"=>2013-11-01 02:00:25 UTC}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "template_dependencies.en"=>{"$in"=>["52730b3987f6435a1800000c"]}}, "$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"=>"52730b3987f6435a1800000c"}, "$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"=>["52730b3987f6435a1800000c"]}} 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={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "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_sites selector={"$query"=>{"_id"=>"52730b3687f6435a18000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52730b3687f6435a18000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:00:25 UTC}} flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "template_dependencies.en"=>{"$in"=>["52730b3687f6435a18000004"]}}, "$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.7761ms) 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.4029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730b3a87f6435a1800000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:00:21 UTC, "updated_at"=>2013-11-01 02:00:26 UTC, "memberships"=>[{"_id"=>"52730b3a87f6435a1800000e", "role"=>"admin", "account_id"=>"52730b3687f6435a18000001"}]}] flags=[] (0.1702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3a87f6435a1800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3a87f6435a1800000d", "_id"=>{"$ne"=>"52730b3a87f6435a1800000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3a87f6435a1800000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730b3a87f6435a1800000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:26 UTC, "created_at"=>2013-11-01 02:00:26 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3a87f6435a1800000d", "template_dependencies.en"=>{"$in"=>["52730b3a87f6435a1800000f"]}}, "$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"=>"52730b3a87f6435a1800000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b3a87f6435a1800000f"]}} 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"=>"52730b3a87f6435a1800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3a87f6435a1800000d", "_id"=>{"$ne"=>"52730b3b87f6435a18000010"}, "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"=>"52730b3a87f6435a1800000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3b87f6435a18000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730b3a87f6435a1800000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:27 UTC, "created_at"=>2013-11-01 02:00:27 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3a87f6435a1800000d", "template_dependencies.en"=>{"$in"=>["52730b3b87f6435a18000010"]}}, "$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"=>"52730b3b87f6435a18000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b3b87f6435a18000010"]}} 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"=>"52730b3a87f6435a1800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3a87f6435a1800000d", "_id"=>{"$ne"=>"52730b3b87f6435a18000011"}, "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"=>"52730b3a87f6435a1800000d"}, "$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.2429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3b87f6435a18000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52730b3a87f6435a1800000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:27 UTC, "created_at"=>2013-11-01 02:00:27 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3a87f6435a1800000d", "template_dependencies.en"=>{"$in"=>["52730b3b87f6435a18000011"]}}, "$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"=>"52730b3b87f6435a18000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b3b87f6435a18000011"]}} 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_content_types selector={"site_id"=>"52730b3a87f6435a1800000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730b3b87f6435a18000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730b3a87f6435a1800000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730b3b87f6435a18000013", "updated_at"=>2013-11-01 02:00:27 UTC, "created_at"=>2013-11-01 02:00:27 UTC, "entries_custom_fields"=>[{"_id"=>"52730b3b87f6435a18000013", "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"=>"52730b3b87f6435a18000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3b87f6435a18000012"]}} 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"=>"52730b3b87f6435a18000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3b87f6435a18000012"]}}} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730b3b87f6435a18000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730b3b87f6435a18000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730b3b87f6435a18000012", "content_type_id"=>"52730b3b87f6435a18000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52730b3a87f6435a1800000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:00:27 UTC, "created_at"=>2013-11-01 02:00:27 UTC}] flags=[] (0.1688ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:00: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.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "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 11.9ms (Views: 6.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 03:00:28 +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.7038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "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.5951ms) Rendered text template (0.0ms) Completed 200 OK in 449.9ms (Views: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:00: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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3687f6435a18000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) Rendered text template (0.0ms) Completed 200 OK in 4.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.5832ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3068ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1892ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.9629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9589ms) 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.4680ms) 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.7172ms) 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.3440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52730b3d87f6435a18000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"aa8f655a6b4eccf65d3df371545dcd4668c68439", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"L52vsLN3PaJ8eYDeqykm", "api_key"=>"1ecc40c24be6688964158f1e45bdbc415510fcda", "updated_at"=>2013-11-01 02:00:29 UTC, "created_at"=>2013-11-01 02:00:29 UTC}] flags=[] (0.2301ms) 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.8740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730b3d87f6435a18000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:00:21 UTC, "updated_at"=>2013-11-01 02:00:29 UTC, "memberships"=>[{"_id"=>"52730b3d87f6435a18000017", "role"=>"admin", "account_id"=>"52730b3d87f6435a18000015"}]}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3d87f6435a18000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3d87f6435a18000016", "_id"=>{"$ne"=>"52730b3d87f6435a18000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3d87f6435a18000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730b3d87f6435a18000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:29 UTC, "created_at"=>2013-11-01 02:00:29 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "template_dependencies.en"=>{"$in"=>["52730b3d87f6435a18000018"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52730b3d87f6435a18000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b3d87f6435a18000018"]}} 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"=>"52730b3d87f6435a18000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3d87f6435a18000016", "_id"=>{"$ne"=>"52730b3d87f6435a18000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b3d87f6435a18000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3d87f6435a18000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730b3d87f6435a18000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:30 UTC, "created_at"=>2013-11-01 02:00:30 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "template_dependencies.en"=>{"$in"=>["52730b3d87f6435a18000019"]}}, "$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"=>"52730b3d87f6435a18000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b3d87f6435a18000019"]}} 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"=>"52730b3d87f6435a18000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7403ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730b3e87f6435a1800001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730b3d87f6435a18000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730b3e87f6435a1800001b", "updated_at"=>2013-11-01 02:00:30 UTC, "created_at"=>2013-11-01 02:00:30 UTC, "entries_custom_fields"=>[{"_id"=>"52730b3e87f6435a1800001b", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730b3e87f6435a1800001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52730b3e87f6435a1800001c", "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", "updated_at"=>2013-11-01 02:00:30 UTC, "created_at"=>2013-11-01 02:00:30 UTC}}} flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730b3e87f6435a1800001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730b3e87f6435a1800001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5579ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}}} (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730b3e87f6435a1800001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730b3e87f6435a1800001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730b3e87f6435a1800001a", "content_type_id"=>"52730b3e87f6435a1800001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52730b3d87f6435a18000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:00:30 UTC, "created_at"=>2013-11-01 02:00:30 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730b3e87f6435a1800001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}} 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"=>"52730b3e87f6435a1800001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}}} (0.3541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}}} (0.2849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730b3e87f6435a1800001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52730b3e87f6435a1800001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730b3e87f6435a1800001a", "content_type_id"=>"52730b3e87f6435a1800001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52730b3d87f6435a18000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:00:30 UTC, "created_at"=>2013-11-01 02:00:30 UTC}] 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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3d87f6435a18000016", "parent_id"=>"52730b3d87f6435a18000018", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"52730b3d87f6435a18000018", "site_id"=>"52730b3d87f6435a18000016", "_id"=>{"$ne"=>"52730b3f87f6435a1800001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52730b3d87f6435a18000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b3f87f6435a1800001f", "parent_ids"=>["52730b3d87f6435a18000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52730b3d87f6435a18000016", "parent_id"=>"52730b3d87f6435a18000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:31 UTC, "created_at"=>2013-11-01 02:00:31 UTC}] flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "template_dependencies.en"=>{"$in"=>["52730b3f87f6435a1800001f"]}}, "$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"=>"52730b3f87f6435a1800001f"}, "$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"=>["52730b3f87f6435a1800001f"]}} 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.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b3d87f6435a18000016", "parent_id"=>"52730b3d87f6435a18000018", "$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"=>"52730b3d87f6435a18000018", "site_id"=>"52730b3d87f6435a18000016", "_id"=>{"$ne"=>"52730b3f87f6435a18000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"52730b3d87f6435a18000018", "site_id"=>"52730b3d87f6435a18000016"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"52730b3d87f6435a18000018"}]}]}, "$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"=>"52730b3f87f6435a18000020", "parent_ids"=>["52730b3d87f6435a18000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52730b3d87f6435a18000016", "parent_id"=>"52730b3d87f6435a18000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:31 UTC, "created_at"=>2013-11-01 02:00:31 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "template_dependencies.en"=>{"$in"=>["52730b3f87f6435a18000020"]}}, "$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"=>"52730b3f87f6435a18000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4089ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b3f87f6435a18000020"]}} 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"=>{"site_id"=>"52730b3d87f6435a18000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52730b3d87f6435a18000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4673ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52730b3d87f6435a18000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:00:32 UTC}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "template_dependencies.en"=>{"$in"=>["52730b3d87f6435a18000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5608ms) 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.6511ms) 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"=>"52730b4187f6435a18000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:00:21 UTC, "updated_at"=>2013-11-01 02:00:33 UTC, "memberships"=>[{"_id"=>"52730b4187f6435a18000022", "role"=>"admin", "account_id"=>"52730b3d87f6435a18000015"}]}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730b4187f6435a18000021", "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"=>"52730b4187f6435a18000021", "_id"=>{"$ne"=>"52730b4187f6435a18000023"}, "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"=>"52730b4187f6435a18000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730b4187f6435a18000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:33 UTC, "created_at"=>2013-11-01 02:00:33 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b4187f6435a18000021", "template_dependencies.en"=>{"$in"=>["52730b4187f6435a18000023"]}}, "$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"=>"52730b4187f6435a18000023"}, "$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"=>["52730b4187f6435a18000023"]}} 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"=>"52730b4187f6435a18000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b4187f6435a18000021", "_id"=>{"$ne"=>"52730b4187f6435a18000024"}, "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"=>"52730b4187f6435a18000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5822ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b4187f6435a18000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730b4187f6435a18000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:33 UTC, "created_at"=>2013-11-01 02:00:33 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b4187f6435a18000021", "template_dependencies.en"=>{"$in"=>["52730b4187f6435a18000024"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"52730b4187f6435a18000024"}, "$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"=>["52730b4187f6435a18000024"]}} 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={"site_id"=>"52730b4187f6435a18000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730b4187f6435a18000021", "_id"=>{"$ne"=>"52730b4187f6435a18000025"}, "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"=>nil, "site_id"=>"52730b4187f6435a18000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730b4187f6435a18000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52730b4187f6435a18000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:00:33 UTC, "created_at"=>2013-11-01 02:00:33 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b4187f6435a18000021", "template_dependencies.en"=>{"$in"=>["52730b4187f6435a18000025"]}}, "$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"=>"52730b4187f6435a18000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730b4187f6435a18000025"]}} 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_content_types selector={"site_id"=>"52730b4187f6435a18000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730b4287f6435a18000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730b4187f6435a18000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730b4287f6435a18000027", "updated_at"=>2013-11-01 02:00:34 UTC, "created_at"=>2013-11-01 02:00:34 UTC, "entries_custom_fields"=>[{"_id"=>"52730b4287f6435a18000027", "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.2792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730b4287f6435a18000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b4287f6435a18000026"]}} 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"=>"52730b4287f6435a18000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730b4287f6435a18000026"]}}} (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730b4287f6435a18000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730b4287f6435a18000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730b4287f6435a18000026", "content_type_id"=>"52730b4287f6435a18000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52730b4187f6435a18000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:00:34 UTC, "created_at"=>2013-11-01 02:00:34 UTC}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730b3e87f6435a1800001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}} 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"=>"52730b3e87f6435a1800001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}} 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::ContentEntry52730b3e87f6435a1800001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1462ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730b3e87f6435a1800001a"} update={"$set"=>{"updated_at"=>2013-11-01 02:00:34 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730b3e87f6435a1800001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1149ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:00:34 +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.6349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "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 5.4ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:00:34 +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.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "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.6521ms) Rendered text template (0.0ms) Completed 200 OK in 441.3ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730b3e87f6435a1800001a"} 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"=>"52730b3e87f6435a1800001a", "updated_at"=>{"$lt"=>2013-11-01 02:00:34 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52730b3e87f6435a1800001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52730b3d87f6435a18000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52730b3e87f6435a1800001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52730b3e87f6435a1800001d"} update={"$set"=>{"updated_at"=>2013-11-01 02:00:35 UTC}} flags=[] (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52730b3d87f6435a18000016"}, "$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_content_types selector={"$query"=>{"_id"=>"52730b3e87f6435a1800001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52730b3e87f6435a1800001e"} update={"$set"=>{"updated_at"=>2013-11-01 02:00:36 UTC}} flags=[] (0.1428ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 03:00:36 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 03:00:36 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"52730b3d87f6435a18000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4.8ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:00:36 +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.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730b3d87f6435a18000016", "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.7360ms) Rendered text template (0.0ms) Completed 200 OK in 444.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.7112ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7421ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7328ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2608ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8891ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1110ms) 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.5920ms) 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.5000ms) 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.9091ms) 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.6452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52730ea687f643cbe3000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"78ab0039979bf5c58df2fbb41c785441ee8de211", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"W3U3YRFcfgjVxNWzQobi", "api_key"=>"d270e373f3ae05e5559b3183be7b694646faf7b9", "updated_at"=>2013-11-01 02:15:02 UTC, "created_at"=>2013-11-01 02:15:02 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.8531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730ea687f643cbe3000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:15:01 UTC, "updated_at"=>2013-11-01 02:15:02 UTC, "memberships"=>[{"_id"=>"52730ea687f643cbe3000003", "role"=>"admin", "account_id"=>"52730ea687f643cbe3000001"}]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730ea687f643cbe3000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730ea687f643cbe3000002", "_id"=>{"$ne"=>"52730ea687f643cbe3000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52730ea687f643cbe3000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730ea687f643cbe3000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:02 UTC, "created_at"=>2013-11-01 02:15:02 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730ea687f643cbe3000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "template_dependencies.en"=>{"$in"=>["52730ea687f643cbe3000004"]}}, "$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"=>["52730ea687f643cbe3000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730ea687f643cbe3000002", "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"=>"52730ea687f643cbe3000002", "_id"=>{"$ne"=>"52730ea787f643cbe3000005"}, "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"=>"52730ea687f643cbe3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730ea787f643cbe3000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730ea687f643cbe3000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:03 UTC, "created_at"=>2013-11-01 02:15:03 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "template_dependencies.en"=>{"$in"=>["52730ea787f643cbe3000005"]}}, "$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"=>"52730ea787f643cbe3000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730ea787f643cbe3000005"]}} 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_content_types selector={"site_id"=>"52730ea687f643cbe3000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730ea787f643cbe3000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730ea687f643cbe3000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730ea787f643cbe3000007", "updated_at"=>2013-11-01 02:15:03 UTC, "created_at"=>2013-11-01 02:15:03 UTC, "entries_custom_fields"=>[{"_id"=>"52730ea787f643cbe3000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730ea787f643cbe3000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52730ea787f643cbe3000008", "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", "updated_at"=>2013-11-01 02:15:03 UTC, "created_at"=>2013-11-01 02:15:03 UTC}}} flags=[] (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730ea787f643cbe3000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730ea787f643cbe3000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}}} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730ea787f643cbe3000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730ea787f643cbe3000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730ea787f643cbe3000006", "content_type_id"=>"52730ea787f643cbe3000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52730ea687f643cbe3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:15:03 UTC, "created_at"=>2013-11-01 02:15:03 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730ea887f643cbe300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730ea787f643cbe3000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}}} (0.3901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}}} (0.2851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730ea887f643cbe300000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52730ea787f643cbe3000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730ea787f643cbe3000006", "content_type_id"=>"52730ea787f643cbe3000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52730ea687f643cbe3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:15:04 UTC, "created_at"=>2013-11-01 02:15:04 UTC}] flags=[] (0.1769ms) 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.7558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730ea687f643cbe3000002", "parent_id"=>"52730ea687f643cbe3000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730ea687f643cbe3000004", "site_id"=>"52730ea687f643cbe3000002", "_id"=>{"$ne"=>"52730ea887f643cbe300000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52730ea687f643cbe3000004"}]}]}, "$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"=>"52730ea887f643cbe300000b", "parent_ids"=>["52730ea687f643cbe3000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52730ea687f643cbe3000002", "parent_id"=>"52730ea687f643cbe3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:04 UTC, "created_at"=>2013-11-01 02:15:04 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "template_dependencies.en"=>{"$in"=>["52730ea887f643cbe300000b"]}}, "$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"=>"52730ea887f643cbe300000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730ea887f643cbe300000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730ea687f643cbe3000002", "parent_id"=>"52730ea687f643cbe3000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"52730ea687f643cbe3000004", "site_id"=>"52730ea687f643cbe3000002", "_id"=>{"$ne"=>"52730ea987f643cbe300000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"52730ea687f643cbe3000004", "site_id"=>"52730ea687f643cbe3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52730ea687f643cbe3000004"}]}]}, "$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"=>"52730ea987f643cbe300000c", "parent_ids"=>["52730ea687f643cbe3000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52730ea687f643cbe3000002", "parent_id"=>"52730ea687f643cbe3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:05 UTC, "created_at"=>2013-11-01 02:15:05 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "template_dependencies.en"=>{"$in"=>["52730ea987f643cbe300000c"]}}, "$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"=>"52730ea987f643cbe300000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730ea987f643cbe300000c"]}} 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"=>{"site_id"=>"52730ea687f643cbe3000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52730ea687f643cbe3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52730ea687f643cbe3000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:15:05 UTC}} flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "template_dependencies.en"=>{"$in"=>["52730ea687f643cbe3000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730eaa87f643cbe300000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:15:01 UTC, "updated_at"=>2013-11-01 02:15:06 UTC, "memberships"=>[{"_id"=>"52730eaa87f643cbe300000e", "role"=>"admin", "account_id"=>"52730ea687f643cbe3000001"}]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730eaa87f643cbe300000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"52730eaa87f643cbe300000d", "_id"=>{"$ne"=>"52730eaa87f643cbe300000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730eaa87f643cbe300000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730eaa87f643cbe300000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:06 UTC, "created_at"=>2013-11-01 02:15:06 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eaa87f643cbe300000d", "template_dependencies.en"=>{"$in"=>["52730eaa87f643cbe300000f"]}}, "$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"=>"52730eaa87f643cbe300000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730eaa87f643cbe300000f"]}} 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={"site_id"=>"52730eaa87f643cbe300000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eaa87f643cbe300000d", "_id"=>{"$ne"=>"52730eab87f643cbe3000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eaa87f643cbe300000d"}, "$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"=>"52730eab87f643cbe3000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730eaa87f643cbe300000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:07 UTC, "created_at"=>2013-11-01 02:15:07 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eaa87f643cbe300000d", "template_dependencies.en"=>{"$in"=>["52730eab87f643cbe3000010"]}}, "$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"=>"52730eab87f643cbe3000010"}, "$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"=>["52730eab87f643cbe3000010"]}} 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"=>"52730eaa87f643cbe300000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5357ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eaa87f643cbe300000d", "_id"=>{"$ne"=>"52730eab87f643cbe3000011"}, "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"=>"52730eaa87f643cbe300000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4542ms) 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.2751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730eab87f643cbe3000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52730eaa87f643cbe300000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:07 UTC, "created_at"=>2013-11-01 02:15:07 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eaa87f643cbe300000d", "template_dependencies.en"=>{"$in"=>["52730eab87f643cbe3000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52730eab87f643cbe3000011"}, "$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"=>["52730eab87f643cbe3000011"]}} 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"=>"52730eaa87f643cbe300000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4838ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730eab87f643cbe3000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730eaa87f643cbe300000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730eab87f643cbe3000013", "updated_at"=>2013-11-01 02:15:07 UTC, "created_at"=>2013-11-01 02:15:07 UTC, "entries_custom_fields"=>[{"_id"=>"52730eab87f643cbe3000013", "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.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730eab87f643cbe3000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730eab87f643cbe3000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730eab87f643cbe3000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730eab87f643cbe3000012"]}}} (0.4382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730eab87f643cbe3000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730eab87f643cbe3000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730eab87f643cbe3000012", "content_type_id"=>"52730eab87f643cbe3000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52730eaa87f643cbe300000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:15:07 UTC, "created_at"=>2013-11-01 02:15:07 UTC}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730ea787f643cbe3000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}} 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_content_entries selector={"_id"=>{"$ne"=>"52730ea887f643cbe300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}} 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::ContentEntry52730ea787f643cbe3000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2511ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730ea787f643cbe3000006"} update={"$set"=>{"updated_at"=>2013-11-01 02:15:08 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730ea787f643cbe3000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1068ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:15: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.6309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6790ms) Rendered text template (0.0ms) Completed 200 OK in 12.3ms (Views: 7.0ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:15: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.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "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.6089ms) Rendered text template (0.0ms) Completed 200 OK in 446.1ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730ea787f643cbe3000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730ea787f643cbe3000006", "updated_at"=>{"$lt"=>2013-11-01 02:15:08 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52730ea787f643cbe3000006"]}} flags=[:slave_ok] limit=0 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"=>"52730ea687f643cbe3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52730ea787f643cbe3000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4244ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52730ea787f643cbe3000009"} update={"$set"=>{"updated_at"=>2013-11-01 02:15:08 UTC}} flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52730ea687f643cbe3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52730ea787f643cbe3000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52730ea887f643cbe300000a"} update={"$set"=>{"updated_at"=>2013-11-01 02:15:09 UTC}} flags=[] (0.2122ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 03:15:10 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 03:15:10 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6580ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:15: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.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730ea687f643cbe3000002", "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.6089ms) Rendered text template (0.0ms) Completed 200 OK in 436.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.7441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5259ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2338ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7999ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9222ms) 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.3512ms) 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.8781ms) 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.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52730eae87f643cbe3000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a2c9e7f9ff95c2a496affb2abf6fb21c242dbc66", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"m67RwfGUqepJPSy4Z2Ke", "api_key"=>"e59d4cdf8fbcabb4bd3fac1094a1cd710d19d445", "updated_at"=>2013-11-01 02:15:10 UTC, "created_at"=>2013-11-01 02:15:10 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.9947ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730eae87f643cbe3000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:15:01 UTC, "updated_at"=>2013-11-01 02:15:10 UTC, "memberships"=>[{"_id"=>"52730eae87f643cbe3000017", "role"=>"admin", "account_id"=>"52730eae87f643cbe3000015"}]}] flags=[] (0.2458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730eae87f643cbe3000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eae87f643cbe3000016", "_id"=>{"$ne"=>"52730eae87f643cbe3000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730eae87f643cbe3000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730eae87f643cbe3000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:10 UTC, "created_at"=>2013-11-01 02:15:10 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "template_dependencies.en"=>{"$in"=>["52730eae87f643cbe3000018"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52730eae87f643cbe3000018"}, "$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"=>["52730eae87f643cbe3000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730eae87f643cbe3000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"52730eae87f643cbe3000016", "_id"=>{"$ne"=>"52730eaf87f643cbe3000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eae87f643cbe3000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730eaf87f643cbe3000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730eae87f643cbe3000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:11 UTC, "created_at"=>2013-11-01 02:15:11 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "template_dependencies.en"=>{"$in"=>["52730eaf87f643cbe3000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730eaf87f643cbe3000019"}, "$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"=>["52730eaf87f643cbe3000019"]}} 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"=>"52730eae87f643cbe3000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730eaf87f643cbe300001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730eae87f643cbe3000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730eaf87f643cbe300001b", "updated_at"=>2013-11-01 02:15:11 UTC, "created_at"=>2013-11-01 02:15:11 UTC, "entries_custom_fields"=>[{"_id"=>"52730eaf87f643cbe300001b", "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.1998ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52730eaf87f643cbe300001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52730eaf87f643cbe300001c", "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", "updated_at"=>2013-11-01 02:15:11 UTC, "created_at"=>2013-11-01 02:15:11 UTC}}} flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730eaf87f643cbe300001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730eaf87f643cbe300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730eaf87f643cbe300001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730eaf87f643cbe300001a"]}}} (0.4003ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730eaf87f643cbe300001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730eaf87f643cbe300001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730eaf87f643cbe300001a", "content_type_id"=>"52730eaf87f643cbe300001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52730eae87f643cbe3000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:15:11 UTC, "created_at"=>2013-11-01 02:15:11 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52730eb087f643cbe300001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52730eaf87f643cbe300001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52730eaf87f643cbe300001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730eaf87f643cbe300001a"]}}} (0.3610ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730eaf87f643cbe300001a"]}}} (0.2468ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730eaf87f643cbe300001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730eb087f643cbe300001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52730eaf87f643cbe300001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730eaf87f643cbe300001a", "content_type_id"=>"52730eaf87f643cbe300001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52730eae87f643cbe3000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:15:12 UTC, "created_at"=>2013-11-01 02:15:12 UTC}] 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.7181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730eae87f643cbe3000016", "parent_id"=>"52730eae87f643cbe3000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730eae87f643cbe3000018", "site_id"=>"52730eae87f643cbe3000016", "_id"=>{"$ne"=>"52730eb087f643cbe300001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52730eae87f643cbe3000018"}]}]}, "$orderby"=>{"depth"=>1}} 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=locomotive_pages documents=[{"_id"=>"52730eb087f643cbe300001f", "parent_ids"=>["52730eae87f643cbe3000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52730eae87f643cbe3000016", "parent_id"=>"52730eae87f643cbe3000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:12 UTC, "created_at"=>2013-11-01 02:15:12 UTC}] flags=[] (0.2263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "template_dependencies.en"=>{"$in"=>["52730eb087f643cbe300001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52730eb087f643cbe300001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730eb087f643cbe300001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2239ms) 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"=>"52730eae87f643cbe3000016", "parent_id"=>"52730eae87f643cbe3000018", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52730eae87f643cbe3000018", "site_id"=>"52730eae87f643cbe3000016", "_id"=>{"$ne"=>"52730eb187f643cbe3000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52730eae87f643cbe3000018", "site_id"=>"52730eae87f643cbe3000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52730eae87f643cbe3000018"}]}]}, "$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"=>"52730eb187f643cbe3000020", "parent_ids"=>["52730eae87f643cbe3000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52730eae87f643cbe3000016", "parent_id"=>"52730eae87f643cbe3000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:13 UTC, "created_at"=>2013-11-01 02:15:13 UTC}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "template_dependencies.en"=>{"$in"=>["52730eb187f643cbe3000020"]}}, "$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"=>"52730eb187f643cbe3000020"}, "$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"=>["52730eb187f643cbe3000020"]}} 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"=>"52730eae87f643cbe3000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52730eae87f643cbe3000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52730eae87f643cbe3000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:15:14 UTC}} flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "template_dependencies.en"=>{"$in"=>["52730eae87f643cbe3000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6127ms) 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.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52730eb287f643cbe3000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:15:01 UTC, "updated_at"=>2013-11-01 02:15:14 UTC, "memberships"=>[{"_id"=>"52730eb287f643cbe3000022", "role"=>"admin", "account_id"=>"52730eae87f643cbe3000015"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52730eb287f643cbe3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eb287f643cbe3000021", "_id"=>{"$ne"=>"52730eb287f643cbe3000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730eb287f643cbe3000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52730eb287f643cbe3000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:14 UTC, "created_at"=>2013-11-01 02:15:14 UTC}] flags=[] (0.2582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eb287f643cbe3000021", "template_dependencies.en"=>{"$in"=>["52730eb287f643cbe3000023"]}}, "$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"=>"52730eb287f643cbe3000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730eb287f643cbe3000023"]}} 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"=>"52730eb287f643cbe3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eb287f643cbe3000021", "_id"=>{"$ne"=>"52730eb387f643cbe3000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eb287f643cbe3000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52730eb387f643cbe3000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52730eb287f643cbe3000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:15 UTC, "created_at"=>2013-11-01 02:15:15 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eb287f643cbe3000021", "template_dependencies.en"=>{"$in"=>["52730eb387f643cbe3000024"]}}, "$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"=>"52730eb387f643cbe3000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730eb387f643cbe3000024"]}} 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"=>"52730eb287f643cbe3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eb287f643cbe3000021", "_id"=>{"$ne"=>"52730eb387f643cbe3000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52730eb287f643cbe3000021"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52730eb387f643cbe3000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52730eb287f643cbe3000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:15:15 UTC, "created_at"=>2013-11-01 02:15:15 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eb287f643cbe3000021", "template_dependencies.en"=>{"$in"=>["52730eb387f643cbe3000025"]}}, "$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"=>"52730eb387f643cbe3000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52730eb387f643cbe3000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52730eb287f643cbe3000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52730eb487f643cbe3000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52730eb287f643cbe3000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52730eb487f643cbe3000027", "updated_at"=>2013-11-01 02:15:16 UTC, "created_at"=>2013-11-01 02:15:16 UTC, "entries_custom_fields"=>[{"_id"=>"52730eb487f643cbe3000027", "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"=>"52730eb487f643cbe3000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52730eb487f643cbe3000026"]}} 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_content_entries selector={"content_type_id"=>"52730eb487f643cbe3000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4222ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52730eb487f643cbe3000026"]}}} (0.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52730eb487f643cbe3000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52730eb487f643cbe3000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52730eb487f643cbe3000026", "content_type_id"=>"52730eb487f643cbe3000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52730eb287f643cbe3000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:15:16 UTC, "created_at"=>2013-11-01 02:15:16 UTC}] flags=[] (0.1941ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:15: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.8371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 03:15: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.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "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.6380ms) Rendered text template (0.0ms) Completed 200 OK in 442.3ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:15: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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52730eae87f643cbe3000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5770ms) Rendered text template (0.0ms) Completed 200 OK in 3.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.5860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3189ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1988ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9317ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9611ms) 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.4599ms) 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.7839ms) 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.4368ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273177187f6433888000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b23c1bef56f856c1c2db00e0027abc5181a098b9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"DYLzHrAGq46BkY2KFMpN", "api_key"=>"a51119e2ed89ab0521090aaefb2de3f3089b2bc0", "updated_at"=>2013-11-01 02:52:33 UTC, "created_at"=>2013-11-01 02:52:33 UTC}] flags=[] (0.1519ms) 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.8233ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273177187f6433888000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:52:32 UTC, "updated_at"=>2013-11-01 02:52:33 UTC, "memberships"=>[{"_id"=>"5273177187f6433888000003", "role"=>"admin", "account_id"=>"5273177187f6433888000001"}]}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273177187f6433888000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273177187f6433888000002", "_id"=>{"$ne"=>"5273177187f6433888000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273177187f6433888000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273177187f6433888000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:52:33 UTC, "created_at"=>2013-11-01 02:52:33 UTC}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273177187f6433888000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273177187f6433888000002", "template_dependencies.en"=>{"$in"=>["5273177187f6433888000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273177187f6433888000004"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2028ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0419ms) 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.3111ms) 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.1292ms) 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.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273177187f6433888000005", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d434be62e6992befc2f79796b4b08597ebdcdf3b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9L6aaRfzHqH3kSdqjUr1", "api_key"=>"ba7b5fe228e330f204a48445cc1e6e7c99305aa0", "updated_at"=>2013-11-01 02:52:33 UTC, "created_at"=>2013-11-01 02:52:33 UTC}] flags=[] (0.2210ms) 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} (12.5129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273177187f6433888000006", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:52:32 UTC, "updated_at"=>2013-11-01 02:52:33 UTC, "memberships"=>[{"_id"=>"5273177187f6433888000007", "role"=>"admin", "account_id"=>"5273177187f6433888000005"}]}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273177187f6433888000006", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273177187f6433888000006", "_id"=>{"$ne"=>"5273177187f6433888000008"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273177187f6433888000008", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273177187f6433888000006", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:52:33 UTC, "created_at"=>2013-11-01 02:52:33 UTC}] flags=[] (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273177187f6433888000006", "template_dependencies.en"=>{"$in"=>["5273177187f6433888000008"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5273177187f6433888000008"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273177187f6433888000008"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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.4621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0512ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9809ms) 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.6640ms) 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.5350ms) 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.9341ms) 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.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273183587f6437209000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3e84b5b3cfe19a655760b1f9bda47ade62ce49e9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Zz6zG1YV14xfQ18b8rLq", "api_key"=>"6f82b306f0b5d3ace50b5708a258a45773c8f28a", "updated_at"=>2013-11-01 02:55:49 UTC, "created_at"=>2013-11-01 02:55:49 UTC}] flags=[] (0.1719ms) 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.7629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273183587f6437209000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:55:49 UTC, "updated_at"=>2013-11-01 02:55:49 UTC, "memberships"=>[{"_id"=>"5273183587f6437209000003", "role"=>"admin", "account_id"=>"5273183587f6437209000001"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183587f6437209000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183587f6437209000002", "_id"=>{"$ne"=>"5273183687f6437209000004"}, "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"=>"5273183687f6437209000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273183587f6437209000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:50 UTC, "created_at"=>2013-11-01 02:55:50 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183687f6437209000004"}, "$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"=>{"site_id"=>"5273183587f6437209000002", "template_dependencies.en"=>{"$in"=>["5273183687f6437209000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273183687f6437209000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183587f6437209000002", "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"=>"5273183587f6437209000002", "_id"=>{"$ne"=>"5273183687f6437209000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5273183587f6437209000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8478ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273183687f6437209000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273183587f6437209000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:50 UTC, "created_at"=>2013-11-01 02:55:50 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "template_dependencies.en"=>{"$in"=>["5273183687f6437209000005"]}}, "$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"=>"5273183687f6437209000005"}, "$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"=>["5273183687f6437209000005"]}} 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_content_types selector={"site_id"=>"5273183587f6437209000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9077ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273183687f6437209000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273183587f6437209000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273183687f6437209000007", "updated_at"=>2013-11-01 02:55:50 UTC, "created_at"=>2013-11-01 02:55:50 UTC, "entries_custom_fields"=>[{"_id"=>"5273183687f6437209000007", "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.2401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273183687f6437209000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273183687f6437209000008", "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", "updated_at"=>2013-11-01 02:55:50 UTC, "created_at"=>2013-11-01 02:55:50 UTC}}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273183687f6437209000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273183687f6437209000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5283ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}}} (0.6199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273183687f6437209000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273183687f6437209000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273183687f6437209000006", "content_type_id"=>"5273183687f6437209000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273183587f6437209000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:55:50 UTC, "created_at"=>2013-11-01 02:55:50 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273183787f643720900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273183687f6437209000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5610ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}}} (0.3757ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}}} (0.2789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273183787f643720900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273183687f6437209000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273183687f6437209000006", "content_type_id"=>"5273183687f6437209000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273183587f6437209000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:55:51 UTC, "created_at"=>2013-11-01 02:55:51 UTC}] flags=[] (0.1960ms) 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.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183587f6437209000002", "parent_id"=>"5273183687f6437209000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4833ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183687f6437209000004", "site_id"=>"5273183587f6437209000002", "_id"=>{"$ne"=>"5273183787f643720900000b"}, "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"=>"5273183687f6437209000004"}]}]}, "$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"=>"5273183787f643720900000b", "parent_ids"=>["5273183687f6437209000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273183587f6437209000002", "parent_id"=>"5273183687f6437209000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:52 UTC, "created_at"=>2013-11-01 02:55:52 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "template_dependencies.en"=>{"$in"=>["5273183787f643720900000b"]}}, "$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"=>"5273183787f643720900000b"}, "$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"=>["5273183787f643720900000b"]}} 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.7768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183587f6437209000002", "parent_id"=>"5273183687f6437209000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183687f6437209000004", "site_id"=>"5273183587f6437209000002", "_id"=>{"$ne"=>"5273183887f643720900000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183687f6437209000004", "site_id"=>"5273183587f6437209000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273183687f6437209000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273183887f643720900000c", "parent_ids"=>["5273183687f6437209000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273183587f6437209000002", "parent_id"=>"5273183687f6437209000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:52 UTC, "created_at"=>2013-11-01 02:55:52 UTC}] flags=[] (0.2968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "template_dependencies.en"=>{"$in"=>["5273183887f643720900000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183887f643720900000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273183887f643720900000c"]}} 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"=>{"site_id"=>"5273183587f6437209000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5273183587f6437209000002"}, "$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"=>"5273183687f6437209000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:55:53 UTC}} flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "template_dependencies.en"=>{"$in"=>["5273183687f6437209000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7429ms) 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"=>"5273183987f643720900000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:55:49 UTC, "updated_at"=>2013-11-01 02:55:53 UTC, "memberships"=>[{"_id"=>"5273183987f643720900000e", "role"=>"admin", "account_id"=>"5273183587f6437209000001"}]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183987f643720900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183987f643720900000d", "_id"=>{"$ne"=>"5273183987f643720900000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5273183987f643720900000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273183987f643720900000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:53 UTC, "created_at"=>2013-11-01 02:55:53 UTC}] flags=[] (0.1893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183987f643720900000d", "template_dependencies.en"=>{"$in"=>["5273183987f643720900000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183987f643720900000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4122ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273183987f643720900000f"]}} 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"=>"5273183987f643720900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183987f643720900000d", "_id"=>{"$ne"=>"5273183a87f6437209000010"}, "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"=>"5273183987f643720900000d"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"5273183a87f6437209000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273183987f643720900000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:54 UTC, "created_at"=>2013-11-01 02:55:54 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183987f643720900000d", "template_dependencies.en"=>{"$in"=>["5273183a87f6437209000010"]}}, "$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"=>"5273183a87f6437209000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3302ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273183a87f6437209000010"]}} 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"=>"5273183987f643720900000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183987f643720900000d", "_id"=>{"$ne"=>"5273183a87f6437209000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"5273183987f643720900000d"}, "$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.2770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273183a87f6437209000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273183987f643720900000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:54 UTC, "created_at"=>2013-11-01 02:55:54 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183987f643720900000d", "template_dependencies.en"=>{"$in"=>["5273183a87f6437209000011"]}}, "$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"=>"5273183a87f6437209000011"}, "$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"=>["5273183a87f6437209000011"]}} 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_content_types selector={"site_id"=>"5273183987f643720900000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4427ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273183b87f6437209000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273183987f643720900000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273183b87f6437209000013", "updated_at"=>2013-11-01 02:55:55 UTC, "created_at"=>2013-11-01 02:55:55 UTC, "entries_custom_fields"=>[{"_id"=>"5273183b87f6437209000013", "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.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273183b87f6437209000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183b87f6437209000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273183b87f6437209000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183b87f6437209000012"]}}} (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273183b87f6437209000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273183b87f6437209000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273183b87f6437209000012", "content_type_id"=>"5273183b87f6437209000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273183987f643720900000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:55:55 UTC, "created_at"=>2013-11-01 02:55:55 UTC}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273183687f6437209000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}} 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"=>"5273183787f643720900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}} 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"=>"5273183687f6437209000006"} update={"$set"=>{"updated_at"=>2013-11-01 02:55:55 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0858ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273183687f6437209000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1631ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:55: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.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6583ms) Rendered text template (0.0ms) Completed 200 OK in 16.0ms (Views: 10.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:55:55 +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.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "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.6649ms) Rendered text template (0.0ms) Completed 200 OK in 450.5ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273183687f6437209000006"} 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={"content_type_id"=>"5273183687f6437209000006", "updated_at"=>{"$lt"=>2013-11-01 02:55:55 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5273183687f6437209000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273183587f6437209000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5273183687f6437209000006"}, "$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_content_entries selector={"_id"=>"5273183687f6437209000009"} update={"$set"=>{"updated_at"=>2013-11-01 02:55:56 UTC}} flags=[] (0.1233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273183587f6437209000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5273183687f6437209000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"5273183787f643720900000a"} update={"$set"=>{"updated_at"=>2013-11-01 02:55:56 UTC}} flags=[] (0.1938ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 03:55:57 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 03:55:57 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6940ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:55:57 +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.5407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183587f6437209000002", "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.4900ms) Rendered text template (0.0ms) Completed 200 OK in 441.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.5932ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5056ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3201ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8719ms) 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.3099ms) 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.3593ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273183e87f6437209000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"187b691e9998664cec276b67ec493fa26fac37df", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"CC6yE6ExRPX3sHmrbk56", "api_key"=>"07d7cdc2c3bc6d8ded1ed83fe99660cd0418d065", "updated_at"=>2013-11-01 02:55:58 UTC, "created_at"=>2013-11-01 02:55:58 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.7801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273183e87f6437209000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:55:49 UTC, "updated_at"=>2013-11-01 02:55:58 UTC, "memberships"=>[{"_id"=>"5273183e87f6437209000017", "role"=>"admin", "account_id"=>"5273183e87f6437209000015"}]}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183e87f6437209000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183e87f6437209000016", "_id"=>{"$ne"=>"5273183e87f6437209000018"}, "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"=>"5273183e87f6437209000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273183e87f6437209000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:58 UTC, "created_at"=>2013-11-01 02:55:58 UTC}] flags=[] (0.2677ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "template_dependencies.en"=>{"$in"=>["5273183e87f6437209000018"]}}, "$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"=>"5273183e87f6437209000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273183e87f6437209000018"]}} 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={"site_id"=>"5273183e87f6437209000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183e87f6437209000016", "_id"=>{"$ne"=>"5273183f87f6437209000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273183e87f6437209000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5782ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273183f87f6437209000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273183e87f6437209000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:55:59 UTC, "created_at"=>2013-11-01 02:55:59 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "template_dependencies.en"=>{"$in"=>["5273183f87f6437209000019"]}}, "$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"=>"5273183f87f6437209000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273183f87f6437209000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5273183e87f6437209000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273183f87f643720900001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273183e87f6437209000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273183f87f643720900001b", "updated_at"=>2013-11-01 02:55:59 UTC, "created_at"=>2013-11-01 02:55:59 UTC, "entries_custom_fields"=>[{"_id"=>"5273183f87f643720900001b", "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.2038ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273183f87f643720900001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273183f87f643720900001c", "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", "updated_at"=>2013-11-01 02:55:59 UTC, "created_at"=>2013-11-01 02:55:59 UTC}}} flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273183f87f643720900001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183f87f643720900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273183f87f643720900001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183f87f643720900001a"]}}} (0.3667ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273183f87f643720900001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273183f87f643720900001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273183f87f643720900001a", "content_type_id"=>"5273183f87f643720900001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273183e87f6437209000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:55:59 UTC, "created_at"=>2013-11-01 02:55:59 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273183f87f643720900001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273183f87f643720900001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273183f87f643720900001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183f87f643720900001a"]}}} (0.3750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183f87f643720900001a"]}}} (0.3040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273183f87f643720900001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273183f87f643720900001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273183f87f643720900001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273183f87f643720900001a", "content_type_id"=>"5273183f87f643720900001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273183e87f6437209000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:55:59 UTC, "created_at"=>2013-11-01 02:55:59 UTC}] flags=[] (0.1938ms) 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.8252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273183e87f6437209000016", "parent_id"=>"5273183e87f6437209000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183e87f6437209000018", "site_id"=>"5273183e87f6437209000016", "_id"=>{"$ne"=>"5273184087f643720900001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273183e87f6437209000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5273184087f643720900001f", "parent_ids"=>["5273183e87f6437209000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273183e87f6437209000016", "parent_id"=>"5273183e87f6437209000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:00 UTC, "created_at"=>2013-11-01 02:56:00 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "template_dependencies.en"=>{"$in"=>["5273184087f643720900001f"]}}, "$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"=>"5273184087f643720900001f"}, "$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"=>["5273184087f643720900001f"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"5273183e87f6437209000016", "parent_id"=>"5273183e87f6437209000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183e87f6437209000018", "site_id"=>"5273183e87f6437209000016", "_id"=>{"$ne"=>"5273184087f6437209000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273183e87f6437209000018", "site_id"=>"5273183e87f6437209000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273183e87f6437209000018"}]}]}, "$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"=>"5273184087f6437209000020", "parent_ids"=>["5273183e87f6437209000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273183e87f6437209000016", "parent_id"=>"5273183e87f6437209000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:00 UTC, "created_at"=>2013-11-01 02:56:00 UTC}] flags=[] (0.3638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "template_dependencies.en"=>{"$in"=>["5273184087f6437209000020"]}}, "$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"=>"5273184087f6437209000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3302ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273184087f6437209000020"]}} 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"=>{"site_id"=>"5273183e87f6437209000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273183e87f6437209000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273183e87f6437209000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:56:01 UTC}} flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "template_dependencies.en"=>{"$in"=>["5273183e87f6437209000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273184287f6437209000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:55:49 UTC, "updated_at"=>2013-11-01 02:56:02 UTC, "memberships"=>[{"_id"=>"5273184287f6437209000022", "role"=>"admin", "account_id"=>"5273183e87f6437209000015"}]}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273184287f6437209000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273184287f6437209000021", "_id"=>{"$ne"=>"5273184287f6437209000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5083ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273184287f6437209000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273184287f6437209000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:02 UTC, "created_at"=>2013-11-01 02:56:02 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273184287f6437209000021", "template_dependencies.en"=>{"$in"=>["5273184287f6437209000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273184287f6437209000023"}, "$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"=>["5273184287f6437209000023"]}} 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"=>"5273184287f6437209000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273184287f6437209000021", "_id"=>{"$ne"=>"5273184287f6437209000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273184287f6437209000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273184287f6437209000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273184287f6437209000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:02 UTC, "created_at"=>2013-11-01 02:56:02 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273184287f6437209000021", "template_dependencies.en"=>{"$in"=>["5273184287f6437209000024"]}}, "$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"=>"5273184287f6437209000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273184287f6437209000024"]}} 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"=>"5273184287f6437209000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5273184287f6437209000021", "_id"=>{"$ne"=>"5273184287f6437209000025"}, "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"=>"5273184287f6437209000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4542ms) 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.2279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273184287f6437209000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273184287f6437209000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:02 UTC, "created_at"=>2013-11-01 02:56:02 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273184287f6437209000021", "template_dependencies.en"=>{"$in"=>["5273184287f6437209000025"]}}, "$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"=>"5273184287f6437209000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273184287f6437209000025"]}} 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"=>"5273184287f6437209000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273184387f6437209000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273184287f6437209000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273184387f6437209000027", "updated_at"=>2013-11-01 02:56:03 UTC, "created_at"=>2013-11-01 02:56:03 UTC, "entries_custom_fields"=>[{"_id"=>"5273184387f6437209000027", "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.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273184387f6437209000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273184387f6437209000026"]}} 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"=>"5273184387f6437209000026", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273184387f6437209000026"]}}} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273184387f6437209000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273184387f6437209000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273184387f6437209000026", "content_type_id"=>"5273184387f6437209000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273184287f6437209000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:03 UTC, "created_at"=>2013-11-01 02:56:03 UTC}] flags=[] (0.1574ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:56: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.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6819ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 03:56: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.5376ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "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.7541ms) Rendered text template (0.0ms) Completed 200 OK in 447.8ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:56:04 +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.6869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273183e87f6437209000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6559ms) Rendered text template (0.0ms) Completed 200 OK in 4.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.6609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3471ms) 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.2853ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7448ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8500ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0571ms) 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.5589ms) 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.6099ms) 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.8442ms) 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.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273186a87f6432c45000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"85c7079d8148bc16793ae6b23597e865a5adc710", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"iJzf9vJ3pSLyFANt3iEz", "api_key"=>"bfe2c1716869da8e8e282709ebb43b83b3f6e57f", "updated_at"=>2013-11-01 02:56:42 UTC, "created_at"=>2013-11-01 02:56:42 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.8078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273186a87f6432c45000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:56:42 UTC, "updated_at"=>2013-11-01 02:56:42 UTC, "memberships"=>[{"_id"=>"5273186a87f6432c45000003", "role"=>"admin", "account_id"=>"5273186a87f6432c45000001"}]}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273186a87f6432c45000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273186a87f6432c45000002", "_id"=>{"$ne"=>"5273186a87f6432c45000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5273186a87f6432c45000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273186a87f6432c45000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:42 UTC, "created_at"=>2013-11-01 02:56:42 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273186a87f6432c45000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "template_dependencies.en"=>{"$in"=>["5273186a87f6432c45000004"]}}, "$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"=>["5273186a87f6432c45000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273186a87f6432c45000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273186a87f6432c45000002", "_id"=>{"$ne"=>"5273186b87f6432c45000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273186a87f6432c45000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273186b87f6432c45000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273186a87f6432c45000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:43 UTC, "created_at"=>2013-11-01 02:56:43 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "template_dependencies.en"=>{"$in"=>["5273186b87f6432c45000005"]}}, "$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"=>"5273186b87f6432c45000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273186b87f6432c45000005"]}} 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_content_types selector={"site_id"=>"5273186a87f6432c45000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273186b87f6432c45000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273186a87f6432c45000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273186b87f6432c45000007", "updated_at"=>2013-11-01 02:56:43 UTC, "created_at"=>2013-11-01 02:56:43 UTC, "entries_custom_fields"=>[{"_id"=>"5273186b87f6432c45000007", "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.2391ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273186b87f6432c45000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273186b87f6432c45000008", "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", "updated_at"=>2013-11-01 02:56:43 UTC, "created_at"=>2013-11-01 02:56:43 UTC}}} flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273186b87f6432c45000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273186b87f6432c45000006"]}} 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_content_entries selector={"content_type_id"=>"5273186b87f6432c45000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273186b87f6432c45000006"]}}} (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273186b87f6432c45000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273186b87f6432c45000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273186b87f6432c45000006", "content_type_id"=>"5273186b87f6432c45000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273186a87f6432c45000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:43 UTC, "created_at"=>2013-11-01 02:56:43 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273186c87f6432c4500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273186b87f6432c45000006"]}} 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"=>"5273186b87f6432c45000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3867ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273186b87f6432c45000006"]}}} (0.3841ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273186b87f6432c45000006"]}}} (0.3133ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273186b87f6432c45000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273186c87f6432c4500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273186b87f6432c45000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273186b87f6432c45000006", "content_type_id"=>"5273186b87f6432c45000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273186a87f6432c45000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:44 UTC, "created_at"=>2013-11-01 02:56:44 UTC}] flags=[] (0.1991ms) 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.6480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273186a87f6432c45000002", "parent_id"=>"5273186a87f6432c45000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4773ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273186a87f6432c45000004", "site_id"=>"5273186a87f6432c45000002", "_id"=>{"$ne"=>"5273186c87f6432c4500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273186a87f6432c45000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273186c87f6432c4500000b", "parent_ids"=>["5273186a87f6432c45000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273186a87f6432c45000002", "parent_id"=>"5273186a87f6432c45000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:44 UTC, "created_at"=>2013-11-01 02:56:44 UTC}] flags=[] (0.2053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "template_dependencies.en"=>{"$in"=>["5273186c87f6432c4500000b"]}}, "$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"=>"5273186c87f6432c4500000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273186c87f6432c4500000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273186a87f6432c45000002", "parent_id"=>"5273186a87f6432c45000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273186a87f6432c45000004", "site_id"=>"5273186a87f6432c45000002", "_id"=>{"$ne"=>"5273186d87f6432c4500000c"}, "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"=>{"parent_id"=>"5273186a87f6432c45000004", "site_id"=>"5273186a87f6432c45000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5273186a87f6432c45000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273186d87f6432c4500000c", "parent_ids"=>["5273186a87f6432c45000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273186a87f6432c45000002", "parent_id"=>"5273186a87f6432c45000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:45 UTC, "created_at"=>2013-11-01 02:56:45 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "template_dependencies.en"=>{"$in"=>["5273186d87f6432c4500000c"]}}, "$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"=>"5273186d87f6432c4500000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273186d87f6432c4500000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273186a87f6432c45000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273186a87f6432c45000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:56:45 UTC}} flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "template_dependencies.en"=>{"$in"=>["5273186a87f6432c45000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) 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.6881ms) 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.3500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273186e87f6432c4500000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:56:42 UTC, "updated_at"=>2013-11-01 02:56:46 UTC, "memberships"=>[{"_id"=>"5273186e87f6432c4500000e", "role"=>"admin", "account_id"=>"5273186a87f6432c45000001"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273186e87f6432c4500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273186e87f6432c4500000d", "_id"=>{"$ne"=>"5273186e87f6432c4500000f"}, "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"=>"5273186e87f6432c4500000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273186e87f6432c4500000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:46 UTC, "created_at"=>2013-11-01 02:56:46 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186e87f6432c4500000d", "template_dependencies.en"=>{"$in"=>["5273186e87f6432c4500000f"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"5273186e87f6432c4500000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273186e87f6432c4500000f"]}} 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"=>"5273186e87f6432c4500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273186e87f6432c4500000d", "_id"=>{"$ne"=>"5273186f87f6432c45000010"}, "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"=>"5273186e87f6432c4500000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5927ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273186f87f6432c45000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273186e87f6432c4500000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:47 UTC, "created_at"=>2013-11-01 02:56:47 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186e87f6432c4500000d", "template_dependencies.en"=>{"$in"=>["5273186f87f6432c45000010"]}}, "$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"=>"5273186f87f6432c45000010"}, "$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"=>["5273186f87f6432c45000010"]}} 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"=>"5273186e87f6432c4500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5273186e87f6432c4500000d", "_id"=>{"$ne"=>"5273186f87f6432c45000011"}, "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"=>"5273186e87f6432c4500000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4461ms) 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.2711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273186f87f6432c45000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273186e87f6432c4500000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:47 UTC, "created_at"=>2013-11-01 02:56:47 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186e87f6432c4500000d", "template_dependencies.en"=>{"$in"=>["5273186f87f6432c45000011"]}}, "$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"=>"5273186f87f6432c45000011"}, "$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"=>["5273186f87f6432c45000011"]}} 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"=>"5273186e87f6432c4500000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273186f87f6432c45000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273186e87f6432c4500000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273186f87f6432c45000013", "updated_at"=>2013-11-01 02:56:47 UTC, "created_at"=>2013-11-01 02:56:47 UTC, "entries_custom_fields"=>[{"_id"=>"5273186f87f6432c45000013", "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.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273186f87f6432c45000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273186f87f6432c45000012"]}} 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_entries selector={"content_type_id"=>"5273186f87f6432c45000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273186f87f6432c45000012"]}}} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273186f87f6432c45000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273186f87f6432c45000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273186f87f6432c45000012", "content_type_id"=>"5273186f87f6432c45000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273186e87f6432c4500000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:47 UTC, "created_at"=>2013-11-01 02:56:47 UTC}] flags=[] (0.2081ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:56: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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6130ms) Rendered text template (0.0ms) Completed 200 OK in 12.2ms (Views: 6.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 03:56: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.7169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "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.7298ms) Rendered text template (0.0ms) Completed 200 OK in 892.5ms (Views: 0.7ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:56:49 +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.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273186a87f6432c45000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5817ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (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.5410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1802ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2391ms) 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.9680ms) 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 (0.8180ms) 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.3479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5273187187f6432c45000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"54488bff1b0526e9322a4d45a799d42be78d2f8a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9oawGEFKJQLhJNwMkAeM", "api_key"=>"694e3089f9355a559a9ef250054933523dd6589c", "updated_at"=>2013-11-01 02:56:49 UTC, "created_at"=>2013-11-01 02:56:49 UTC}] flags=[] (0.1261ms) 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.7770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273187187f6432c45000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 02:56:42 UTC, "updated_at"=>2013-11-01 02:56:49 UTC, "memberships"=>[{"_id"=>"5273187187f6432c45000017", "role"=>"admin", "account_id"=>"5273187187f6432c45000015"}]}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273187187f6432c45000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187187f6432c45000016", "_id"=>{"$ne"=>"5273187187f6432c45000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273187187f6432c45000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273187187f6432c45000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:49 UTC, "created_at"=>2013-11-01 02:56:49 UTC}] flags=[] (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "template_dependencies.en"=>{"$in"=>["5273187187f6432c45000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273187187f6432c45000018"}, "$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"=>["5273187187f6432c45000018"]}} 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={"site_id"=>"5273187187f6432c45000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187187f6432c45000016", "_id"=>{"$ne"=>"5273187287f6432c45000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187187f6432c45000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5603ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273187287f6432c45000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273187187f6432c45000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:50 UTC, "created_at"=>2013-11-01 02:56:50 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "template_dependencies.en"=>{"$in"=>["5273187287f6432c45000019"]}}, "$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"=>"5273187287f6432c45000019"}, "$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"=>["5273187287f6432c45000019"]}} 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"=>"5273187187f6432c45000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273187287f6432c4500001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273187187f6432c45000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273187287f6432c4500001b", "updated_at"=>2013-11-01 02:56:50 UTC, "created_at"=>2013-11-01 02:56:50 UTC, "entries_custom_fields"=>[{"_id"=>"5273187287f6432c4500001b", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273187287f6432c4500001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5273187287f6432c4500001c", "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", "updated_at"=>2013-11-01 02:56:50 UTC, "created_at"=>2013-11-01 02:56:50 UTC}}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273187287f6432c4500001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}} 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"=>"5273187287f6432c4500001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4909ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}}} (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273187287f6432c4500001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273187287f6432c4500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273187287f6432c4500001a", "content_type_id"=>"5273187287f6432c4500001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5273187187f6432c45000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:50 UTC, "created_at"=>2013-11-01 02:56:50 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273187387f6432c4500001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5273187287f6432c4500001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4022ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}}} (0.5331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}}} (0.3703ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273187387f6432c4500001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5273187287f6432c4500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273187287f6432c4500001a", "content_type_id"=>"5273187287f6432c4500001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5273187187f6432c45000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:51 UTC, "created_at"=>2013-11-01 02:56:51 UTC}] flags=[] (0.1979ms) 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.6821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273187187f6432c45000016", "parent_id"=>"5273187187f6432c45000018", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5273187187f6432c45000018", "site_id"=>"5273187187f6432c45000016", "_id"=>{"$ne"=>"5273187387f6432c4500001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5273187187f6432c45000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273187387f6432c4500001f", "parent_ids"=>["5273187187f6432c45000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5273187187f6432c45000016", "parent_id"=>"5273187187f6432c45000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:51 UTC, "created_at"=>2013-11-01 02:56:51 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "template_dependencies.en"=>{"$in"=>["5273187387f6432c4500001f"]}}, "$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"=>"5273187387f6432c4500001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273187387f6432c4500001f"]}} 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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273187187f6432c45000016", "parent_id"=>"5273187187f6432c45000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5273187187f6432c45000018", "site_id"=>"5273187187f6432c45000016", "_id"=>{"$ne"=>"5273187487f6432c45000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5273187187f6432c45000018", "site_id"=>"5273187187f6432c45000016"}, "$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"=>"5273187187f6432c45000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273187487f6432c45000020", "parent_ids"=>["5273187187f6432c45000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5273187187f6432c45000016", "parent_id"=>"5273187187f6432c45000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:52 UTC, "created_at"=>2013-11-01 02:56:52 UTC}] flags=[] (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "template_dependencies.en"=>{"$in"=>["5273187487f6432c45000020"]}}, "$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"=>"5273187487f6432c45000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273187487f6432c45000020"]}} 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"=>{"site_id"=>"5273187187f6432c45000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273187187f6432c45000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5273187187f6432c45000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 02:56:53 UTC}} flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "template_dependencies.en"=>{"$in"=>["5273187187f6432c45000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) 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.7129ms) 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.3908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5273187587f6432c45000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 02:56:42 UTC, "updated_at"=>2013-11-01 02:56:53 UTC, "memberships"=>[{"_id"=>"5273187587f6432c45000022", "role"=>"admin", "account_id"=>"5273187187f6432c45000015"}]}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5273187587f6432c45000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187587f6432c45000021", "_id"=>{"$ne"=>"5273187587f6432c45000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273187587f6432c45000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5273187587f6432c45000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:53 UTC, "created_at"=>2013-11-01 02:56:53 UTC}] flags=[] (0.2861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187587f6432c45000021", "template_dependencies.en"=>{"$in"=>["5273187587f6432c45000023"]}}, "$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"=>"5273187587f6432c45000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273187587f6432c45000023"]}} 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"=>"5273187587f6432c45000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5503ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187587f6432c45000021", "_id"=>{"$ne"=>"5273187687f6432c45000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187587f6432c45000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5273187687f6432c45000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5273187587f6432c45000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:54 UTC, "created_at"=>2013-11-01 02:56:54 UTC}] flags=[] (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187587f6432c45000021", "template_dependencies.en"=>{"$in"=>["5273187687f6432c45000024"]}}, "$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"=>"5273187687f6432c45000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5273187687f6432c45000024"]}} 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"=>"5273187587f6432c45000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5273187587f6432c45000021", "_id"=>{"$ne"=>"5273187687f6432c45000025"}, "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"=>"5273187587f6432c45000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5273187687f6432c45000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5273187587f6432c45000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 02:56:54 UTC, "created_at"=>2013-11-01 02:56:54 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187587f6432c45000021", "template_dependencies.en"=>{"$in"=>["5273187687f6432c45000025"]}}, "$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"=>"5273187687f6432c45000025"}, "$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"=>["5273187687f6432c45000025"]}} 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"=>"5273187587f6432c45000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5273187687f6432c45000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5273187587f6432c45000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5273187687f6432c45000027", "updated_at"=>2013-11-01 02:56:54 UTC, "created_at"=>2013-11-01 02:56:54 UTC, "entries_custom_fields"=>[{"_id"=>"5273187687f6432c45000027", "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"=>"5273187687f6432c45000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273187687f6432c45000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273187687f6432c45000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4108ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5273187687f6432c45000026"]}}} (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5273187687f6432c45000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5273187687f6432c45000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5273187687f6432c45000026", "content_type_id"=>"5273187687f6432c45000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5273187587f6432c45000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 02:56:54 UTC, "created_at"=>2013-11-01 02:56:54 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5273187287f6432c4500001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}} 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={"_id"=>{"$ne"=>"5273187387f6432c4500001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273187287f6432c4500001a"} update={"$set"=>{"updated_at"=>2013-11-01 02:56:55 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5273187287f6432c4500001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1438ms) Started GET "/" for 127.0.0.1 at 2013-11-01 03:56: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.6752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 5.3ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:56:55 +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.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "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.5689ms) Rendered text template (0.0ms) Completed 200 OK in 880.2ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5273187287f6432c4500001a"} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5273187287f6432c4500001a", "updated_at"=>{"$lt"=>2013-11-01 02:56:55 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5273187287f6432c4500001a"]}} 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_sites selector={"$query"=>{"_id"=>"5273187187f6432c45000016"}, "$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_types selector={"$query"=>{"_id"=>"5273187287f6432c4500001a"}, "$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_content_entries selector={"_id"=>"5273187287f6432c4500001d"} update={"$set"=>{"updated_at"=>2013-11-01 02:56:56 UTC}} flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5273187187f6432c45000016"}, "$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_content_types selector={"$query"=>{"_id"=>"5273187287f6432c4500001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"5273187387f6432c4500001e"} update={"$set"=>{"updated_at"=>2013-11-01 02:56:57 UTC}} flags=[] (0.2203ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 03:56:57 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 03:56:57 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6559ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 03:56:57 +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.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5273187187f6432c45000016", "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.7060ms) Rendered text template (0.0ms) Completed 200 OK in 876.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.5889ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6451ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3759ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2627ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2259ms) 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.6390ms) 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.4740ms) 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.8681ms) 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.4742ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731a4387f6436ca8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"48221c7a80bc6fcce91a266ad0281c77287cae13", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"4AsCFkYGm9gqEAZippma", "api_key"=>"774544a545930dd29e0b2e032b9381534c028eac", "updated_at"=>2013-11-01 03:04:35 UTC, "created_at"=>2013-11-01 03:04:35 UTC}] flags=[] (0.1771ms) 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.8340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731a4387f6436ca8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:04:34 UTC, "updated_at"=>2013-11-01 03:04:35 UTC, "memberships"=>[{"_id"=>"52731a4387f6436ca8000003", "role"=>"admin", "account_id"=>"52731a4387f6436ca8000001"}]}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4387f6436ca8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4387f6436ca8000002", "_id"=>{"$ne"=>"52731a4387f6436ca8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4387f6436ca8000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731a4387f6436ca8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:35 UTC, "created_at"=>2013-11-01 03:04:35 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4387f6436ca8000004"}, "$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"=>{"site_id"=>"52731a4387f6436ca8000002", "template_dependencies.en"=>{"$in"=>["52731a4387f6436ca8000004"]}}, "$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"=>["52731a4387f6436ca8000004"]}} 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={"site_id"=>"52731a4387f6436ca8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4387f6436ca8000002", "_id"=>{"$ne"=>"52731a4487f6436ca8000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4387f6436ca8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52731a4487f6436ca8000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731a4387f6436ca8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:36 UTC, "created_at"=>2013-11-01 03:04:36 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "template_dependencies.en"=>{"$in"=>["52731a4487f6436ca8000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4487f6436ca8000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4487f6436ca8000005"]}} 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_content_types selector={"site_id"=>"52731a4387f6436ca8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731a4487f6436ca8000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731a4387f6436ca8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731a4487f6436ca8000007", "updated_at"=>2013-11-01 03:04:36 UTC, "created_at"=>2013-11-01 03:04:36 UTC, "entries_custom_fields"=>[{"_id"=>"52731a4487f6436ca8000007", "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.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731a4487f6436ca8000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52731a4487f6436ca8000008", "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", "updated_at"=>2013-11-01 03:04:36 UTC, "created_at"=>2013-11-01 03:04:36 UTC}}} flags=[] (0.3870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a4487f6436ca8000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4487f6436ca8000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4487f6436ca8000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5927ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4487f6436ca8000006"]}}} (0.5901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731a4487f6436ca8000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731a4487f6436ca8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731a4487f6436ca8000006", "content_type_id"=>"52731a4487f6436ca8000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52731a4387f6436ca8000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:04:36 UTC, "created_at"=>2013-11-01 03:04:36 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a4587f6436ca800000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4487f6436ca8000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4487f6436ca8000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6351ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4487f6436ca8000006"]}}} (0.4709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4487f6436ca8000006"]}}} (0.3078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4487f6436ca8000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731a4587f6436ca800000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52731a4487f6436ca8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731a4487f6436ca8000006", "content_type_id"=>"52731a4487f6436ca8000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52731a4387f6436ca8000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:04:37 UTC, "created_at"=>2013-11-01 03:04:37 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.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4387f6436ca8000002", "parent_id"=>"52731a4387f6436ca8000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"52731a4387f6436ca8000004", "site_id"=>"52731a4387f6436ca8000002", "_id"=>{"$ne"=>"52731a4587f6436ca800000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52731a4387f6436ca8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4587f6436ca800000b", "parent_ids"=>["52731a4387f6436ca8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52731a4387f6436ca8000002", "parent_id"=>"52731a4387f6436ca8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:37 UTC, "created_at"=>2013-11-01 03:04:37 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "template_dependencies.en"=>{"$in"=>["52731a4587f6436ca800000b"]}}, "$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"=>"52731a4587f6436ca800000b"}, "$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"=>["52731a4587f6436ca800000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0963ms) 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"=>"52731a4387f6436ca8000002", "parent_id"=>"52731a4387f6436ca8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4387f6436ca8000004", "site_id"=>"52731a4387f6436ca8000002", "_id"=>{"$ne"=>"52731a4687f6436ca800000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4387f6436ca8000004", "site_id"=>"52731a4387f6436ca8000002"}, "$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"=>"52731a4387f6436ca8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52731a4687f6436ca800000c", "parent_ids"=>["52731a4387f6436ca8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52731a4387f6436ca8000002", "parent_id"=>"52731a4387f6436ca8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:38 UTC, "created_at"=>2013-11-01 03:04:38 UTC}] flags=[] (0.2699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "template_dependencies.en"=>{"$in"=>["52731a4687f6436ca800000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4687f6436ca800000c"}, "$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"=>["52731a4687f6436ca800000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0943ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731a4387f6436ca8000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52731a4387f6436ca8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:04:39 UTC}} flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "template_dependencies.en"=>{"$in"=>["52731a4387f6436ca8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4542ms) 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.6461ms) 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.5019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731a4787f6436ca800000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:04:34 UTC, "updated_at"=>2013-11-01 03:04:39 UTC, "memberships"=>[{"_id"=>"52731a4787f6436ca800000e", "role"=>"admin", "account_id"=>"52731a4387f6436ca8000001"}]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4787f6436ca800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4787f6436ca800000d", "_id"=>{"$ne"=>"52731a4787f6436ca800000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4787f6436ca800000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731a4787f6436ca800000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:39 UTC, "created_at"=>2013-11-01 03:04:39 UTC}] flags=[] (0.3247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4787f6436ca800000d", "template_dependencies.en"=>{"$in"=>["52731a4787f6436ca800000f"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52731a4787f6436ca800000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4787f6436ca800000f"]}} 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"=>"52731a4787f6436ca800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4787f6436ca800000d", "_id"=>{"$ne"=>"52731a4887f6436ca8000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4787f6436ca800000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4887f6436ca8000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731a4787f6436ca800000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:40 UTC, "created_at"=>2013-11-01 03:04:40 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4787f6436ca800000d", "template_dependencies.en"=>{"$in"=>["52731a4887f6436ca8000010"]}}, "$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"=>"52731a4887f6436ca8000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4887f6436ca8000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4787f6436ca800000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4787f6436ca800000d", "_id"=>{"$ne"=>"52731a4887f6436ca8000011"}, "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"=>"52731a4787f6436ca800000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5381ms) 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.3769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4887f6436ca8000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52731a4787f6436ca800000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:40 UTC, "created_at"=>2013-11-01 03:04:40 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4787f6436ca800000d", "template_dependencies.en"=>{"$in"=>["52731a4887f6436ca8000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4887f6436ca8000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4887f6436ca8000011"]}} 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_content_types selector={"site_id"=>"52731a4787f6436ca800000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52731a4887f6436ca8000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731a4787f6436ca800000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731a4887f6436ca8000013", "updated_at"=>2013-11-01 03:04:40 UTC, "created_at"=>2013-11-01 03:04:40 UTC, "entries_custom_fields"=>[{"_id"=>"52731a4887f6436ca8000013", "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.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a4887f6436ca8000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4887f6436ca8000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.8990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4887f6436ca8000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4887f6436ca8000012"]}}} (0.5963ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731a4887f6436ca8000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731a4887f6436ca8000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731a4887f6436ca8000012", "content_type_id"=>"52731a4887f6436ca8000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52731a4787f6436ca800000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:04:40 UTC, "created_at"=>2013-11-01 03:04:40 UTC}] flags=[] (0.2730ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:04: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.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6940ms) Rendered text template (0.0ms) Completed 200 OK in 17.1ms (Views: 10.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 04:04: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.7730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "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.7470ms) Rendered text template (0.0ms) Completed 200 OK in 914.7ms (Views: 2.2ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 04:04: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.8600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3101ms) Rendered text template (0.0ms) Completed 200 OK in 8.2ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:04: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 (1.2181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8340ms) Rendered text template (0.0ms) Completed 200 OK in 8.1ms (Views: 1.2ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 04:04: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 (1.0800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4387f6436ca8000002", "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.9239ms) Rendered text template (0.0ms) Completed 200 OK in 884.3ms (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.6940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9868ms) 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.3343ms) 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.9589ms) 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.5612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731a4b87f6436ca8000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f1114f9e16fee4ad2a9b2f28468e9bf80bee3504", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"s6boKYhGwsQ7K6AzET22", "api_key"=>"aa26e0d14920442c5c505a29b86855538b10af93", "updated_at"=>2013-11-01 03:04:43 UTC, "created_at"=>2013-11-01 03:04:43 UTC}] flags=[] (0.3719ms) 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.8120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731a4b87f6436ca8000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:04:34 UTC, "updated_at"=>2013-11-01 03:04:43 UTC, "memberships"=>[{"_id"=>"52731a4b87f6436ca8000017", "role"=>"admin", "account_id"=>"52731a4b87f6436ca8000015"}]}] flags=[] (0.3767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4b87f6436ca8000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4b87f6436ca8000016", "_id"=>{"$ne"=>"52731a4b87f6436ca8000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52731a4b87f6436ca8000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731a4b87f6436ca8000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:43 UTC, "created_at"=>2013-11-01 03:04:43 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "template_dependencies.en"=>{"$in"=>["52731a4b87f6436ca8000018"]}}, "$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"=>"52731a4b87f6436ca8000018"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["52731a4b87f6436ca8000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4b87f6436ca8000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4b87f6436ca8000016", "_id"=>{"$ne"=>"52731a4c87f6436ca8000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4b87f6436ca8000016"}, "$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"=>"52731a4c87f6436ca8000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731a4b87f6436ca8000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:44 UTC, "created_at"=>2013-11-01 03:04:44 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "template_dependencies.en"=>{"$in"=>["52731a4c87f6436ca8000019"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52731a4c87f6436ca8000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4c87f6436ca8000019"]}} 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"=>"52731a4b87f6436ca8000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731a4c87f6436ca800001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731a4b87f6436ca8000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731a4c87f6436ca800001b", "updated_at"=>2013-11-01 03:04:44 UTC, "created_at"=>2013-11-01 03:04:44 UTC, "entries_custom_fields"=>[{"_id"=>"52731a4c87f6436ca800001b", "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.2642ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731a4c87f6436ca800001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52731a4c87f6436ca800001c", "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", "updated_at"=>2013-11-01 03:04:44 UTC, "created_at"=>2013-11-01 03:04:44 UTC}}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a4c87f6436ca800001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4c87f6436ca800001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}}} (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731a4c87f6436ca800001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731a4c87f6436ca800001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731a4c87f6436ca800001a", "content_type_id"=>"52731a4c87f6436ca800001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52731a4b87f6436ca8000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:04:44 UTC, "created_at"=>2013-11-01 03:04:44 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a4d87f6436ca800001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4c87f6436ca800001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}}} (0.5803ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}}} (0.5310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731a4d87f6436ca800001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52731a4c87f6436ca800001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731a4c87f6436ca800001a", "content_type_id"=>"52731a4c87f6436ca800001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52731a4b87f6436ca8000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:04:45 UTC, "created_at"=>2013-11-01 03:04:45 UTC}] flags=[] (0.2778ms) 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.7486ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4b87f6436ca8000016", "parent_id"=>"52731a4b87f6436ca8000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4b87f6436ca8000018", "site_id"=>"52731a4b87f6436ca8000016", "_id"=>{"$ne"=>"52731a4d87f6436ca800001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52731a4b87f6436ca8000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4d87f6436ca800001f", "parent_ids"=>["52731a4b87f6436ca8000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52731a4b87f6436ca8000016", "parent_id"=>"52731a4b87f6436ca8000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:45 UTC, "created_at"=>2013-11-01 03:04:45 UTC}] flags=[] (0.4640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "template_dependencies.en"=>{"$in"=>["52731a4d87f6436ca800001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52731a4d87f6436ca800001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4983ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4d87f6436ca800001f"]}} 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={"$query"=>{"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_pages selector={"site_id"=>"52731a4b87f6436ca8000016", "parent_id"=>"52731a4b87f6436ca8000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4b87f6436ca8000018", "site_id"=>"52731a4b87f6436ca8000016", "_id"=>{"$ne"=>"52731a4e87f6436ca8000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.3789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731a4b87f6436ca8000018", "site_id"=>"52731a4b87f6436ca8000016"}, "$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"=>"52731a4b87f6436ca8000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4e87f6436ca8000020", "parent_ids"=>["52731a4b87f6436ca8000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52731a4b87f6436ca8000016", "parent_id"=>"52731a4b87f6436ca8000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:46 UTC, "created_at"=>2013-11-01 03:04:46 UTC}] flags=[] (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "template_dependencies.en"=>{"$in"=>["52731a4e87f6436ca8000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52731a4e87f6436ca8000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a4e87f6436ca8000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731a4b87f6436ca8000016"}, "$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=locomotive_pages selector={"_id"=>"52731a4b87f6436ca8000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:04:47 UTC}} flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "template_dependencies.en"=>{"$in"=>["52731a4b87f6436ca8000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) 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.6490ms) 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.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731a4f87f6436ca8000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:04:34 UTC, "updated_at"=>2013-11-01 03:04:47 UTC, "memberships"=>[{"_id"=>"52731a4f87f6436ca8000022", "role"=>"admin", "account_id"=>"52731a4b87f6436ca8000015"}]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4f87f6436ca8000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4f87f6436ca8000021", "_id"=>{"$ne"=>"52731a4f87f6436ca8000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a4f87f6436ca8000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731a4f87f6436ca8000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:47 UTC, "created_at"=>2013-11-01 03:04:47 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4f87f6436ca8000021", "template_dependencies.en"=>{"$in"=>["52731a4f87f6436ca8000023"]}}, "$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"=>"52731a4f87f6436ca8000023"}, "$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"=>["52731a4f87f6436ca8000023"]}} 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={"site_id"=>"52731a4f87f6436ca8000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4f87f6436ca8000021", "_id"=>{"$ne"=>"52731a5087f6436ca8000024"}, "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"=>"52731a4f87f6436ca8000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731a5087f6436ca8000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731a4f87f6436ca8000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:48 UTC, "created_at"=>2013-11-01 03:04:48 UTC}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4f87f6436ca8000021", "template_dependencies.en"=>{"$in"=>["52731a5087f6436ca8000024"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52731a5087f6436ca8000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731a5087f6436ca8000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731a4f87f6436ca8000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4f87f6436ca8000021", "_id"=>{"$ne"=>"52731a5087f6436ca8000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731a4f87f6436ca8000021"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$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"=>"52731a5087f6436ca8000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52731a4f87f6436ca8000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:04:48 UTC, "created_at"=>2013-11-01 03:04:48 UTC}] flags=[] (0.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4f87f6436ca8000021", "template_dependencies.en"=>{"$in"=>["52731a5087f6436ca8000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52731a5087f6436ca8000025"}, "$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"=>["52731a5087f6436ca8000025"]}} 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"=>"52731a4f87f6436ca8000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.0749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731a5187f6436ca8000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731a4f87f6436ca8000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731a5187f6436ca8000027", "updated_at"=>2013-11-01 03:04:49 UTC, "created_at"=>2013-11-01 03:04:49 UTC, "entries_custom_fields"=>[{"_id"=>"52731a5187f6436ca8000027", "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.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a5187f6436ca8000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a5187f6436ca8000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a5187f6436ca8000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7942ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731a5187f6436ca8000026"]}}} (0.6821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731a5187f6436ca8000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731a5187f6436ca8000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731a5187f6436ca8000026", "content_type_id"=>"52731a5187f6436ca8000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52731a4f87f6436ca8000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:04:49 UTC, "created_at"=>2013-11-01 03:04:49 UTC}] flags=[] (0.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731a4c87f6436ca800001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}} 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_content_entries selector={"_id"=>{"$ne"=>"52731a4d87f6436ca800001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1721ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731a4c87f6436ca800001a"} update={"$set"=>{"updated_at"=>2013-11-01 03:04:49 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4c87f6436ca800001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1132ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:04:49 +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.7589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:04:49 +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.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "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.6430ms) Rendered text template (0.0ms) Completed 200 OK in 879.4ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731a4c87f6436ca800001a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731a4c87f6436ca800001a", "updated_at"=>{"$lt"=>2013-11-01 03:04:49 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52731a4c87f6436ca800001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731a4b87f6436ca8000016"}, "$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_content_types selector={"$query"=>{"_id"=>"52731a4c87f6436ca800001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7434ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52731a4c87f6436ca800001d"} update={"$set"=>{"updated_at"=>2013-11-01 03:04:50 UTC}} flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731a4b87f6436ca8000016"}, "$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_content_types selector={"$query"=>{"_id"=>"52731a4c87f6436ca800001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4523ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52731a4d87f6436ca800001e"} update={"$set"=>{"updated_at"=>2013-11-01 03:04:51 UTC}} flags=[] (0.1180ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 04:04:51 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 04:04:51 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.8032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9151ms) Rendered text template (0.0ms) Completed 200 OK in 7.1ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:04:51 +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.7761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731a4b87f6436ca8000016", "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.9048ms) Rendered text template (0.0ms) Completed 200 OK in 890.0ms (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.6642ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.3998ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5681ms) 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.9451ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0598ms) 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.6080ms) 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.5040ms) 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.8161ms) 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.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731b9287f643002c000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ff9c27110ea9190f0e9e215dfdd49580fe00b6fc", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pqa4KMbNaJ76bdFqTRWZ", "api_key"=>"04c73ea887a5fecd953f389627c0ceb61d84f5af", "updated_at"=>2013-11-01 03:10:10 UTC, "created_at"=>2013-11-01 03:10:10 UTC}] flags=[] (0.1769ms) 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"=>"52731b9287f643002c000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:10:09 UTC, "updated_at"=>2013-11-01 03:10:10 UTC, "memberships"=>[{"_id"=>"52731b9287f643002c000003", "role"=>"admin", "account_id"=>"52731b9287f643002c000001"}]}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9287f643002c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9287f643002c000002", "_id"=>{"$ne"=>"52731b9287f643002c000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9287f643002c000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731b9287f643002c000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:10 UTC, "created_at"=>2013-11-01 03:10:10 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9287f643002c000004"}, "$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"=>{"site_id"=>"52731b9287f643002c000002", "template_dependencies.en"=>{"$in"=>["52731b9287f643002c000004"]}}, "$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"=>["52731b9287f643002c000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9287f643002c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9287f643002c000002", "_id"=>{"$ne"=>"52731b9287f643002c000005"}, "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"=>{"parent_id"=>nil, "site_id"=>"52731b9287f643002c000002"}, "$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"=>"52731b9287f643002c000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731b9287f643002c000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:10 UTC, "created_at"=>2013-11-01 03:10:10 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "template_dependencies.en"=>{"$in"=>["52731b9287f643002c000005"]}}, "$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"=>"52731b9287f643002c000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9287f643002c000005"]}} 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"=>"52731b9287f643002c000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731b9287f643002c000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731b9287f643002c000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731b9387f643002c000007", "updated_at"=>2013-11-01 03:10:11 UTC, "created_at"=>2013-11-01 03:10:11 UTC, "entries_custom_fields"=>[{"_id"=>"52731b9387f643002c000007", "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.2799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731b9287f643002c000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52731b9387f643002c000008", "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", "updated_at"=>2013-11-01 03:10:11 UTC, "created_at"=>2013-11-01 03:10:11 UTC}}} flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9387f643002c000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9287f643002c000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731b9287f643002c000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4642ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9287f643002c000006"]}}} (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731b9387f643002c000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731b9287f643002c000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731b9287f643002c000006", "content_type_id"=>"52731b9287f643002c000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52731b9287f643002c000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:10:11 UTC, "created_at"=>2013-11-01 03:10:11 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9387f643002c00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9287f643002c000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731b9287f643002c000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9287f643002c000006"]}}} (0.3912ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9287f643002c000006"]}}} (0.3109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9287f643002c000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731b9387f643002c00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52731b9287f643002c000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731b9287f643002c000006", "content_type_id"=>"52731b9287f643002c000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52731b9287f643002c000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:10:11 UTC, "created_at"=>2013-11-01 03:10:11 UTC}] flags=[] (0.2680ms) 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.7970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9287f643002c000002", "parent_id"=>"52731b9287f643002c000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"52731b9287f643002c000004", "site_id"=>"52731b9287f643002c000002", "_id"=>{"$ne"=>"52731b9487f643002c00000b"}, "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"=>"52731b9287f643002c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7112ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9487f643002c00000b", "parent_ids"=>["52731b9287f643002c000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52731b9287f643002c000002", "parent_id"=>"52731b9287f643002c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:12 UTC, "created_at"=>2013-11-01 03:10:12 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "template_dependencies.en"=>{"$in"=>["52731b9487f643002c00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9487f643002c00000b"}, "$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"=>["52731b9487f643002c00000b"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9287f643002c000002", "parent_id"=>"52731b9287f643002c000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52731b9287f643002c000004", "site_id"=>"52731b9287f643002c000002", "_id"=>{"$ne"=>"52731b9487f643002c00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9287f643002c000004", "site_id"=>"52731b9287f643002c000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52731b9287f643002c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5267ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9487f643002c00000c", "parent_ids"=>["52731b9287f643002c000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52731b9287f643002c000002", "parent_id"=>"52731b9287f643002c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:12 UTC, "created_at"=>2013-11-01 03:10:12 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "template_dependencies.en"=>{"$in"=>["52731b9487f643002c00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9487f643002c00000c"}, "$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"=>["52731b9487f643002c00000c"]}} 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"=>"52731b9287f643002c000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"52731b9287f643002c000002"}, "$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"=>"52731b9287f643002c000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:10:13 UTC}} flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "template_dependencies.en"=>{"$in"=>["52731b9287f643002c000004"]}}, "$orderby"=>{"position"=>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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7360ms) 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.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731b9687f643002c00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:10:09 UTC, "updated_at"=>2013-11-01 03:10:14 UTC, "memberships"=>[{"_id"=>"52731b9687f643002c00000e", "role"=>"admin", "account_id"=>"52731b9287f643002c000001"}]}] flags=[] (0.1588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9687f643002c00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9687f643002c00000d", "_id"=>{"$ne"=>"52731b9687f643002c00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9687f643002c00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731b9687f643002c00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:14 UTC, "created_at"=>2013-11-01 03:10:14 UTC}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9687f643002c00000d", "template_dependencies.en"=>{"$in"=>["52731b9687f643002c00000f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52731b9687f643002c00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9687f643002c00000f"]}} 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"=>"52731b9687f643002c00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9687f643002c00000d", "_id"=>{"$ne"=>"52731b9687f643002c000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7353ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9687f643002c00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52731b9687f643002c000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731b9687f643002c00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:14 UTC, "created_at"=>2013-11-01 03:10:14 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9687f643002c00000d", "template_dependencies.en"=>{"$in"=>["52731b9687f643002c000010"]}}, "$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"=>"52731b9687f643002c000010"}, "$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"=>["52731b9687f643002c000010"]}} 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={"site_id"=>"52731b9687f643002c00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9687f643002c00000d", "_id"=>{"$ne"=>"52731b9687f643002c000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9687f643002c00000d"}, "$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={"$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"=>"52731b9687f643002c000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52731b9687f643002c00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:14 UTC, "created_at"=>2013-11-01 03:10:14 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9687f643002c00000d", "template_dependencies.en"=>{"$in"=>["52731b9687f643002c000011"]}}, "$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"=>"52731b9687f643002c000011"}, "$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"=>["52731b9687f643002c000011"]}} 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_content_types selector={"site_id"=>"52731b9687f643002c00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731b9787f643002c000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731b9687f643002c00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731b9787f643002c000013", "updated_at"=>2013-11-01 03:10:15 UTC, "created_at"=>2013-11-01 03:10:15 UTC, "entries_custom_fields"=>[{"_id"=>"52731b9787f643002c000013", "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.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9787f643002c000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9787f643002c000012"]}} 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"=>"52731b9787f643002c000012", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9787f643002c000012"]}}} (0.4072ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731b9787f643002c000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731b9787f643002c000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731b9787f643002c000012", "content_type_id"=>"52731b9787f643002c000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52731b9687f643002c00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:10:15 UTC, "created_at"=>2013-11-01 03:10:15 UTC}] flags=[] (0.1516ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:10:15 +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.7138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) Rendered text template (0.0ms) Completed 200 OK in 12.0ms (Views: 6.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 04:10: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.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "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 455.7ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 04:10:16 +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.7129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "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.7010ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:10: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.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5772ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 04:10:16 +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.6309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9287f643002c000002", "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.5331ms) Rendered text template (0.0ms) Completed 200 OK in 437.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.6342ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5743ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3540ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0281ms) 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.3159ms) 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.7498ms) 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.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731b9987f643002c000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b35f97a60432f53e169887531c70f4f29ef85007", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"rozSdzMbRyd9gPNRaVHF", "api_key"=>"d3950b4141de8cff1828a1e6c43a62ee0dcdab18", "updated_at"=>2013-11-01 03:10:17 UTC, "created_at"=>2013-11-01 03:10:17 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.8461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731b9987f643002c000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:10:09 UTC, "updated_at"=>2013-11-01 03:10:17 UTC, "memberships"=>[{"_id"=>"52731b9987f643002c000017", "role"=>"admin", "account_id"=>"52731b9987f643002c000015"}]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9987f643002c000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9987f643002c000016", "_id"=>{"$ne"=>"52731b9987f643002c000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9987f643002c000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731b9987f643002c000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:17 UTC, "created_at"=>2013-11-01 03:10:17 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "template_dependencies.en"=>{"$in"=>["52731b9987f643002c000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52731b9987f643002c000018"}, "$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"=>["52731b9987f643002c000018"]}} 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"=>"52731b9987f643002c000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9987f643002c000016", "_id"=>{"$ne"=>"52731b9a87f643002c000019"}, "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"=>"52731b9987f643002c000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9a87f643002c000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731b9987f643002c000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:18 UTC, "created_at"=>2013-11-01 03:10:18 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "template_dependencies.en"=>{"$in"=>["52731b9a87f643002c000019"]}}, "$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"=>"52731b9a87f643002c000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9a87f643002c000019"]}} 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_content_types selector={"site_id"=>"52731b9987f643002c000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9348ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731b9a87f643002c00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731b9987f643002c000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731b9a87f643002c00001b", "updated_at"=>2013-11-01 03:10:18 UTC, "created_at"=>2013-11-01 03:10:18 UTC, "entries_custom_fields"=>[{"_id"=>"52731b9a87f643002c00001b", "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.1931ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731b9a87f643002c00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52731b9a87f643002c00001c", "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", "updated_at"=>2013-11-01 03:10:18 UTC, "created_at"=>2013-11-01 03:10:18 UTC}}} flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9a87f643002c00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731b9a87f643002c00001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}}} (0.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731b9a87f643002c00001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731b9a87f643002c00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731b9a87f643002c00001a", "content_type_id"=>"52731b9a87f643002c00001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52731b9987f643002c000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:10:18 UTC, "created_at"=>2013-11-01 03:10:18 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9a87f643002c00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}} 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_content_entries selector={"content_type_id"=>"52731b9a87f643002c00001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}}} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}}} (0.3107ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731b9a87f643002c00001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52731b9a87f643002c00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731b9a87f643002c00001a", "content_type_id"=>"52731b9a87f643002c00001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52731b9987f643002c000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:10:18 UTC, "created_at"=>2013-11-01 03:10:18 UTC}] flags=[] (0.1893ms) 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.8361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9987f643002c000016", "parent_id"=>"52731b9987f643002c000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9987f643002c000018", "site_id"=>"52731b9987f643002c000016", "_id"=>{"$ne"=>"52731b9b87f643002c00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52731b9987f643002c000018"}]}]}, "$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"=>"52731b9b87f643002c00001f", "parent_ids"=>["52731b9987f643002c000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52731b9987f643002c000016", "parent_id"=>"52731b9987f643002c000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:19 UTC, "created_at"=>2013-11-01 03:10:19 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "template_dependencies.en"=>{"$in"=>["52731b9b87f643002c00001f"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9b87f643002c00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9b87f643002c00001f"]}} 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.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9987f643002c000016", "parent_id"=>"52731b9987f643002c000018", "$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"=>"52731b9987f643002c000018", "site_id"=>"52731b9987f643002c000016", "_id"=>{"$ne"=>"52731b9b87f643002c000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731b9987f643002c000018", "site_id"=>"52731b9987f643002c000016"}, "$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"=>"52731b9987f643002c000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9b87f643002c000020", "parent_ids"=>["52731b9987f643002c000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52731b9987f643002c000016", "parent_id"=>"52731b9987f643002c000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:19 UTC, "created_at"=>2013-11-01 03:10:19 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "template_dependencies.en"=>{"$in"=>["52731b9b87f643002c000020"]}}, "$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"=>"52731b9b87f643002c000020"}, "$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"=>["52731b9b87f643002c000020"]}} 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"=>{"site_id"=>"52731b9987f643002c000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"52731b9987f643002c000016"}, "$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"=>"52731b9987f643002c000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:10:20 UTC}} flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "template_dependencies.en"=>{"$in"=>["52731b9987f643002c000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4492ms) 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.6132ms) 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.6251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731b9d87f643002c000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:10:09 UTC, "updated_at"=>2013-11-01 03:10:21 UTC, "memberships"=>[{"_id"=>"52731b9d87f643002c000022", "role"=>"admin", "account_id"=>"52731b9987f643002c000015"}]}] flags=[] (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731b9d87f643002c000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9d87f643002c000021", "_id"=>{"$ne"=>"52731b9d87f643002c000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52731b9d87f643002c000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731b9d87f643002c000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:21 UTC, "created_at"=>2013-11-01 03:10:21 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9d87f643002c000021", "template_dependencies.en"=>{"$in"=>["52731b9d87f643002c000023"]}}, "$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"=>"52731b9d87f643002c000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9d87f643002c000023"]}} 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={"site_id"=>"52731b9d87f643002c000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9d87f643002c000021", "_id"=>{"$ne"=>"52731b9d87f643002c000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9d87f643002c000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7272ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9d87f643002c000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731b9d87f643002c000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:21 UTC, "created_at"=>2013-11-01 03:10:21 UTC}] flags=[] (0.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9d87f643002c000021", "template_dependencies.en"=>{"$in"=>["52731b9d87f643002c000024"]}}, "$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"=>"52731b9d87f643002c000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9d87f643002c000024"]}} 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_pages selector={"site_id"=>"52731b9d87f643002c000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9d87f643002c000021", "_id"=>{"$ne"=>"52731b9d87f643002c000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731b9d87f643002c000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6480ms) 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.3049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731b9d87f643002c000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52731b9d87f643002c000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:10:21 UTC, "created_at"=>2013-11-01 03:10:21 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9d87f643002c000021", "template_dependencies.en"=>{"$in"=>["52731b9d87f643002c000025"]}}, "$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"=>"52731b9d87f643002c000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731b9d87f643002c000025"]}} 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"=>"52731b9d87f643002c000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731b9e87f643002c000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731b9d87f643002c000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731b9e87f643002c000027", "updated_at"=>2013-11-01 03:10:22 UTC, "created_at"=>2013-11-01 03:10:22 UTC, "entries_custom_fields"=>[{"_id"=>"52731b9e87f643002c000027", "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.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9e87f643002c000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9e87f643002c000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731b9e87f643002c000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9e87f643002c000026"]}}} (0.6769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731b9e87f643002c000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731b9e87f643002c000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731b9e87f643002c000026", "content_type_id"=>"52731b9e87f643002c000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52731b9d87f643002c000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:10:22 UTC, "created_at"=>2013-11-01 03:10:22 UTC}] flags=[] (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731b9a87f643002c00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}} 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={"_id"=>{"$ne"=>"52731b9a87f643002c00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1409ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731b9a87f643002c00001a"} update={"$set"=>{"updated_at"=>2013-11-01 03:10:23 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1128ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731b9a87f643002c00001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1390ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:10:23 +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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:10:23 +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.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "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.8671ms) Rendered text template (0.0ms) Completed 200 OK in 440.2ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731b9a87f643002c00001a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731b9a87f643002c00001a", "updated_at"=>{"$lt"=>2013-11-01 03:10:23 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52731b9a87f643002c00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8466ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731b9987f643002c000016"}, "$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_content_types selector={"$query"=>{"_id"=>"52731b9a87f643002c00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52731b9a87f643002c00001d"} update={"$set"=>{"updated_at"=>2013-11-01 03:10:23 UTC}} flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731b9987f643002c000016"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"52731b9a87f643002c00001a"}, "$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=locomotive_content_entries selector={"_id"=>"52731b9a87f643002c00001e"} update={"$set"=>{"updated_at"=>2013-11-01 03:10:24 UTC}} flags=[] (0.1512ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 04:10:24 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 04:10:24 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"52731b9987f643002c000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7060ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:10:24 +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.6042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731b9987f643002c000016", "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.6621ms) Rendered text template (0.0ms) Completed 200 OK in 439.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.7598ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7731ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8582ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3738ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0488ms) 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.5729ms) 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.5507ms) 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.8609ms) 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.4838ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731e7a87f6430632000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"652bcf1050342104984ac6e8dd35bee2b98cb9f2", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"H4nzNBpWzG3wF4nMT6Ct", "api_key"=>"3e4947c170804c7bd917dd7d80623a3888afcb68", "updated_at"=>2013-11-01 03:22:34 UTC, "created_at"=>2013-11-01 03:22:34 UTC}] flags=[] (0.1700ms) 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.8161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731e7a87f6430632000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:22:34 UTC, "updated_at"=>2013-11-01 03:22:34 UTC, "memberships"=>[{"_id"=>"52731e7a87f6430632000003", "role"=>"admin", "account_id"=>"52731e7a87f6430632000001"}]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731e7a87f6430632000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731e7a87f6430632000002", "_id"=>{"$ne"=>"52731e7a87f6430632000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731e7a87f6430632000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731e7a87f6430632000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:22:35 UTC, "created_at"=>2013-11-01 03:22:35 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731e7a87f6430632000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731e7a87f6430632000002", "template_dependencies.en"=>{"$in"=>["52731e7a87f6430632000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731e7a87f6430632000004"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1950ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0459ms) 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 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.9408ms) 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.4313ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731e7b87f6430632000005", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"20d3f3c9ff2b16358ebae15fd6ceb86c36ac6e43", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RpCx9Y9mzTx8GktoteiC", "api_key"=>"e28a5bb0d56e10c963307c6a213d133c922d98c7", "updated_at"=>2013-11-01 03:22:35 UTC, "created_at"=>2013-11-01 03:22:35 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.8361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731e7b87f6430632000006", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:22:34 UTC, "updated_at"=>2013-11-01 03:22:35 UTC, "memberships"=>[{"_id"=>"52731e7b87f6430632000007", "role"=>"admin", "account_id"=>"52731e7b87f6430632000005"}]}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731e7b87f6430632000006", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731e7b87f6430632000006", "_id"=>{"$ne"=>"52731e7b87f6430632000008"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52731e7b87f6430632000008", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731e7b87f6430632000006", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:22:35 UTC, "created_at"=>2013-11-01 03:22:35 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731e7b87f6430632000006", "template_dependencies.en"=>{"$in"=>["52731e7b87f6430632000008"]}}, "$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"=>"52731e7b87f6430632000008"}, "$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"=>["52731e7b87f6430632000008"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1888ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9532ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2228ms) 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.7010ms) 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.5541ms) 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.9201ms) 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.4122ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731e8e87f6438c77000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"947a902e2ec29303e9ccbf1aadb8ce1c25a056b7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"cGEn9uiTTgGc8MozyrjY", "api_key"=>"a5b6208525d9761935870d120a5b987ba153bc2f", "updated_at"=>2013-11-01 03:22:54 UTC, "created_at"=>2013-11-01 03:22:54 UTC}] flags=[] (0.1490ms) 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.7920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731e8e87f6438c77000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:22:53 UTC, "updated_at"=>2013-11-01 03:22:54 UTC, "memberships"=>[{"_id"=>"52731e8e87f6438c77000003", "role"=>"admin", "account_id"=>"52731e8e87f6438c77000001"}]}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731e8e87f6438c77000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731e8e87f6438c77000002", "_id"=>{"$ne"=>"52731e8e87f6438c77000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731e8e87f6438c77000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731e8e87f6438c77000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:22:54 UTC, "created_at"=>2013-11-01 03:22:54 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731e8e87f6438c77000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"52731e8e87f6438c77000002", "template_dependencies.en"=>{"$in"=>["52731e8e87f6438c77000004"]}}, "$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"=>["52731e8e87f6438c77000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) 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.5221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3998ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1969ms) 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.3133ms) 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.8771ms) 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"=>"52731e8e87f6438c77000005", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"bfc1dc5d43eeb7a6566ec0e51ac75c752af72156", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"tqzpp4rRnLbYt6c9Zyzq", "api_key"=>"291da039fd9582325b010e4089e8e7cf06938744", "updated_at"=>2013-11-01 03:22:54 UTC, "created_at"=>2013-11-01 03:22:54 UTC}] flags=[] (0.1221ms) 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.9217ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731e8e87f6438c77000006", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:22:53 UTC, "updated_at"=>2013-11-01 03:22:54 UTC, "memberships"=>[{"_id"=>"52731e8e87f6438c77000007", "role"=>"admin", "account_id"=>"52731e8e87f6438c77000005"}]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731e8e87f6438c77000006", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"52731e8e87f6438c77000006", "_id"=>{"$ne"=>"52731e8e87f6438c77000008"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731e8e87f6438c77000008", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731e8e87f6438c77000006", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:22:54 UTC, "created_at"=>2013-11-01 03:22:54 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731e8e87f6438c77000006", "template_dependencies.en"=>{"$in"=>["52731e8e87f6438c77000008"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731e8e87f6438c77000008"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731e8e87f6438c77000008"]}} 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=system.namespaces selector={:name=>{"$not"=>/locomotive_search_test\.system\.|\$/}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5322ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4487ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4082ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8650ms) 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.5579ms) 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.4718ms) 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.9241ms) 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.4210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731eaa87f643e5a2000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"42d21fa01d3dc48a16dca7c4d6fc004101d7dab7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"sWqLmJo4FuPWv7MYtFaN", "api_key"=>"9c9e63b436891e408c66d220810c9d3528f9ad18", "updated_at"=>2013-11-01 03:23:22 UTC, "created_at"=>2013-11-01 03:23:22 UTC}] flags=[] (0.1659ms) 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.8092ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731eaa87f643e5a2000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:23:21 UTC, "updated_at"=>2013-11-01 03:23:22 UTC, "memberships"=>[{"_id"=>"52731eaa87f643e5a2000003", "role"=>"admin", "account_id"=>"52731eaa87f643e5a2000001"}]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eaa87f643e5a2000002", "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"=>"52731eaa87f643e5a2000002", "_id"=>{"$ne"=>"52731eaa87f643e5a2000004"}, "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"=>"52731eaa87f643e5a2000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731eaa87f643e5a2000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:22 UTC, "created_at"=>2013-11-01 03:23:22 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eaa87f643e5a2000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "template_dependencies.en"=>{"$in"=>["52731eaa87f643e5a2000004"]}}, "$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"=>["52731eaa87f643e5a2000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eaa87f643e5a2000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eaa87f643e5a2000002", "_id"=>{"$ne"=>"52731eaa87f643e5a2000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eaa87f643e5a2000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731eaa87f643e5a2000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731eaa87f643e5a2000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:22 UTC, "created_at"=>2013-11-01 03:23:22 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "template_dependencies.en"=>{"$in"=>["52731eaa87f643e5a2000005"]}}, "$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"=>"52731eaa87f643e5a2000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731eaa87f643e5a2000005"]}} 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"=>"52731eaa87f643e5a2000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731eaa87f643e5a2000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731eaa87f643e5a2000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731eab87f643e5a2000007", "updated_at"=>2013-11-01 03:23:23 UTC, "created_at"=>2013-11-01 03:23:23 UTC, "entries_custom_fields"=>[{"_id"=>"52731eab87f643e5a2000007", "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.2291ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731eaa87f643e5a2000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52731eab87f643e5a2000008", "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", "updated_at"=>2013-11-01 03:23:23 UTC, "created_at"=>2013-11-01 03:23:23 UTC}}} flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731eab87f643e5a2000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eaa87f643e5a2000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731eaa87f643e5a2000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eaa87f643e5a2000006"]}}} (0.4382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731eab87f643e5a2000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731eaa87f643e5a2000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731eaa87f643e5a2000006", "content_type_id"=>"52731eaa87f643e5a2000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52731eaa87f643e5a2000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:23:23 UTC, "created_at"=>2013-11-01 03:23:23 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731eab87f643e5a200000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eaa87f643e5a2000006"]}} 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_content_entries selector={"content_type_id"=>"52731eaa87f643e5a2000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3769ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eaa87f643e5a2000006"]}}} (0.4711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eaa87f643e5a2000006"]}}} (0.3300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eaa87f643e5a2000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731eab87f643e5a200000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52731eaa87f643e5a2000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731eaa87f643e5a2000006", "content_type_id"=>"52731eaa87f643e5a2000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52731eaa87f643e5a2000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:23:23 UTC, "created_at"=>2013-11-01 03:23:23 UTC}] flags=[] (0.3290ms) 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"=>"52731eaa87f643e5a2000002", "parent_id"=>"52731eaa87f643e5a2000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eaa87f643e5a2000004", "site_id"=>"52731eaa87f643e5a2000002", "_id"=>{"$ne"=>"52731eac87f643e5a200000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52731eaa87f643e5a2000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731eac87f643e5a200000b", "parent_ids"=>["52731eaa87f643e5a2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52731eaa87f643e5a2000002", "parent_id"=>"52731eaa87f643e5a2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:24 UTC, "created_at"=>2013-11-01 03:23:24 UTC}] flags=[] (0.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "template_dependencies.en"=>{"$in"=>["52731eac87f643e5a200000b"]}}, "$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"=>"52731eac87f643e5a200000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3457ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731eac87f643e5a200000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eaa87f643e5a2000002", "parent_id"=>"52731eaa87f643e5a2000004", "$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"=>"52731eaa87f643e5a2000004", "site_id"=>"52731eaa87f643e5a2000002", "_id"=>{"$ne"=>"52731eac87f643e5a200000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eaa87f643e5a2000004", "site_id"=>"52731eaa87f643e5a2000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52731eaa87f643e5a2000004"}]}]}, "$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"=>"52731eac87f643e5a200000c", "parent_ids"=>["52731eaa87f643e5a2000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52731eaa87f643e5a2000002", "parent_id"=>"52731eaa87f643e5a2000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:24 UTC, "created_at"=>2013-11-01 03:23:24 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "template_dependencies.en"=>{"$in"=>["52731eac87f643e5a200000c"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52731eac87f643e5a200000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731eac87f643e5a200000c"]}} 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"=>{"site_id"=>"52731eaa87f643e5a2000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731eaa87f643e5a2000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4683ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52731eaa87f643e5a2000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:23:25 UTC}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "template_dependencies.en"=>{"$in"=>["52731eaa87f643e5a2000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4296ms) 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.6931ms) 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.3889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731eae87f643e5a200000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:23:21 UTC, "updated_at"=>2013-11-01 03:23:26 UTC, "memberships"=>[{"_id"=>"52731eae87f643e5a200000e", "role"=>"admin", "account_id"=>"52731eaa87f643e5a2000001"}]}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eae87f643e5a200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eae87f643e5a200000d", "_id"=>{"$ne"=>"52731eae87f643e5a200000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52731eae87f643e5a200000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731eae87f643e5a200000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:26 UTC, "created_at"=>2013-11-01 03:23:26 UTC}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eae87f643e5a200000d", "template_dependencies.en"=>{"$in"=>["52731eae87f643e5a200000f"]}}, "$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"=>"52731eae87f643e5a200000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731eae87f643e5a200000f"]}} 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"=>"52731eae87f643e5a200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eae87f643e5a200000d", "_id"=>{"$ne"=>"52731eae87f643e5a2000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"52731eae87f643e5a200000d"}, "$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"=>"52731eae87f643e5a2000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731eae87f643e5a200000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:26 UTC, "created_at"=>2013-11-01 03:23:26 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eae87f643e5a200000d", "template_dependencies.en"=>{"$in"=>["52731eae87f643e5a2000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eae87f643e5a2000010"}, "$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"=>["52731eae87f643e5a2000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1066ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eae87f643e5a200000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eae87f643e5a200000d", "_id"=>{"$ne"=>"52731eae87f643e5a2000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eae87f643e5a200000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4938ms) 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.2918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731eae87f643e5a2000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52731eae87f643e5a200000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:26 UTC, "created_at"=>2013-11-01 03:23:26 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eae87f643e5a200000d", "template_dependencies.en"=>{"$in"=>["52731eae87f643e5a2000011"]}}, "$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"=>"52731eae87f643e5a2000011"}, "$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"=>["52731eae87f643e5a2000011"]}} 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_content_types selector={"site_id"=>"52731eae87f643e5a200000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4327ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731eaf87f643e5a2000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731eae87f643e5a200000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731eaf87f643e5a2000013", "updated_at"=>2013-11-01 03:23:27 UTC, "created_at"=>2013-11-01 03:23:27 UTC, "entries_custom_fields"=>[{"_id"=>"52731eaf87f643e5a2000013", "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"=>"52731eaf87f643e5a2000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eaf87f643e5a2000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731eaf87f643e5a2000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4909ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eaf87f643e5a2000012"]}}} (0.3991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731eaf87f643e5a2000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731eaf87f643e5a2000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731eaf87f643e5a2000012", "content_type_id"=>"52731eaf87f643e5a2000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52731eae87f643e5a200000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:23:27 UTC, "created_at"=>2013-11-01 03:23:27 UTC}] flags=[] (0.1616ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:23: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.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6759ms) Rendered text template (0.0ms) Completed 200 OK in 15.5ms (Views: 10.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 04:23:28 +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.7319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "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.7660ms) Rendered text template (0.0ms) Completed 200 OK in 451.5ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 04:23:28 +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.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "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.5679ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:23: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.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "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 3.9ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-01 04:23:28 +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.7467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eaa87f643e5a2000002", "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) Rendered text template (0.0ms) Completed 200 OK in 443.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.6888ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4889ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0512ms) 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.3552ms) 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.7329ms) 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.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52731eb187f643e5a2000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4ecb28b199cff253b983ac7d81a4156b4b833f77", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"MUKJwi5Dp4pEZVy1xSrV", "api_key"=>"e1d5e9796b01659f3c3e5f318a1a97ebacd16db5", "updated_at"=>2013-11-01 03:23:29 UTC, "created_at"=>2013-11-01 03:23:29 UTC}] flags=[] (0.1161ms) 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.7908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731eb187f643e5a2000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:23:21 UTC, "updated_at"=>2013-11-01 03:23:29 UTC, "memberships"=>[{"_id"=>"52731eb187f643e5a2000017", "role"=>"admin", "account_id"=>"52731eb187f643e5a2000015"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eb187f643e5a2000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eb187f643e5a2000016", "_id"=>{"$ne"=>"52731eb187f643e5a2000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52731eb187f643e5a2000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731eb187f643e5a2000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:29 UTC, "created_at"=>2013-11-01 03:23:29 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "template_dependencies.en"=>{"$in"=>["52731eb187f643e5a2000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4144ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eb187f643e5a2000018"}, "$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"=>["52731eb187f643e5a2000018"]}} 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"=>"52731eb187f643e5a2000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eb187f643e5a2000016", "_id"=>{"$ne"=>"52731eb287f643e5a2000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eb187f643e5a2000016"}, "$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"=>"52731eb287f643e5a2000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731eb187f643e5a2000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:30 UTC, "created_at"=>2013-11-01 03:23:30 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "template_dependencies.en"=>{"$in"=>["52731eb287f643e5a2000019"]}}, "$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"=>"52731eb287f643e5a2000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731eb287f643e5a2000019"]}} 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"=>"52731eb187f643e5a2000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52731eb287f643e5a200001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731eb187f643e5a2000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731eb287f643e5a200001b", "updated_at"=>2013-11-01 03:23:30 UTC, "created_at"=>2013-11-01 03:23:30 UTC, "entries_custom_fields"=>[{"_id"=>"52731eb287f643e5a200001b", "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.2000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731eb287f643e5a200001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52731eb287f643e5a200001c", "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", "updated_at"=>2013-11-01 03:23:30 UTC, "created_at"=>2013-11-01 03:23:30 UTC}}} flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731eb287f643e5a200001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731eb287f643e5a200001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}}} (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731eb287f643e5a200001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731eb287f643e5a200001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731eb287f643e5a200001a", "content_type_id"=>"52731eb287f643e5a200001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52731eb187f643e5a2000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:23:30 UTC, "created_at"=>2013-11-01 03:23:30 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731eb287f643e5a200001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5307ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731eb287f643e5a200001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}}} (0.4129ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}}} (0.3128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731eb287f643e5a200001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52731eb287f643e5a200001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731eb287f643e5a200001a", "content_type_id"=>"52731eb287f643e5a200001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52731eb187f643e5a2000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:23:30 UTC, "created_at"=>2013-11-01 03:23:30 UTC}] flags=[] (0.2580ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eb187f643e5a2000016", "parent_id"=>"52731eb187f643e5a2000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eb187f643e5a2000018", "site_id"=>"52731eb187f643e5a2000016", "_id"=>{"$ne"=>"52731eb387f643e5a200001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52731eb187f643e5a2000018"}]}]}, "$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"=>"52731eb387f643e5a200001f", "parent_ids"=>["52731eb187f643e5a2000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52731eb187f643e5a2000016", "parent_id"=>"52731eb187f643e5a2000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:31 UTC, "created_at"=>2013-11-01 03:23:31 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "template_dependencies.en"=>{"$in"=>["52731eb387f643e5a200001f"]}}, "$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"=>"52731eb387f643e5a200001f"}, "$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"=>["52731eb387f643e5a200001f"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eb187f643e5a2000016", "parent_id"=>"52731eb187f643e5a2000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eb187f643e5a2000018", "site_id"=>"52731eb187f643e5a2000016", "_id"=>{"$ne"=>"52731eb487f643e5a2000020"}, "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"=>"52731eb187f643e5a2000018", "site_id"=>"52731eb187f643e5a2000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52731eb187f643e5a2000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52731eb487f643e5a2000020", "parent_ids"=>["52731eb187f643e5a2000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52731eb187f643e5a2000016", "parent_id"=>"52731eb187f643e5a2000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:32 UTC, "created_at"=>2013-11-01 03:23:32 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "template_dependencies.en"=>{"$in"=>["52731eb487f643e5a2000020"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52731eb487f643e5a2000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52731eb487f643e5a2000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731eb187f643e5a2000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52731eb187f643e5a2000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:23:32 UTC}} flags=[] (0.2542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "template_dependencies.en"=>{"$in"=>["52731eb187f643e5a2000018"]}}, "$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.6752ms) 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.3412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52731eb587f643e5a2000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:23:21 UTC, "updated_at"=>2013-11-01 03:23:33 UTC, "memberships"=>[{"_id"=>"52731eb587f643e5a2000022", "role"=>"admin", "account_id"=>"52731eb187f643e5a2000015"}]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52731eb587f643e5a2000021", "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"=>"52731eb587f643e5a2000021", "_id"=>{"$ne"=>"52731eb587f643e5a2000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52731eb587f643e5a2000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52731eb587f643e5a2000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:33 UTC, "created_at"=>2013-11-01 03:23:33 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb587f643e5a2000021", "template_dependencies.en"=>{"$in"=>["52731eb587f643e5a2000023"]}}, "$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"=>"52731eb587f643e5a2000023"}, "$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"=>["52731eb587f643e5a2000023"]}} 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"=>"52731eb587f643e5a2000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eb587f643e5a2000021", "_id"=>{"$ne"=>"52731eb587f643e5a2000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eb587f643e5a2000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52731eb587f643e5a2000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52731eb587f643e5a2000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:33 UTC, "created_at"=>2013-11-01 03:23:33 UTC}] flags=[] (0.2868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb587f643e5a2000021", "template_dependencies.en"=>{"$in"=>["52731eb587f643e5a2000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52731eb587f643e5a2000024"}, "$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"=>["52731eb587f643e5a2000024"]}} 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"=>"52731eb587f643e5a2000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"52731eb587f643e5a2000021", "_id"=>{"$ne"=>"52731eb587f643e5a2000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7007ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52731eb587f643e5a2000021"}, "$orderby"=>{"position"=>-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_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"=>"52731eb587f643e5a2000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52731eb587f643e5a2000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:23:33 UTC, "created_at"=>2013-11-01 03:23:33 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb587f643e5a2000021", "template_dependencies.en"=>{"$in"=>["52731eb587f643e5a2000025"]}}, "$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"=>"52731eb587f643e5a2000025"}, "$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"=>["52731eb587f643e5a2000025"]}} 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"=>"52731eb587f643e5a2000021", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52731eb687f643e5a2000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52731eb587f643e5a2000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52731eb687f643e5a2000027", "updated_at"=>2013-11-01 03:23:34 UTC, "created_at"=>2013-11-01 03:23:34 UTC, "entries_custom_fields"=>[{"_id"=>"52731eb687f643e5a2000027", "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.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731eb687f643e5a2000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eb687f643e5a2000026"]}} 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"=>"52731eb687f643e5a2000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52731eb687f643e5a2000026"]}}} (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52731eb687f643e5a2000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52731eb687f643e5a2000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52731eb687f643e5a2000026", "content_type_id"=>"52731eb687f643e5a2000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52731eb587f643e5a2000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:23:34 UTC, "created_at"=>2013-11-01 03:23:34 UTC}] flags=[] (0.2930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52731eb287f643e5a200001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}} 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_content_entries selector={"_id"=>{"$ne"=>"52731eb287f643e5a200001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4597ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}} 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"=>"52731eb287f643e5a200001a"} update={"$set"=>{"updated_at"=>2013-11-01 03:23:35 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0958ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52731eb287f643e5a200001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1080ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:23:35 +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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) 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 2013-11-01 04:23:35 +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.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "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 442.0ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52731eb287f643e5a200001a"} 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_content_entries selector={"content_type_id"=>"52731eb287f643e5a200001a", "updated_at"=>{"$lt"=>2013-11-01 03:23:35 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52731eb287f643e5a200001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731eb187f643e5a2000016"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"52731eb287f643e5a200001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52731eb287f643e5a200001d"} update={"$set"=>{"updated_at"=>2013-11-01 03:23:35 UTC}} flags=[] (0.2286ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52731eb187f643e5a2000016"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"52731eb287f643e5a200001a"}, "$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=locomotive_content_entries selector={"_id"=>"52731eb287f643e5a200001e"} update={"$set"=>{"updated_at"=>2013-11-01 03:23:36 UTC}} flags=[] (0.1891ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 04:23:37 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 04:23:37 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6120ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:23:37 +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.5412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52731eb187f643e5a2000016", "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.7203ms) Rendered text template (0.0ms) Completed 200 OK in 443.4ms (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.6950ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9661ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1249ms) 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.7110ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0502ms) 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.2561ms) 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.5407ms) 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.9308ms) 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.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527324c987f6435b71000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f854f41ebed4727f1ccd5e2774931c48bd2045f2", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Gp6t3oxf2zTX6szoytqb", "api_key"=>"76e2072d32e898d5f831e1283d6b03f2248fec7e", "updated_at"=>2013-11-01 03:49:29 UTC, "created_at"=>2013-11-01 03:49:29 UTC}] flags=[] (0.2561ms) 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.9329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527324c987f6435b71000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:49:28 UTC, "updated_at"=>2013-11-01 03:49:29 UTC, "memberships"=>[{"_id"=>"527324c987f6435b71000003", "role"=>"admin", "account_id"=>"527324c987f6435b71000001"}]}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324c987f6435b71000002", "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"=>"527324c987f6435b71000002", "_id"=>{"$ne"=>"527324c987f6435b71000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324c987f6435b71000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527324c987f6435b71000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:29 UTC, "created_at"=>2013-11-01 03:49:29 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324c987f6435b71000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "template_dependencies.en"=>{"$in"=>["527324c987f6435b71000004"]}}, "$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"=>["527324c987f6435b71000004"]}} 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=locomotive_pages selector={"site_id"=>"527324c987f6435b71000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324c987f6435b71000002", "_id"=>{"$ne"=>"527324c987f6435b71000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324c987f6435b71000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324c987f6435b71000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527324c987f6435b71000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:29 UTC, "created_at"=>2013-11-01 03:49:29 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "template_dependencies.en"=>{"$in"=>["527324c987f6435b71000005"]}}, "$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"=>"527324c987f6435b71000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324c987f6435b71000005"]}} 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"=>"527324c987f6435b71000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527324c987f6435b71000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527324c987f6435b71000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527324c987f6435b71000007", "updated_at"=>2013-11-01 03:49:29 UTC, "created_at"=>2013-11-01 03:49:29 UTC, "entries_custom_fields"=>[{"_id"=>"527324c987f6435b71000007", "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.2828ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527324c987f6435b71000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527324c987f6435b71000008", "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", "updated_at"=>2013-11-01 03:49:29 UTC, "created_at"=>2013-11-01 03:49:29 UTC}}} flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324c987f6435b71000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527324c987f6435b71000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527324c987f6435b71000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324c987f6435b71000006"]}}} (0.3989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527324c987f6435b71000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527324c987f6435b71000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527324c987f6435b71000006", "content_type_id"=>"527324c987f6435b71000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527324c987f6435b71000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:49:29 UTC, "created_at"=>2013-11-01 03:49:29 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324ca87f6435b7100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527324c987f6435b71000006"]}} 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"=>"527324c987f6435b71000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4079ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324c987f6435b71000006"]}}} (0.4938ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324c987f6435b71000006"]}}} (0.5682ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324c987f6435b71000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527324ca87f6435b7100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527324c987f6435b71000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527324c987f6435b71000006", "content_type_id"=>"527324c987f6435b71000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527324c987f6435b71000002", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:49:30 UTC, "created_at"=>2013-11-01 03:49:30 UTC}] flags=[] (0.2511ms) 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.8838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324c987f6435b71000002", "parent_id"=>"527324c987f6435b71000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324c987f6435b71000004", "site_id"=>"527324c987f6435b71000002", "_id"=>{"$ne"=>"527324cb87f6435b7100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527324c987f6435b71000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324cb87f6435b7100000b", "parent_ids"=>["527324c987f6435b71000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527324c987f6435b71000002", "parent_id"=>"527324c987f6435b71000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:31 UTC, "created_at"=>2013-11-01 03:49:31 UTC}] flags=[] (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "template_dependencies.en"=>{"$in"=>["527324cb87f6435b7100000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527324cb87f6435b7100000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6509ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324cb87f6435b7100000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1991ms) 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.9470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324c987f6435b71000002", "parent_id"=>"527324c987f6435b71000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324c987f6435b71000004", "site_id"=>"527324c987f6435b71000002", "_id"=>{"$ne"=>"527324cb87f6435b7100000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324c987f6435b71000004", "site_id"=>"527324c987f6435b71000002"}, "$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"=>"527324c987f6435b71000004"}]}]}, "$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"=>"527324cb87f6435b7100000c", "parent_ids"=>["527324c987f6435b71000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527324c987f6435b71000002", "parent_id"=>"527324c987f6435b71000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:31 UTC, "created_at"=>2013-11-01 03:49:31 UTC}] flags=[] (0.3169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "template_dependencies.en"=>{"$in"=>["527324cb87f6435b7100000c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527324cb87f6435b7100000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4222ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324cb87f6435b7100000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1264ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527324c987f6435b71000002"}, "$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"=>"527324c987f6435b71000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:49:32 UTC}} flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "template_dependencies.en"=>{"$in"=>["527324c987f6435b71000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) 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.6800ms) 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.4220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527324cc87f6435b7100000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:49:28 UTC, "updated_at"=>2013-11-01 03:49:32 UTC, "memberships"=>[{"_id"=>"527324cc87f6435b7100000e", "role"=>"admin", "account_id"=>"527324c987f6435b71000001"}]}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324cc87f6435b7100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324cc87f6435b7100000d", "_id"=>{"$ne"=>"527324cc87f6435b7100000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527324cc87f6435b7100000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527324cc87f6435b7100000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:32 UTC, "created_at"=>2013-11-01 03:49:32 UTC}] flags=[] (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324cc87f6435b7100000d", "template_dependencies.en"=>{"$in"=>["527324cc87f6435b7100000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324cc87f6435b7100000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324cc87f6435b7100000f"]}} 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"=>"527324cc87f6435b7100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324cc87f6435b7100000d", "_id"=>{"$ne"=>"527324cd87f6435b71000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324cc87f6435b7100000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324cd87f6435b71000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527324cc87f6435b7100000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:33 UTC, "created_at"=>2013-11-01 03:49:33 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324cc87f6435b7100000d", "template_dependencies.en"=>{"$in"=>["527324cd87f6435b71000010"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"527324cd87f6435b71000010"}, "$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"=>["527324cd87f6435b71000010"]}} 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={"site_id"=>"527324cc87f6435b7100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324cc87f6435b7100000d", "_id"=>{"$ne"=>"527324cd87f6435b71000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9773ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324cc87f6435b7100000d"}, "$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.3641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324cd87f6435b71000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527324cc87f6435b7100000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:33 UTC, "created_at"=>2013-11-01 03:49:33 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324cc87f6435b7100000d", "template_dependencies.en"=>{"$in"=>["527324cd87f6435b71000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324cd87f6435b71000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324cd87f6435b71000011"]}} 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_content_types selector={"site_id"=>"527324cc87f6435b7100000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527324ce87f6435b71000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527324cc87f6435b7100000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527324ce87f6435b71000013", "updated_at"=>2013-11-01 03:49:34 UTC, "created_at"=>2013-11-01 03:49:34 UTC, "entries_custom_fields"=>[{"_id"=>"527324ce87f6435b71000013", "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.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324ce87f6435b71000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527324ce87f6435b71000012"]}} 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"=>"527324ce87f6435b71000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324ce87f6435b71000012"]}}} (0.4978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527324ce87f6435b71000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527324ce87f6435b71000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527324ce87f6435b71000012", "content_type_id"=>"527324ce87f6435b71000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527324cc87f6435b7100000d", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:49:34 UTC, "created_at"=>2013-11-01 03:49:34 UTC}] flags=[] (0.2079ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:49:34 +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 (1.5023ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1921ms) Rendered text template (0.0ms) Completed 200 OK in 31.3ms (Views: 19.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-01 04:49:34 +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 (1.0769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "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.2512ms) Rendered text template (0.0ms) Completed 200 OK in 449.2ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-11-01 04:49:35 +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 (1.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "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.6447ms) Rendered text template (0.0ms) Completed 200 OK in 7.1ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:49:35 +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.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) 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 2013-11-01 04:49:35 +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.7763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324c987f6435b71000002", "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.5822ms) Rendered text template (0.0ms) Completed 200 OK in 435.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.6690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9651ms) 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=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8619ms) 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.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527324d087f6435b71000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"345375bc9e1c8aab03869ae0df5f33e796f0b74e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7U2ruHuXKz9PPrpsVpPJ", "api_key"=>"400e0a7e7060083b65d4f1556cfcac6c4f7c07cc", "updated_at"=>2013-11-01 03:49:36 UTC, "created_at"=>2013-11-01 03:49:36 UTC}] flags=[] (0.1218ms) 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.8781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527324d087f6435b71000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-01 03:49:28 UTC, "updated_at"=>2013-11-01 03:49:36 UTC, "memberships"=>[{"_id"=>"527324d087f6435b71000017", "role"=>"admin", "account_id"=>"527324d087f6435b71000015"}]}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324d087f6435b71000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d087f6435b71000016", "_id"=>{"$ne"=>"527324d087f6435b71000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324d087f6435b71000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527324d087f6435b71000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:36 UTC, "created_at"=>2013-11-01 03:49:36 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "template_dependencies.en"=>{"$in"=>["527324d087f6435b71000018"]}}, "$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"=>"527324d087f6435b71000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324d087f6435b71000018"]}} 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"=>"527324d087f6435b71000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d087f6435b71000016", "_id"=>{"$ne"=>"527324d087f6435b71000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d087f6435b71000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324d087f6435b71000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527324d087f6435b71000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:36 UTC, "created_at"=>2013-11-01 03:49:36 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "template_dependencies.en"=>{"$in"=>["527324d087f6435b71000019"]}}, "$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"=>"527324d087f6435b71000019"}, "$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"=>["527324d087f6435b71000019"]}} 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_content_types selector={"site_id"=>"527324d087f6435b71000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527324d087f6435b7100001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527324d087f6435b71000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527324d087f6435b7100001b", "updated_at"=>2013-11-01 03:49:36 UTC, "created_at"=>2013-11-01 03:49:36 UTC, "entries_custom_fields"=>[{"_id"=>"527324d087f6435b7100001b", "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.2029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527324d087f6435b7100001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527324d087f6435b7100001c", "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", "updated_at"=>2013-11-01 03:49:36 UTC, "created_at"=>2013-11-01 03:49:36 UTC}}} flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324d087f6435b7100001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527324d087f6435b7100001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5252ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}}} (0.5231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527324d087f6435b7100001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527324d087f6435b7100001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527324d087f6435b7100001a", "content_type_id"=>"527324d087f6435b7100001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527324d087f6435b71000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:49:36 UTC, "created_at"=>2013-11-01 03:49:36 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324d187f6435b7100001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527324d087f6435b7100001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}}} (0.9840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}}} (0.5319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2057ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527324d187f6435b7100001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527324d087f6435b7100001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527324d087f6435b7100001a", "content_type_id"=>"527324d087f6435b7100001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527324d087f6435b71000016", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:49:37 UTC, "created_at"=>2013-11-01 03:49:37 UTC}] flags=[] (0.3312ms) 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.4472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324d087f6435b71000016", "parent_id"=>"527324d087f6435b71000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8483ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324d087f6435b71000018", "site_id"=>"527324d087f6435b71000016", "_id"=>{"$ne"=>"527324d287f6435b7100001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527324d087f6435b71000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324d287f6435b7100001f", "parent_ids"=>["527324d087f6435b71000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527324d087f6435b71000016", "parent_id"=>"527324d087f6435b71000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:38 UTC, "created_at"=>2013-11-01 03:49:38 UTC}] flags=[] (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "template_dependencies.en"=>{"$in"=>["527324d287f6435b7100001f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527324d287f6435b7100001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324d287f6435b7100001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2530ms) 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.9270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324d087f6435b71000016", "parent_id"=>"527324d087f6435b71000018", "$or"=>[{"slug.en"=>"search"}]} 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"=>"527324d087f6435b71000018", "site_id"=>"527324d087f6435b71000016", "_id"=>{"$ne"=>"527324d287f6435b71000020"}, "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"=>"527324d087f6435b71000018", "site_id"=>"527324d087f6435b71000016"}, "$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"=>"527324d087f6435b71000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5167ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324d287f6435b71000020", "parent_ids"=>["527324d087f6435b71000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527324d087f6435b71000016", "parent_id"=>"527324d087f6435b71000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:38 UTC, "created_at"=>2013-11-01 03:49:38 UTC}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "template_dependencies.en"=>{"$in"=>["527324d287f6435b71000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527324d287f6435b71000020"}, "$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"=>["527324d287f6435b71000020"]}} 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={"$query"=>{"site_id"=>"527324d087f6435b71000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"527324d087f6435b71000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527324d087f6435b71000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-01 03:49:39 UTC}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "template_dependencies.en"=>{"$in"=>["527324d087f6435b71000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) 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.7598ms) 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.6931ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527324d387f6435b71000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-01 03:49:28 UTC, "updated_at"=>2013-11-01 03:49:39 UTC, "memberships"=>[{"_id"=>"527324d387f6435b71000022", "role"=>"admin", "account_id"=>"527324d087f6435b71000015"}]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527324d387f6435b71000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d387f6435b71000021", "_id"=>{"$ne"=>"527324d387f6435b71000023"}, "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"=>"527324d387f6435b71000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527324d387f6435b71000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:39 UTC, "created_at"=>2013-11-01 03:49:39 UTC}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d387f6435b71000021", "template_dependencies.en"=>{"$in"=>["527324d387f6435b71000023"]}}, "$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"=>"527324d387f6435b71000023"}, "$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"=>["527324d387f6435b71000023"]}} 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"=>"527324d387f6435b71000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d387f6435b71000021", "_id"=>{"$ne"=>"527324d487f6435b71000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d387f6435b71000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324d487f6435b71000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527324d387f6435b71000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:40 UTC, "created_at"=>2013-11-01 03:49:40 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d387f6435b71000021", "template_dependencies.en"=>{"$in"=>["527324d487f6435b71000024"]}}, "$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"=>"527324d487f6435b71000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324d487f6435b71000024"]}} 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"=>"527324d387f6435b71000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527324d387f6435b71000021", "_id"=>{"$ne"=>"527324d487f6435b71000025"}, "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"=>"527324d387f6435b71000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527324d487f6435b71000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527324d387f6435b71000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-01 03:49:40 UTC, "created_at"=>2013-11-01 03:49:40 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d387f6435b71000021", "template_dependencies.en"=>{"$in"=>["527324d487f6435b71000025"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"527324d487f6435b71000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527324d487f6435b71000025"]}} 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"=>"527324d387f6435b71000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527324d587f6435b71000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527324d387f6435b71000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527324d587f6435b71000027", "updated_at"=>2013-11-01 03:49:41 UTC, "created_at"=>2013-11-01 03:49:41 UTC, "entries_custom_fields"=>[{"_id"=>"527324d587f6435b71000027", "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.3767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324d587f6435b71000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527324d587f6435b71000026"]}} 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"=>"527324d587f6435b71000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4878ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527324d587f6435b71000026"]}}} (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527324d587f6435b71000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527324d587f6435b71000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527324d587f6435b71000026", "content_type_id"=>"527324d587f6435b71000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527324d387f6435b71000021", "_label_field_name"=>"name", "updated_at"=>2013-11-01 03:49:41 UTC, "created_at"=>2013-11-01 03:49:41 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324d087f6435b7100001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527324d187f6435b7100001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2422ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527324d087f6435b7100001a"} update={"$set"=>{"updated_at"=>2013-11-01 03:49:41 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527324d087f6435b7100001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2680ms) Started GET "/" for 127.0.0.1 at 2013-11-01 04:49: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.9708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7827ms) Rendered text template (0.0ms) Completed 200 OK in 8.7ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:49:41 +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.6533ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "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.6218ms) Rendered text template (0.0ms) Completed 200 OK in 435.2ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527324d087f6435b7100001a"} 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"=>"527324d087f6435b7100001a", "updated_at"=>{"$lt"=>2013-11-01 03:49:41 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527324d087f6435b7100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527324d087f6435b71000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"$query"=>{"_id"=>"527324d087f6435b7100001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527324d087f6435b7100001d"} update={"$set"=>{"updated_at"=>2013-11-01 03:49:42 UTC}} flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527324d087f6435b71000016"}, "$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_content_types selector={"$query"=>{"_id"=>"527324d087f6435b7100001a"}, "$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_content_entries selector={"_id"=>"527324d187f6435b7100001e"} update={"$set"=>{"updated_at"=>2013-11-01 03:49:42 UTC}} flags=[] (0.1550ms) Started GET "/en/" for 127.0.0.1 at 2013-11-01 04:49:43 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-01 04:49:43 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"527324d087f6435b71000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6258ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-01 04:49:43 +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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527324d087f6435b71000016", "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.8111ms) Rendered text template (0.0ms) Completed 200 OK in 443.7ms (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.7238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5843ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.3901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.2442ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5218ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1818ms) 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 (7.1619ms) 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 (6.3801ms) 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 (9.0759ms) 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.5281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275750587f6434c56000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"435c2e9abee51aa30355703f2ce8d58eb546b0da", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"c7wu9Uhsuq4mVcBccjVe", "api_key"=>"40b77b175ed580e0fca8d1b8907c4687861d7919", "updated_at"=>2013-11-02 21:56:21 UTC, "created_at"=>2013-11-02 21:56:21 UTC}] flags=[] (0.1862ms) 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} (37.5640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275750587f6434c56000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 21:56:21 UTC, "updated_at"=>2013-11-02 21:56:21 UTC, "memberships"=>[{"_id"=>"5275750587f6434c56000003", "role"=>"admin", "account_id"=>"5275750587f6434c56000001"}]}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750587f6434c56000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (5.6651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750587f6434c56000002", "_id"=>{"$ne"=>"5275750687f6434c56000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750687f6434c56000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275750587f6434c56000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:22 UTC, "created_at"=>2013-11-02 21:56:22 UTC}] flags=[] (0.3603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750687f6434c56000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.0372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "template_dependencies.en"=>{"$in"=>["5275750687f6434c56000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750687f6434c56000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750587f6434c56000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750587f6434c56000002", "_id"=>{"$ne"=>"5275750687f6434c56000005"}, "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"=>"5275750587f6434c56000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5275750687f6434c56000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275750587f6434c56000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:22 UTC, "created_at"=>2013-11-02 21:56:22 UTC}] flags=[] (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "template_dependencies.en"=>{"$in"=>["5275750687f6434c56000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750687f6434c56000005"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5275750687f6434c56000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275750587f6434c56000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275750687f6434c56000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275750587f6434c56000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275750687f6434c56000007", "updated_at"=>2013-11-02 21:56:22 UTC, "created_at"=>2013-11-02 21:56:22 UTC, "entries_custom_fields"=>[{"_id"=>"5275750687f6434c56000007", "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.2449ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275750687f6434c56000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275750687f6434c56000008", "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", "updated_at"=>2013-11-02 21:56:22 UTC, "created_at"=>2013-11-02 21:56:22 UTC}}} flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275750687f6434c56000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750687f6434c56000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (26.0701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275750687f6434c56000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5529ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750687f6434c56000006"]}}} (0.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275750687f6434c56000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275750687f6434c56000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275750687f6434c56000006", "content_type_id"=>"5275750687f6434c56000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275750587f6434c56000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 21:56:22 UTC, "created_at"=>2013-11-02 21:56:22 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275750787f6434c5600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750687f6434c56000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275750687f6434c56000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6632ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750687f6434c56000006"]}}} (0.9770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750687f6434c56000006"]}}} (0.4342ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750687f6434c56000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (8.1170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275750787f6434c5600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275750687f6434c56000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275750687f6434c56000006", "content_type_id"=>"5275750687f6434c56000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275750587f6434c56000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 21:56:23 UTC, "created_at"=>2013-11-02 21:56:23 UTC}] flags=[] (0.4909ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750587f6434c56000002", "parent_id"=>"5275750687f6434c56000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750687f6434c56000004", "site_id"=>"5275750587f6434c56000002", "_id"=>{"$ne"=>"5275750887f6434c5600000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5275750687f6434c56000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750887f6434c5600000b", "parent_ids"=>["5275750687f6434c56000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275750587f6434c56000002", "parent_id"=>"5275750687f6434c56000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:24 UTC, "created_at"=>2013-11-02 21:56:24 UTC}] flags=[] (0.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "template_dependencies.en"=>{"$in"=>["5275750887f6434c5600000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750887f6434c5600000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750887f6434c5600000b"]}} 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 (1.6091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750587f6434c56000002", "parent_id"=>"5275750687f6434c56000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750687f6434c56000004", "site_id"=>"5275750587f6434c56000002", "_id"=>{"$ne"=>"5275750887f6434c5600000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750687f6434c56000004", "site_id"=>"5275750587f6434c56000002"}, "$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"=>"5275750687f6434c56000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7617ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750887f6434c5600000c", "parent_ids"=>["5275750687f6434c56000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275750587f6434c56000002", "parent_id"=>"5275750687f6434c56000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:24 UTC, "created_at"=>2013-11-02 21:56:24 UTC}] flags=[] (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "template_dependencies.en"=>{"$in"=>["5275750887f6434c5600000c"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5275750887f6434c5600000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750887f6434c5600000c"]}} 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_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275750587f6434c56000002"}, "$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"=>"5275750687f6434c56000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 21:56:25 UTC}} flags=[] (0.1798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "template_dependencies.en"=>{"$in"=>["5275750687f6434c56000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6292ms) 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"=>"5275750987f6434c5600000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 21:56:21 UTC, "updated_at"=>2013-11-02 21:56:25 UTC, "memberships"=>[{"_id"=>"5275750987f6434c5600000e", "role"=>"admin", "account_id"=>"5275750587f6434c56000001"}]}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750987f6434c5600000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750987f6434c5600000d", "_id"=>{"$ne"=>"5275750987f6434c5600000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5275750987f6434c5600000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275750987f6434c5600000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:25 UTC, "created_at"=>2013-11-02 21:56:25 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750987f6434c5600000d", "template_dependencies.en"=>{"$in"=>["5275750987f6434c5600000f"]}}, "$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"=>"5275750987f6434c5600000f"}, "$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"=>["5275750987f6434c5600000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750987f6434c5600000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750987f6434c5600000d", "_id"=>{"$ne"=>"5275750a87f6434c56000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750987f6434c5600000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750a87f6434c56000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275750987f6434c5600000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:26 UTC, "created_at"=>2013-11-02 21:56:26 UTC}] flags=[] (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750987f6434c5600000d", "template_dependencies.en"=>{"$in"=>["5275750a87f6434c56000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750a87f6434c56000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1058ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750a87f6434c56000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750987f6434c5600000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5275750987f6434c5600000d", "_id"=>{"$ne"=>"5275750a87f6434c56000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5275750987f6434c5600000d"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750a87f6434c56000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275750987f6434c5600000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:26 UTC, "created_at"=>2013-11-02 21:56:26 UTC}] flags=[] (0.2892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750987f6434c5600000d", "template_dependencies.en"=>{"$in"=>["5275750a87f6434c56000011"]}}, "$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"=>"5275750a87f6434c56000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750a87f6434c56000011"]}} 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"=>"5275750987f6434c5600000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4733ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275750b87f6434c56000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275750987f6434c5600000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275750b87f6434c56000013", "updated_at"=>2013-11-02 21:56:27 UTC, "created_at"=>2013-11-02 21:56:27 UTC, "entries_custom_fields"=>[{"_id"=>"5275750b87f6434c56000013", "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"=>"5275750b87f6434c56000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750b87f6434c56000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275750b87f6434c56000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750b87f6434c56000012"]}}} (0.4730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275750b87f6434c56000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275750b87f6434c56000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275750b87f6434c56000012", "content_type_id"=>"5275750b87f6434c56000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275750987f6434c5600000d", "_label_field_name"=>"name", "updated_at"=>2013-11-02 21:56:27 UTC, "created_at"=>2013-11-02 21:56:27 UTC}] flags=[] (0.1700ms) Started GET "/" for 127.0.0.1 at 2013-11-02 22:56: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.7792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2469ms) Rendered text template (0.0ms) Completed 200 OK in 24.2ms (Views: 15.7ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 22:56:27 +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.6382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "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.8452ms) Rendered text template (0.0ms) Completed 200 OK in 442.9ms (Views: 0.9ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 22:56:28 +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.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "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.9ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-02 22:56: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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) 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 2013-11-02 22:56:28 +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.5288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750587f6434c56000002", "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.5319ms) Rendered text template (0.0ms) Completed 200 OK in 425.8ms (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.5848ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (12.0251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (12.2631ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (7.2622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (6.7718ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.5380ms) 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.5090ms) 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.7632ms) 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.3572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275750d87f6434c56000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"dcfa2a05aef8d305eb54b4c2311fe86d32ba0128", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"CzqNmzBafwxGs7SK1aGU", "api_key"=>"c9e76b3e570b90bc87695f1256098745035972dc", "updated_at"=>2013-11-02 21:56:29 UTC, "created_at"=>2013-11-02 21:56:29 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} (0.7932ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275750d87f6434c56000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 21:56:21 UTC, "updated_at"=>2013-11-02 21:56:29 UTC, "memberships"=>[{"_id"=>"5275750d87f6434c56000017", "role"=>"admin", "account_id"=>"5275750d87f6434c56000015"}]}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750d87f6434c56000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750d87f6434c56000016", "_id"=>{"$ne"=>"5275750d87f6434c56000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750d87f6434c56000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275750d87f6434c56000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:29 UTC, "created_at"=>2013-11-02 21:56:29 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "template_dependencies.en"=>{"$in"=>["5275750d87f6434c56000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275750d87f6434c56000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750d87f6434c56000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750d87f6434c56000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750d87f6434c56000016", "_id"=>{"$ne"=>"5275750d87f6434c56000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275750d87f6434c56000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750d87f6434c56000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275750d87f6434c56000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:29 UTC, "created_at"=>2013-11-02 21:56:29 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "template_dependencies.en"=>{"$in"=>["5275750d87f6434c56000019"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275750d87f6434c56000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275750d87f6434c56000019"]}} 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"=>"5275750d87f6434c56000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275750d87f6434c5600001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275750d87f6434c56000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275750d87f6434c5600001b", "updated_at"=>2013-11-02 21:56:29 UTC, "created_at"=>2013-11-02 21:56:29 UTC, "entries_custom_fields"=>[{"_id"=>"5275750d87f6434c5600001b", "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.2112ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275750d87f6434c5600001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275750d87f6434c5600001c", "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", "updated_at"=>2013-11-02 21:56:29 UTC, "created_at"=>2013-11-02 21:56:29 UTC}}} flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275750d87f6434c5600001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}} 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={"content_type_id"=>"5275750d87f6434c5600001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}}} (0.5767ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275750d87f6434c5600001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275750d87f6434c5600001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275750d87f6434c5600001a", "content_type_id"=>"5275750d87f6434c5600001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275750d87f6434c56000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 21:56:29 UTC, "created_at"=>2013-11-02 21:56:29 UTC}] flags=[] (0.1826ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275750e87f6434c5600001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}} 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"=>"5275750d87f6434c5600001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}}} (0.5240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}}} (0.3109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275750e87f6434c5600001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275750d87f6434c5600001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275750d87f6434c5600001a", "content_type_id"=>"5275750d87f6434c5600001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275750d87f6434c56000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 21:56:30 UTC, "created_at"=>2013-11-02 21:56:30 UTC}] flags=[] (0.1709ms) 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.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275750d87f6434c56000016", "parent_id"=>"5275750d87f6434c56000018", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5275750d87f6434c56000018", "site_id"=>"5275750d87f6434c56000016", "_id"=>{"$ne"=>"5275750f87f6434c5600001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275750d87f6434c56000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750f87f6434c5600001f", "parent_ids"=>["5275750d87f6434c56000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275750d87f6434c56000016", "parent_id"=>"5275750d87f6434c56000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:31 UTC, "created_at"=>2013-11-02 21:56:31 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "template_dependencies.en"=>{"$in"=>["5275750f87f6434c5600001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750f87f6434c5600001f"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5275750f87f6434c5600001f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1206ms) 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"=>"5275750d87f6434c56000016", "parent_id"=>"5275750d87f6434c56000018", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5275750d87f6434c56000018", "site_id"=>"5275750d87f6434c56000016", "_id"=>{"$ne"=>"5275750f87f6434c56000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275750d87f6434c56000018", "site_id"=>"5275750d87f6434c56000016"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5275750d87f6434c56000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275750f87f6434c56000020", "parent_ids"=>["5275750d87f6434c56000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275750d87f6434c56000016", "parent_id"=>"5275750d87f6434c56000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:31 UTC, "created_at"=>2013-11-02 21:56:31 UTC}] flags=[] (0.2372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "template_dependencies.en"=>{"$in"=>["5275750f87f6434c56000020"]}}, "$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"=>"5275750f87f6434c56000020"}, "$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"=>["5275750f87f6434c56000020"]}} 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"=>{"site_id"=>"5275750d87f6434c56000016", "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_sites selector={"$query"=>{"_id"=>"5275750d87f6434c56000016"}, "$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_pages selector={"_id"=>"5275750d87f6434c56000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 21:56:32 UTC}} flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "template_dependencies.en"=>{"$in"=>["5275750d87f6434c56000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6168ms) 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.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275751087f6434c56000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 21:56:21 UTC, "updated_at"=>2013-11-02 21:56:32 UTC, "memberships"=>[{"_id"=>"5275751087f6434c56000022", "role"=>"admin", "account_id"=>"5275750d87f6434c56000015"}]}] flags=[] (0.4053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275751087f6434c56000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275751087f6434c56000021", "_id"=>{"$ne"=>"5275751087f6434c56000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275751087f6434c56000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275751087f6434c56000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:32 UTC, "created_at"=>2013-11-02 21:56:32 UTC}] flags=[] (0.3252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275751087f6434c56000021", "template_dependencies.en"=>{"$in"=>["5275751087f6434c56000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275751087f6434c56000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275751087f6434c56000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275751087f6434c56000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275751087f6434c56000021", "_id"=>{"$ne"=>"5275751187f6434c56000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275751087f6434c56000021"}, "$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"=>"5275751187f6434c56000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275751087f6434c56000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:33 UTC, "created_at"=>2013-11-02 21:56:33 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275751087f6434c56000021", "template_dependencies.en"=>{"$in"=>["5275751187f6434c56000024"]}}, "$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"=>"5275751187f6434c56000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275751187f6434c56000024"]}} 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_pages selector={"site_id"=>"5275751087f6434c56000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275751087f6434c56000021", "_id"=>{"$ne"=>"5275751187f6434c56000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.7976ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275751087f6434c56000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5717ms) 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.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275751187f6434c56000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275751087f6434c56000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 21:56:33 UTC, "created_at"=>2013-11-02 21:56:33 UTC}] flags=[] (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275751087f6434c56000021", "template_dependencies.en"=>{"$in"=>["5275751187f6434c56000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275751187f6434c56000025"}, "$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"=>["5275751187f6434c56000025"]}} 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_content_types selector={"site_id"=>"5275751087f6434c56000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275751287f6434c56000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275751087f6434c56000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275751287f6434c56000027", "updated_at"=>2013-11-02 21:56:34 UTC, "created_at"=>2013-11-02 21:56:34 UTC, "entries_custom_fields"=>[{"_id"=>"5275751287f6434c56000027", "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.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275751287f6434c56000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275751287f6434c56000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275751287f6434c56000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275751287f6434c56000026"]}}} (0.9630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275751287f6434c56000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275751287f6434c56000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275751287f6434c56000026", "content_type_id"=>"5275751287f6434c56000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275751087f6434c56000021", "_label_field_name"=>"name", "updated_at"=>2013-11-02 21:56:34 UTC, "created_at"=>2013-11-02 21:56:34 UTC}] flags=[] (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275750d87f6434c5600001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}} 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_entries selector={"_id"=>{"$ne"=>"5275750e87f6434c5600001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275750d87f6434c5600001a"} update={"$set"=>{"updated_at"=>2013-11-02 21:56:34 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275750d87f6434c5600001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1547ms) Started GET "/" for 127.0.0.1 at 2013-11-02 22:56:34 +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 (1.6179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8800ms) Rendered text template (0.0ms) Completed 200 OK in 10.0ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 22:56:34 +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.2002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "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.7358ms) Rendered text template (0.0ms) Completed 200 OK in 436.4ms (Views: 1.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275750d87f6434c5600001a"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275750d87f6434c5600001a", "updated_at"=>{"$lt"=>2013-11-02 21:56:34 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5275750d87f6434c5600001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275750d87f6434c56000016"}, "$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_content_types selector={"$query"=>{"_id"=>"5275750d87f6434c5600001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9279ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5275750d87f6434c5600001d"} update={"$set"=>{"updated_at"=>2013-11-02 21:56:35 UTC}} flags=[] (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275750d87f6434c56000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5275750d87f6434c5600001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7851ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5275750e87f6434c5600001e"} update={"$set"=>{"updated_at"=>2013-11-02 21:56:35 UTC}} flags=[] (0.4849ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 22:56:36 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 22:56:36 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "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 7.0ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 22:56:36 +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.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275750d87f6434c56000016", "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.7370ms) Rendered text template (0.0ms) Completed 200 OK in 433.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.6282ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4329ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.2631ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.8818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.0521ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (6.1839ms) 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.4012ms) 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.6802ms) 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.8570ms) 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} (2.0790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275770187f6431af5000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2e30d8f682c8e613c6c42c73452de69d177ab2e6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"rAgf4nAepHpWT4qPMizq", "api_key"=>"e8cb94e4a248301553ecab11b556cb1c197ce813", "updated_at"=>2013-11-02 22:04:49 UTC, "created_at"=>2013-11-02 22:04:49 UTC}] flags=[] (0.4759ms) 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} (2.9113ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275770187f6431af5000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:04:49 UTC, "updated_at"=>2013-11-02 22:04:49 UTC, "memberships"=>[{"_id"=>"5275770187f6431af5000003", "role"=>"admin", "account_id"=>"5275770187f6431af5000001"}]}] flags=[] (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770187f6431af5000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.1210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770187f6431af5000002", "_id"=>{"$ne"=>"5275770287f6431af5000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6192ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275770287f6431af5000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275770187f6431af5000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (1.3461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000004"]}}, "$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"=>["5275770287f6431af5000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.8009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770287f6431af5000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275770187f6431af5000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770187f6431af5000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770187f6431af5000002", "_id"=>{"$ne"=>"5275770287f6431af5000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770187f6431af5000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275770287f6431af5000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275770187f6431af5000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"5275770287f6431af5000006"}, "$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"=>["5275770287f6431af5000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275770187f6431af5000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.7769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275770287f6431af5000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275770187f6431af5000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275770287f6431af5000008", "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC, "entries_custom_fields"=>[{"_id"=>"5275770287f6431af5000008", "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.6018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275770287f6431af5000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275770287f6431af5000009", "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", "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}}} flags=[] (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275770287f6431af500000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275770287f6431af5000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275770287f6431af5000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5369ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275770287f6431af5000007"]}}} (1.1349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275770287f6431af500000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275770287f6431af5000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275770287f6431af5000007", "content_type_id"=>"5275770287f6431af5000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275770187f6431af5000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275770287f6431af5000007", "_original_id"=>"5275770287f6431af500000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770287f6431af500000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275770187f6431af5000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275770287f6431af5000007", "_original_id"=>"5275770287f6431af500000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275770287f6431af500000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275770287f6431af5000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5193ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275770287f6431af5000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275770287f6431af5000007"]}}} (1.1592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275770287f6431af5000007"]}}} (0.4289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275770287f6431af5000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.0529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275770287f6431af500000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275770287f6431af5000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275770287f6431af5000007", "content_type_id"=>"5275770287f6431af5000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275770187f6431af5000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.3529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275770287f6431af5000007", "_original_id"=>"5275770287f6431af500000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5114ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770287f6431af500000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275770187f6431af5000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275770287f6431af5000007", "_original_id"=>"5275770287f6431af500000c", "_keywords"=>["hidden"]}] flags=[] (0.1781ms) 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.5390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770187f6431af5000002", "parent_id"=>"5275770287f6431af5000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000004", "site_id"=>"5275770187f6431af5000002", "_id"=>{"$ne"=>"5275770287f6431af500000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275770287f6431af5000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6298ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275770287f6431af500000e", "parent_ids"=>["5275770287f6431af5000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275770187f6431af5000002", "parent_id"=>"5275770287f6431af5000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002", "template_dependencies.en"=>{"$in"=>["5275770287f6431af500000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af500000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2009ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275770287f6431af500000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af500000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770287f6431af500000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5275770187f6431af5000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af500000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.5550ms) 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 (4.4632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770187f6431af5000002", "parent_id"=>"5275770287f6431af5000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000004", "site_id"=>"5275770187f6431af5000002", "_id"=>{"$ne"=>"5275770287f6431af5000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.7730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000004", "site_id"=>"5275770187f6431af5000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5275770287f6431af5000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3959ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275770287f6431af5000010", "parent_ids"=>["5275770287f6431af5000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275770187f6431af5000002", "parent_id"=>"5275770287f6431af5000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3213ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275770287f6431af5000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5882ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770287f6431af5000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5275770187f6431af5000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000010", "_keywords"=>["en:search"]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275770187f6431af5000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9100ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5275770287f6431af5000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:04:50 UTC}} flags=[] (0.2918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7372ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275770287f6431af5000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275770187f6431af5000002"}}} flags=[] (0.2949ms) 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.0591ms) 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"=>"5275770287f6431af5000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:04:49 UTC, "updated_at"=>2013-11-02 22:04:50 UTC, "memberships"=>[{"_id"=>"5275770287f6431af5000013", "role"=>"admin", "account_id"=>"5275770187f6431af5000001"}]}] flags=[] (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770287f6431af5000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770287f6431af5000012", "_id"=>{"$ne"=>"5275770287f6431af5000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.2749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275770287f6431af5000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275770287f6431af5000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770287f6431af5000012", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000014"]}}, "$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"=>"5275770287f6431af5000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275770287f6431af5000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770287f6431af5000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275770287f6431af5000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770287f6431af5000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770287f6431af5000012", "_id"=>{"$ne"=>"5275770287f6431af5000016"}, "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"=>nil, "site_id"=>"5275770287f6431af5000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275770287f6431af5000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275770287f6431af5000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:50 UTC, "created_at"=>2013-11-02 22:04:50 UTC}] flags=[] (0.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770287f6431af5000012", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000016"}, "$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"=>["5275770287f6431af5000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275770287f6431af5000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770287f6431af5000012", "_id"=>{"$ne"=>"5275770287f6431af5000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275770287f6431af5000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$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"=>"5275770287f6431af5000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275770287f6431af5000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:04:51 UTC, "created_at"=>2013-11-02 22:04:51 UTC}] flags=[] (0.7963ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770287f6431af5000012", "template_dependencies.en"=>{"$in"=>["5275770287f6431af5000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.3811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275770287f6431af5000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5118ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275770287f6431af5000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.4180ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770387f6431af5000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5275770287f6431af5000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275770287f6431af5000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275770287f6431af5000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275770387f6431af5000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275770287f6431af5000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275770387f6431af500001a", "updated_at"=>2013-11-02 22:04:51 UTC, "created_at"=>2013-11-02 22:04:51 UTC, "entries_custom_fields"=>[{"_id"=>"5275770387f6431af500001a", "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.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275770387f6431af500001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275770387f6431af5000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275770387f6431af5000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275770387f6431af5000019"]}}} (1.2460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275770387f6431af500001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275770387f6431af5000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275770387f6431af5000019", "content_type_id"=>"5275770387f6431af5000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275770287f6431af5000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:04:51 UTC, "created_at"=>2013-11-02 22:04:51 UTC}] flags=[] (0.3183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275770387f6431af5000019", "_original_id"=>"5275770387f6431af500001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275770387f6431af500001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5275770287f6431af5000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275770387f6431af5000019", "_original_id"=>"5275770387f6431af500001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.2871ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-02 23:04: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.9593ms) 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.3311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5275770187f6431af5000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9840ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (48.0ms) Completed 200 OK in 93.3ms (Views: 77.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-02 23:04:53 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (35ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-11-02 23:04:53 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (30ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-02 23:04:54 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-02 23:04: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 (1.6949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5275770187f6431af5000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0959ms) 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.8271ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5275770187f6431af5000001"} update={"$set"=>{"remember_created_at"=>2013-11-02 22:04:54 UTC, "updated_at"=>2013-11-02 22:04:54 UTC}} flags=[] (0.2413ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5275770187f6431af5000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-02 22:04:54 UTC, "current_sign_in_at"=>2013-11-02 22:04:54 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-02 22:04:54 UTC}} flags=[] (0.5138ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 51.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-02 23:04: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 (1.0848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5275770187f6431af5000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5275770187f6431af5000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002"}, "$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, "target_klass_name"=>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} (1.8919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275770187f6431af5000002"}, "$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, "target_klass_name"=>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} (3.8600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5275770187f6431af5000002"}, "$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.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5275770187f6431af5000002"}, "$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.8018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5275770287f6431af5000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.1609ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (45.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (6.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (11.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (22.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (93.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (4.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5275770187f6431af5000001", :role=>:admin}}}} (1.1289ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_head.html.haml (34.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5275770187f6431af5000001"}} (0.5231ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/global_actions/show.html.haml (4.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5275770187f6431af5000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (7.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (37.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (7.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (1.9ms) Completed 200 OK in 250.8ms (Views: 212.2ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-02 23:04:54 +0100 Served asset /locomotive.css - 200 OK (108ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-02 23:04:54 +0100 Served asset /locomotive.js - 200 OK (325ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-02 23:04:55 +0100 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2013-11-02 23:04:55 +0100 Served asset /locomotive/nocoffee.png - 200 OK (5ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2013-11-02 23:04:55 +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 2013-11-02 23:04:55 +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 (1.7631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5275770187f6431af5000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5275770187f6431af5000001"]}} flags=[:slave_ok] limit=0 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"=>"5275770187f6431af5000002"}, "$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, "target_klass_name"=>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} (2.9662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5275770187f6431af5000002"}, "$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.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5275770187f6431af5000002"}, "$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.0421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5275770287f6431af5000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.3561ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (31.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275770187f6431af5000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6971ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (7.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_select_templates.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_form.html.haml (99.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275770187f6431af5000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4213ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/_form.html.haml (141.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_form_actions.html.haml (6.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (204.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5275770187f6431af5000001", :role=>:admin}}}} (0.6759ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_head.html.haml (8.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5275770187f6431af5000001"}} (0.5672ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/global_actions/show.html.haml (1.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5275770187f6431af5000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8180ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (3.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (14.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 266.0ms (Views: 243.1ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-02 23:04:55 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (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 (2.2128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (7.9980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.2781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (2.4781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2250ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.8239ms) 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.3101ms) 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.4511ms) 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.8740ms) 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.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275775787f643dad3000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f4d299e1b35efb6e508ec7eb694dbe8b81c73718", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"gbuandDCsMWrVdqkqC1j", "api_key"=>"38ea9599dbc560285e8c1c0f730f5fb245086329", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1550ms) 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.0021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275775787f643dad3000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:06:15 UTC, "updated_at"=>2013-11-02 22:06:15 UTC, "memberships"=>[{"_id"=>"5275775787f643dad3000003", "role"=>"admin", "account_id"=>"5275775787f643dad3000001"}]}] flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775787f643dad3000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775787f643dad3000002", "_id"=>{"$ne"=>"5275775787f643dad3000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4718ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775787f643dad3000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275775787f643dad3000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775787f643dad3000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775787f643dad3000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad3000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275775787f643dad3000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775787f643dad3000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775787f643dad3000002", "_id"=>{"$ne"=>"5275775787f643dad3000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"parent_id"=>nil, "site_id"=>"5275775787f643dad3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775787f643dad3000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275775787f643dad3000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775787f643dad3000006"}, "$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"=>["5275775787f643dad3000006"]}} 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"=>"5275775787f643dad3000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275775787f643dad3000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275775787f643dad3000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275775787f643dad3000008", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC, "entries_custom_fields"=>[{"_id"=>"5275775787f643dad3000008", "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.3211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275775787f643dad3000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275775787f643dad3000009", "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", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}}} flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775787f643dad300000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000007"]}} 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"=>"5275775787f643dad3000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000007"]}}} (0.4842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275775787f643dad300000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275775787f643dad3000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275775787f643dad3000007", "content_type_id"=>"5275775787f643dad3000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275775787f643dad3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775787f643dad3000007", "_original_id"=>"5275775787f643dad300000a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad300000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275775787f643dad3000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275775787f643dad3000007", "_original_id"=>"5275775787f643dad300000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775787f643dad300000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000007"]}} 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"=>"5275775787f643dad3000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000007"]}}} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000007"]}}} (0.2849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275775787f643dad300000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275775787f643dad3000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275775787f643dad3000007", "content_type_id"=>"5275775787f643dad3000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275775787f643dad3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775787f643dad3000007", "_original_id"=>"5275775787f643dad300000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad300000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275775787f643dad3000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275775787f643dad3000007", "_original_id"=>"5275775787f643dad300000c", "_keywords"=>["hidden"]}] flags=[] (0.2029ms) 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"=>"5275775787f643dad3000002", "parent_id"=>"5275775787f643dad3000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5275775787f643dad3000004", "site_id"=>"5275775787f643dad3000002", "_id"=>{"$ne"=>"5275775787f643dad300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275775787f643dad3000004"}]}]}, "$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"=>"5275775787f643dad300000e", "parent_ids"=>["5275775787f643dad3000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275775787f643dad3000002", "parent_id"=>"5275775787f643dad3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "template_dependencies.en"=>{"$in"=>["5275775787f643dad300000e"]}}, "$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"=>"5275775787f643dad300000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775787f643dad300000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad300000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad300000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5275775787f643dad3000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad300000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1960ms) 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.6618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775787f643dad3000002", "parent_id"=>"5275775787f643dad3000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5275775787f643dad3000004", "site_id"=>"5275775787f643dad3000002", "_id"=>{"$ne"=>"5275775787f643dad3000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775787f643dad3000004", "site_id"=>"5275775787f643dad3000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275775787f643dad3000004"}]}]}, "$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"=>"5275775787f643dad3000010", "parent_ids"=>["5275775787f643dad3000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275775787f643dad3000002", "parent_id"=>"5275775787f643dad3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.3109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000010"]}}, "$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"=>"5275775787f643dad3000010"}, "$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"=>["5275775787f643dad3000010"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000010"}, "$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_models documents=[{"_id"=>"5275775787f643dad3000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5275775787f643dad3000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000010", "_keywords"=>["en:search"]}] flags=[] (0.1237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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"=>"5275775787f643dad3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5275775787f643dad3000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:06:15 UTC}} flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275775787f643dad3000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275775787f643dad3000002"}}} flags=[] (0.2012ms) 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.6502ms) 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.3438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275775787f643dad3000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:06:15 UTC, "updated_at"=>2013-11-02 22:06:15 UTC, "memberships"=>[{"_id"=>"5275775787f643dad3000013", "role"=>"admin", "account_id"=>"5275775787f643dad3000001"}]}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775787f643dad3000012", "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"=>"5275775787f643dad3000012", "_id"=>{"$ne"=>"5275775787f643dad3000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5275775787f643dad3000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275775787f643dad3000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000012", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000014"]}}, "$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"=>"5275775787f643dad3000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775787f643dad3000014"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad3000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275775787f643dad3000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775787f643dad3000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5275775787f643dad3000012", "_id"=>{"$ne"=>"5275775787f643dad3000016"}, "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"=>nil, "site_id"=>"5275775787f643dad3000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6328ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775787f643dad3000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275775787f643dad3000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000012", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775787f643dad3000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775787f643dad3000016"]}} 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={"site_id"=>"5275775787f643dad3000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5275775787f643dad3000012", "_id"=>{"$ne"=>"5275775787f643dad3000017"}, "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"=>"5275775787f643dad3000012"}, "$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.2639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775787f643dad3000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275775787f643dad3000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000012", "template_dependencies.en"=>{"$in"=>["5275775787f643dad3000017"]}}, "$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"=>"5275775787f643dad3000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775787f643dad3000017"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad3000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5275775787f643dad3000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775787f643dad3000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275775787f643dad3000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9482ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275775787f643dad3000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275775787f643dad3000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275775787f643dad300001a", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC, "entries_custom_fields"=>[{"_id"=>"5275775787f643dad300001a", "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.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775787f643dad300001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000019"]}} 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"=>"5275775787f643dad3000019", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775787f643dad3000019"]}}} (0.4773ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275775787f643dad300001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275775787f643dad3000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275775787f643dad3000019", "content_type_id"=>"5275775787f643dad3000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275775787f643dad3000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:06:15 UTC, "created_at"=>2013-11-02 22:06:15 UTC}] flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775787f643dad3000019", "_original_id"=>"5275775787f643dad300001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775787f643dad300001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5275775787f643dad3000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275775787f643dad3000019", "_original_id"=>"5275775787f643dad300001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1400ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:06:15 +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.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0750ms) Rendered text template (0.0ms) Completed 200 OK in 15.9ms (Views: 9.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:06:15 +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.7820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775787f643dad3000002", "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.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5275775787f643dad3000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) Rendered text template (0.0ms) Completed 200 OK in 7.0ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:06:15 +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"=>"5275775787f643dad3000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6862ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.5572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9992ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6452ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9327ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7288ms) 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.3063ms) 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.4721ms) 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.6890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275775887f643dad300001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6a663b1fbe4eafb8d04d1686da8313a07ba736d8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7Tf4naAprpK7sakYA2EP", "api_key"=>"b294f4accf0f12114dc43e5cf5e440a078386a50", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.3009ms) 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.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275775887f643dad300001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:06:15 UTC, "updated_at"=>2013-11-02 22:06:16 UTC, "memberships"=>[{"_id"=>"5275775887f643dad300001f", "role"=>"admin", "account_id"=>"5275775887f643dad300001d"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775887f643dad300001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300001e", "_id"=>{"$ne"=>"5275775887f643dad3000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775887f643dad3000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275775887f643dad300001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad3000020"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275775887f643dad3000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9849ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775887f643dad3000020"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775887f643dad3000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275775887f643dad300001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775887f643dad300001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300001e", "_id"=>{"$ne"=>"5275775887f643dad3000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7544ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5275775887f643dad3000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275775887f643dad300001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad3000022"]}}, "$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"=>"5275775887f643dad3000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775887f643dad3000022"]}} 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=locomotive_content_types selector={"site_id"=>"5275775887f643dad300001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275775887f643dad3000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275775887f643dad300001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275775887f643dad3000024", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC, "entries_custom_fields"=>[{"_id"=>"5275775887f643dad3000024", "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.1981ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275775887f643dad3000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275775887f643dad3000025", "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", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}}} flags=[] (0.2472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775887f643dad3000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}} 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"=>"5275775887f643dad3000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}}} (0.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275775887f643dad3000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275775887f643dad3000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "content_type_id"=>"5275775887f643dad3000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275775887f643dad300001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "_original_id"=>"5275775887f643dad3000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775887f643dad3000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275775887f643dad300001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "_original_id"=>"5275775887f643dad3000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775887f643dad3000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}} 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_content_entries selector={"content_type_id"=>"5275775887f643dad3000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4220ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}}} (0.3629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}}} (0.2658ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275775887f643dad3000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275775887f643dad3000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "content_type_id"=>"5275775887f643dad3000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275775887f643dad300001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "_original_id"=>"5275775887f643dad3000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775887f643dad3000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275775887f643dad300001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "_original_id"=>"5275775887f643dad3000028", "_keywords"=>["hidden"]}] flags=[] (0.1130ms) 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.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775887f643dad300001e", "parent_id"=>"5275775887f643dad3000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775887f643dad3000020", "site_id"=>"5275775887f643dad300001e", "_id"=>{"$ne"=>"5275775887f643dad300002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5275775887f643dad3000020"}]}]}, "$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"=>"5275775887f643dad300002a", "parent_ids"=>["5275775887f643dad3000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275775887f643dad300001e", "parent_id"=>"5275775887f643dad3000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad300002a"]}}, "$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"=>"5275775887f643dad300002a"}, "$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"=>["5275775887f643dad300002a"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad300002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775887f643dad300002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5275775887f643dad300001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad300002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1848ms) 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.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775887f643dad300001e", "parent_id"=>"5275775887f643dad3000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775887f643dad3000020", "site_id"=>"5275775887f643dad300001e", "_id"=>{"$ne"=>"5275775887f643dad300002c"}, "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"=>"5275775887f643dad3000020", "site_id"=>"5275775887f643dad300001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275775887f643dad3000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775887f643dad300002c", "parent_ids"=>["5275775887f643dad3000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275775887f643dad300001e", "parent_id"=>"5275775887f643dad3000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad300002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775887f643dad300002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775887f643dad300002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad300002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775887f643dad300002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5275775887f643dad300001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad300002c", "_keywords"=>["en:search"]}] flags=[] (0.1168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "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_sites selector={"$query"=>{"_id"=>"5275775887f643dad300001e"}, "$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"=>"5275775887f643dad3000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:06:16 UTC}} flags=[] (0.1416ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad3000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4947ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275775887f643dad3000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275775887f643dad300001e"}}} flags=[] (0.0970ms) 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.4969ms) 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.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275775887f643dad300002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:06:15 UTC, "updated_at"=>2013-11-02 22:06:16 UTC, "memberships"=>[{"_id"=>"5275775887f643dad300002f", "role"=>"admin", "account_id"=>"5275775887f643dad300001d"}]}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775887f643dad300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300002e", "_id"=>{"$ne"=>"5275775887f643dad3000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775887f643dad3000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275775887f643dad300002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300002e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad3000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775887f643dad3000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775887f643dad3000030"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000030"}, "$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_models documents=[{"_id"=>"5275775887f643dad3000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275775887f643dad300002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275775887f643dad300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300002e", "_id"=>{"$ne"=>"5275775887f643dad3000032"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300002e"}, "$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"=>"5275775887f643dad3000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275775887f643dad300002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300002e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad3000032"]}}, "$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"=>"5275775887f643dad3000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275775887f643dad3000032"]}} 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"=>"5275775887f643dad300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5275775887f643dad300002e", "_id"=>{"$ne"=>"5275775887f643dad3000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275775887f643dad300002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6638ms) 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.3598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275775887f643dad3000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275775887f643dad300002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.1984ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300002e", "template_dependencies.en"=>{"$in"=>["5275775887f643dad3000033"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"5275775887f643dad3000033"}, "$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"=>["5275775887f643dad3000033"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000033"}, "$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_models documents=[{"_id"=>"5275775887f643dad3000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5275775887f643dad300002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275775887f643dad3000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275775887f643dad300002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275775887f643dad3000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275775887f643dad300002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275775887f643dad3000036", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC, "entries_custom_fields"=>[{"_id"=>"5275775887f643dad3000036", "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.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775887f643dad3000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275775887f643dad3000035", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000035"]}}} (0.5159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275775887f643dad3000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275775887f643dad3000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275775887f643dad3000035", "content_type_id"=>"5275775887f643dad3000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275775887f643dad300002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:06:16 UTC, "created_at"=>2013-11-02 22:06:16 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000035", "_original_id"=>"5275775887f643dad3000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275775887f643dad3000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5275775887f643dad300002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000035", "_original_id"=>"5275775887f643dad3000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275775887f643dad3000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}} flags=[:slave_ok] limit=0 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={"_id"=>{"$ne"=>"5275775887f643dad3000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1562ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275775887f643dad3000023"} update={"$set"=>{"updated_at"=>2013-11-02 22:06:16 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275775887f643dad3000023"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1788ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:06: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.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9780ms) Rendered text template (0.0ms) Completed 200 OK in 8.5ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:06: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 (1.2512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "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.8788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5275775887f643dad300001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6418ms) Rendered text template (0.0ms) Completed 200 OK in 10.8ms (Views: 0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275775887f643dad3000023"} 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_entries selector={"content_type_id"=>"5275775887f643dad3000023", "updated_at"=>{"$lt"=>2013-11-02 22:06:16 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5275775887f643dad3000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275775887f643dad300001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5275775887f643dad3000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3878ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5275775887f643dad3000026"} update={"$set"=>{"updated_at"=>2013-11-02 22:06:16 UTC}} flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "_original_id"=>"5275775887f643dad3000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6158ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275775887f643dad3000027"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275775887f643dad300001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275775887f643dad300001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5275775887f643dad3000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6282ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5275775887f643dad3000028"} update={"$set"=>{"updated_at"=>2013-11-02 22:06:16 UTC}} flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275775887f643dad3000023", "_original_id"=>"5275775887f643dad3000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7069ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275775887f643dad3000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275775887f643dad300001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1822ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:06:16 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:06:16 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4470ms) Rendered text template (0.0ms) Completed 200 OK in 10.9ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:06: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.9909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275775887f643dad300001e", "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.7718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5275775887f643dad300001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) Rendered text template (0.0ms) Completed 200 OK in 12.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 (1.3843ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.8581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4549ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6123ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8192ms) 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.5362ms) 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.4828ms) 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.7041ms) 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.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275791987f6432cf8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"026b72e8d10405fd2de07334fbeaa15890f8a6dd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9wK9jTTG6ymkDqygbzzE", "api_key"=>"0a83ec6cdc516c8a7ef3bf260b6cbc8eb913a466", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.1469ms) 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.9000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275791987f6432cf8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:13:45 UTC, "updated_at"=>2013-11-02 22:13:45 UTC, "memberships"=>[{"_id"=>"5275791987f6432cf8000003", "role"=>"admin", "account_id"=>"5275791987f6432cf8000001"}]}] flags=[] (0.4191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791987f6432cf8000002", "_id"=>{"$ne"=>"5275791987f6432cf8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5275791987f6432cf8000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275791987f6432cf8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.2873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791987f6432cf8000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000004"]}}, "$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"=>["5275791987f6432cf8000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791987f6432cf8000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275791987f6432cf8000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000002", "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"=>"5275791987f6432cf8000002", "_id"=>{"$ne"=>"5275791987f6432cf8000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"5275791987f6432cf8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791987f6432cf8000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275791987f6432cf8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000006"]}}, "$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"=>"5275791987f6432cf8000006"}, "$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"=>["5275791987f6432cf8000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1643ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275791987f6432cf8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275791987f6432cf8000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275791987f6432cf8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275791987f6432cf8000008", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC, "entries_custom_fields"=>[{"_id"=>"5275791987f6432cf8000008", "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.2201ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275791987f6432cf8000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275791987f6432cf8000009", "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", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}}} flags=[] (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275791987f6432cf800000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275791987f6432cf8000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000007"]}}} (0.5140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275791987f6432cf800000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275791987f6432cf8000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275791987f6432cf8000007", "content_type_id"=>"5275791987f6432cf8000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275791987f6432cf8000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.2961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791987f6432cf8000007", "_original_id"=>"5275791987f6432cf800000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791987f6432cf800000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275791987f6432cf8000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275791987f6432cf8000007", "_original_id"=>"5275791987f6432cf800000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275791987f6432cf800000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275791987f6432cf8000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000007"]}}} (0.4752ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000007"]}}} (0.3610ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275791987f6432cf800000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275791987f6432cf8000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275791987f6432cf8000007", "content_type_id"=>"5275791987f6432cf8000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275791987f6432cf8000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791987f6432cf8000007", "_original_id"=>"5275791987f6432cf800000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791987f6432cf800000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275791987f6432cf8000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275791987f6432cf8000007", "_original_id"=>"5275791987f6432cf800000c", "_keywords"=>["hidden"]}] flags=[] (0.2279ms) 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.7453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000002", "parent_id"=>"5275791987f6432cf8000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791987f6432cf8000004", "site_id"=>"5275791987f6432cf8000002", "_id"=>{"$ne"=>"5275791987f6432cf800000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275791987f6432cf8000004"}]}]}, "$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"=>"5275791987f6432cf800000e", "parent_ids"=>["5275791987f6432cf8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275791987f6432cf8000002", "parent_id"=>"5275791987f6432cf8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.2234ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf800000e"]}}, "$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"=>"5275791987f6432cf800000e"}, "$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"=>["5275791987f6432cf800000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf800000e"}, "$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_models documents=[{"_id"=>"5275791987f6432cf800000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5275791987f6432cf8000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf800000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2098ms) 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.7539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000002", "parent_id"=>"5275791987f6432cf8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791987f6432cf8000004", "site_id"=>"5275791987f6432cf8000002", "_id"=>{"$ne"=>"5275791987f6432cf8000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5275791987f6432cf8000004", "site_id"=>"5275791987f6432cf8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275791987f6432cf8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5275791987f6432cf8000010", "parent_ids"=>["5275791987f6432cf8000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275791987f6432cf8000002", "parent_id"=>"5275791987f6432cf8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.2544ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"5275791987f6432cf8000010"}, "$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"=>["5275791987f6432cf8000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791987f6432cf8000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5275791987f6432cf8000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000010", "_keywords"=>["en:search"]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275791987f6432cf8000002"}, "$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_pages selector={"_id"=>"5275791987f6432cf8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:13:45 UTC}} flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3759ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275791987f6432cf8000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275791987f6432cf8000002"}}} flags=[] (0.2639ms) 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.0660ms) 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.7348ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275791987f6432cf8000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:13:45 UTC, "updated_at"=>2013-11-02 22:13:45 UTC, "memberships"=>[{"_id"=>"5275791987f6432cf8000013", "role"=>"admin", "account_id"=>"5275791987f6432cf8000001"}]}] flags=[] (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5476ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791987f6432cf8000012", "_id"=>{"$ne"=>"5275791987f6432cf8000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791987f6432cf8000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275791987f6432cf8000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000012", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000014"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791987f6432cf8000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791987f6432cf8000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791987f6432cf8000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275791987f6432cf8000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791987f6432cf8000012", "_id"=>{"$ne"=>"5275791987f6432cf8000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791987f6432cf8000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791987f6432cf8000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275791987f6432cf8000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000012", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000016"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275791987f6432cf8000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791987f6432cf8000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791987f6432cf8000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791987f6432cf8000012", "_id"=>{"$ne"=>"5275791987f6432cf8000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791987f6432cf8000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5275791987f6432cf8000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275791987f6432cf8000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000012", "template_dependencies.en"=>{"$in"=>["5275791987f6432cf8000017"]}}, "$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"=>"5275791987f6432cf8000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4537ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791987f6432cf8000017"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000017"}, "$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_models documents=[{"_id"=>"5275791987f6432cf8000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5275791987f6432cf8000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791987f6432cf8000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275791987f6432cf8000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5193ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275791987f6432cf8000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275791987f6432cf8000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275791987f6432cf800001a", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC, "entries_custom_fields"=>[{"_id"=>"5275791987f6432cf800001a", "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"=>"5275791987f6432cf800001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000019"]}} 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"=>"5275791987f6432cf8000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4220ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791987f6432cf8000019"]}}} (0.7398ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275791987f6432cf800001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275791987f6432cf8000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275791987f6432cf8000019", "content_type_id"=>"5275791987f6432cf8000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275791987f6432cf8000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:13:45 UTC, "created_at"=>2013-11-02 22:13:45 UTC}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791987f6432cf8000019", "_original_id"=>"5275791987f6432cf800001b"}, "$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_models documents=[{"_id"=>"5275791987f6432cf800001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5275791987f6432cf8000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275791987f6432cf8000019", "_original_id"=>"5275791987f6432cf800001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1228ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:13:45 +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.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5462ms) Rendered text template (0.0ms) Completed 200 OK in 14.3ms (Views: 8.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:13:45 +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.6027ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "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.7908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5275791987f6432cf8000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8900ms) Rendered text template (0.0ms) Completed 200 OK in 9.1ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:13:46 +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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791987f6432cf8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6542ms) Rendered text template (0.0ms) Completed 200 OK in 4.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.6340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1919ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8042ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5691ms) 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.3228ms) 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.3502ms) 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.2990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275791a87f6432cf800001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"95294672a33e59a4b623c869f055cd309eff7423", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"FjdspjXR6swACQmFpHm8", "api_key"=>"452f5ffdf492513050d0b9070dac8d71d60f8bc5", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.1650ms) 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.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275791a87f6432cf800001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:13:45 UTC, "updated_at"=>2013-11-02 22:13:46 UTC, "memberships"=>[{"_id"=>"5275791a87f6432cf800001f", "role"=>"admin", "account_id"=>"5275791a87f6432cf800001d"}]}] flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791a87f6432cf800001e", "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"=>"5275791a87f6432cf800001e", "_id"=>{"$ne"=>"5275791a87f6432cf8000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5275791a87f6432cf8000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275791a87f6432cf800001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf8000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4354ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791a87f6432cf8000020"}, "$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"=>["5275791a87f6432cf8000020"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf8000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275791a87f6432cf800001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791a87f6432cf800001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5275791a87f6432cf800001e", "_id"=>{"$ne"=>"5275791a87f6432cf8000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791a87f6432cf800001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791a87f6432cf8000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275791a87f6432cf800001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf8000022"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275791a87f6432cf8000022"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5275791a87f6432cf8000022"]}} 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=locomotive_content_types selector={"site_id"=>"5275791a87f6432cf800001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275791a87f6432cf8000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275791a87f6432cf800001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275791a87f6432cf8000024", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC, "entries_custom_fields"=>[{"_id"=>"5275791a87f6432cf8000024", "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.2582ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275791a87f6432cf8000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275791a87f6432cf8000025", "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", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}}} flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275791a87f6432cf8000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275791a87f6432cf8000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}}} (0.7830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275791a87f6432cf8000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275791a87f6432cf8000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "content_type_id"=>"5275791a87f6432cf8000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275791a87f6432cf800001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "_original_id"=>"5275791a87f6432cf8000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf8000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275791a87f6432cf800001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "_original_id"=>"5275791a87f6432cf8000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275791a87f6432cf8000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}} 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_content_entries selector={"content_type_id"=>"5275791a87f6432cf8000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3819ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}}} (0.4230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}}} (0.2511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275791a87f6432cf8000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275791a87f6432cf8000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "content_type_id"=>"5275791a87f6432cf8000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275791a87f6432cf800001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "_original_id"=>"5275791a87f6432cf8000028"}, "$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_models documents=[{"_id"=>"5275791a87f6432cf8000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275791a87f6432cf800001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "_original_id"=>"5275791a87f6432cf8000028", "_keywords"=>["hidden"]}] flags=[] (0.1297ms) 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.8411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791a87f6432cf800001e", "parent_id"=>"5275791a87f6432cf8000020", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5275791a87f6432cf8000020", "site_id"=>"5275791a87f6432cf800001e", "_id"=>{"$ne"=>"5275791a87f6432cf800002a"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"5275791a87f6432cf8000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791a87f6432cf800002a", "parent_ids"=>["5275791a87f6432cf8000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275791a87f6432cf800001e", "parent_id"=>"5275791a87f6432cf8000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf800002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791a87f6432cf800002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791a87f6432cf800002a"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf800002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf800002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5275791a87f6432cf800001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf800002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1390ms) 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"=>"5275791a87f6432cf800001e", "parent_id"=>"5275791a87f6432cf8000020", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5275791a87f6432cf8000020", "site_id"=>"5275791a87f6432cf800001e", "_id"=>{"$ne"=>"5275791a87f6432cf800002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791a87f6432cf8000020", "site_id"=>"5275791a87f6432cf800001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4187ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275791a87f6432cf8000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791a87f6432cf800002c", "parent_ids"=>["5275791a87f6432cf8000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275791a87f6432cf800001e", "parent_id"=>"5275791a87f6432cf8000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf800002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275791a87f6432cf800002c"}, "$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"=>["5275791a87f6432cf800002c"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf800002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf800002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5275791a87f6432cf800001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf800002c", "_keywords"=>["en:search"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "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_sites selector={"$query"=>{"_id"=>"5275791a87f6432cf800001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5275791a87f6432cf8000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:13:46 UTC}} flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf8000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275791a87f6432cf8000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275791a87f6432cf800001e"}}} flags=[] (0.0911ms) 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.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275791a87f6432cf800002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:13:45 UTC, "updated_at"=>2013-11-02 22:13:46 UTC, "memberships"=>[{"_id"=>"5275791a87f6432cf800002f", "role"=>"admin", "account_id"=>"5275791a87f6432cf800001d"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791a87f6432cf800002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791a87f6432cf800002e", "_id"=>{"$ne"=>"5275791a87f6432cf8000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5275791a87f6432cf8000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275791a87f6432cf800002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800002e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf8000030"]}}, "$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"=>"5275791a87f6432cf8000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791a87f6432cf8000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf8000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5275791a87f6432cf800002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275791a87f6432cf800002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791a87f6432cf800002e", "_id"=>{"$ne"=>"5275791a87f6432cf8000032"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791a87f6432cf800002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4282ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791a87f6432cf8000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275791a87f6432cf800002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800002e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf8000032"]}}, "$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"=>"5275791a87f6432cf8000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791a87f6432cf8000032"]}} 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={"site_id"=>"5275791a87f6432cf800002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275791a87f6432cf800002e", "_id"=>{"$ne"=>"5275791a87f6432cf8000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5275791a87f6432cf800002e"}, "$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.2820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275791a87f6432cf8000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275791a87f6432cf800002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800002e", "template_dependencies.en"=>{"$in"=>["5275791a87f6432cf8000033"]}}, "$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"=>"5275791a87f6432cf8000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275791a87f6432cf8000033"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf8000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5275791a87f6432cf800002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5275791a87f6432cf8000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275791a87f6432cf800002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4528ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275791a87f6432cf8000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275791a87f6432cf800002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275791a87f6432cf8000036", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC, "entries_custom_fields"=>[{"_id"=>"5275791a87f6432cf8000036", "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.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275791a87f6432cf8000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275791a87f6432cf8000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000035"]}}} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275791a87f6432cf8000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275791a87f6432cf8000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000035", "content_type_id"=>"5275791a87f6432cf8000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275791a87f6432cf800002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:13:46 UTC, "created_at"=>2013-11-02 22:13:46 UTC}] flags=[] (0.2618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000035", "_original_id"=>"5275791a87f6432cf8000037"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"5275791a87f6432cf8000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5275791a87f6432cf800002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000035", "_original_id"=>"5275791a87f6432cf8000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275791a87f6432cf8000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}} 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_content_entries selector={"_id"=>{"$ne"=>"5275791a87f6432cf8000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4122ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1950ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275791a87f6432cf8000023"} update={"$set"=>{"updated_at"=>2013-11-02 22:13:46 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275791a87f6432cf8000023"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1009ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:13:46 +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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6809ms) 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 2013-11-02 23:13:46 +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.5982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "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.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5275791a87f6432cf800001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3099ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275791a87f6432cf8000023"} 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"=>"5275791a87f6432cf8000023", "updated_at"=>{"$lt"=>2013-11-02 22:13:46 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5275791a87f6432cf8000023"]}} flags=[:slave_ok] limit=0 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"=>"5275791a87f6432cf800001e"}, "$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_content_types selector={"$query"=>{"_id"=>"5275791a87f6432cf8000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5275791a87f6432cf8000026"} update={"$set"=>{"updated_at"=>2013-11-02 22:13:46 UTC}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "_original_id"=>"5275791a87f6432cf8000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275791a87f6432cf8000027"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5275791a87f6432cf800001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275791a87f6432cf800001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5275791a87f6432cf8000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"5275791a87f6432cf8000028"} update={"$set"=>{"updated_at"=>2013-11-02 22:13:46 UTC}} flags=[] (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5275791a87f6432cf8000023", "_original_id"=>"5275791a87f6432cf8000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5275791a87f6432cf8000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5275791a87f6432cf800001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1652ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:13:46 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:13:46 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"5275791a87f6432cf800001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4.8ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:13:46 +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.5889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275791a87f6432cf800001e", "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.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5275791a87f6432cf800001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) 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.6268ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3638ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3509ms) 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=>"active_search_mongoid_models"} (0.8941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7551ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8860ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9727ms) 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.6070ms) 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.4859ms) 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.7432ms) 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.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527579ee87f643ef28000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"22449975c990bcc86ecf144496ebc6e34e5734a8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"dmd1aydceiEsUVSBKnxT", "api_key"=>"5d77cf52062ace7cfd1b190f4ba06b8b114c0e04", "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.2999ms) 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.9098ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527579ee87f643ef28000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:17:18 UTC, "updated_at"=>2013-11-02 22:17:18 UTC, "memberships"=>[{"_id"=>"527579ee87f643ef28000003", "role"=>"admin", "account_id"=>"527579ee87f643ef28000001"}]}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ee87f643ef28000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ee87f643ef28000002", "_id"=>{"$ne"=>"527579ee87f643ef28000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527579ee87f643ef28000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527579ee87f643ef28000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef28000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000004"]}}, "$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"=>["527579ee87f643ef28000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6509ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ee87f643ef28000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527579ee87f643ef28000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ee87f643ef28000002", "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"=>"527579ee87f643ef28000002", "_id"=>{"$ne"=>"527579ee87f643ef28000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ee87f643ef28000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ee87f643ef28000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527579ee87f643ef28000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.1717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000006"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"527579ee87f643ef28000006"}, "$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"=>["527579ee87f643ef28000006"]}} 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_content_types selector={"site_id"=>"527579ee87f643ef28000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527579ee87f643ef28000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527579ee87f643ef28000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527579ee87f643ef28000008", "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC, "entries_custom_fields"=>[{"_id"=>"527579ee87f643ef28000008", "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.2248ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527579ee87f643ef28000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527579ee87f643ef28000009", "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", "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}}} flags=[] (0.3052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ee87f643ef2800000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527579ee87f643ef28000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}}} (0.3829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527579ee87f643ef2800000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527579ee87f643ef28000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "content_type_id"=>"527579ee87f643ef28000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527579ee87f643ef28000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "_original_id"=>"527579ee87f643ef2800000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4098ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ee87f643ef2800000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527579ee87f643ef28000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "_original_id"=>"527579ee87f643ef2800000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ee87f643ef2800000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527579ee87f643ef28000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3769ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}}} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}}} (0.3719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527579ee87f643ef2800000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527579ee87f643ef28000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "content_type_id"=>"527579ee87f643ef28000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527579ee87f643ef28000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.1867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "_original_id"=>"527579ee87f643ef2800000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ee87f643ef2800000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527579ee87f643ef28000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "_original_id"=>"527579ee87f643ef2800000c", "_keywords"=>["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.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ee87f643ef28000002", "parent_id"=>"527579ee87f643ef28000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef28000004", "site_id"=>"527579ee87f643ef28000002", "_id"=>{"$ne"=>"527579ee87f643ef2800000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527579ee87f643ef28000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ee87f643ef2800000e", "parent_ids"=>["527579ee87f643ef28000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527579ee87f643ef28000002", "parent_id"=>"527579ee87f643ef28000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef2800000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef2800000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ee87f643ef2800000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef2800000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ee87f643ef2800000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527579ee87f643ef28000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef2800000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ee87f643ef28000002", "parent_id"=>"527579ee87f643ef28000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef28000004", "site_id"=>"527579ee87f643ef28000002", "_id"=>{"$ne"=>"527579ee87f643ef28000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef28000004", "site_id"=>"527579ee87f643ef28000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527579ee87f643ef28000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"527579ee87f643ef28000010", "parent_ids"=>["527579ee87f643ef28000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527579ee87f643ef28000002", "parent_id"=>"527579ee87f643ef28000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.3490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef28000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ee87f643ef28000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ee87f643ef28000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527579ee87f643ef28000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000010", "_keywords"=>["en:search"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "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_sites selector={"$query"=>{"_id"=>"527579ee87f643ef28000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4339ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527579ee87f643ef28000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:17:18 UTC}} flags=[] (0.1547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527579ee87f643ef28000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527579ee87f643ef28000002"}}} 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.6890ms) 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.3572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527579ee87f643ef28000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:17:18 UTC, "updated_at"=>2013-11-02 22:17:18 UTC, "memberships"=>[{"_id"=>"527579ee87f643ef28000013", "role"=>"admin", "account_id"=>"527579ee87f643ef28000001"}]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ee87f643ef28000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ee87f643ef28000012", "_id"=>{"$ne"=>"527579ee87f643ef28000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527579ee87f643ef28000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527579ee87f643ef28000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000012", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000014"]}}, "$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"=>"527579ee87f643ef28000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ee87f643ef28000014"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000014"}, "$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_models documents=[{"_id"=>"527579ee87f643ef28000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527579ee87f643ef28000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ee87f643ef28000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ee87f643ef28000012", "_id"=>{"$ne"=>"527579ee87f643ef28000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ee87f643ef28000012"}, "$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"=>"527579ee87f643ef28000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527579ee87f643ef28000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000012", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ee87f643ef28000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ee87f643ef28000016"]}} 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={"site_id"=>"527579ee87f643ef28000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"527579ee87f643ef28000012", "_id"=>{"$ne"=>"527579ee87f643ef28000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ee87f643ef28000012"}, "$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.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ee87f643ef28000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527579ee87f643ef28000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:18 UTC, "created_at"=>2013-11-02 22:17:18 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000012", "template_dependencies.en"=>{"$in"=>["527579ee87f643ef28000017"]}}, "$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"=>"527579ee87f643ef28000017"}, "$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"=>["527579ee87f643ef28000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527579ee87f643ef28000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ee87f643ef28000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527579ee87f643ef28000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527579ef87f643ef28000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527579ee87f643ef28000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527579ef87f643ef2800001a", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC, "entries_custom_fields"=>[{"_id"=>"527579ef87f643ef2800001a", "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.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ef87f643ef2800001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527579ef87f643ef28000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000019"]}}} (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527579ef87f643ef2800001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527579ef87f643ef28000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527579ef87f643ef28000019", "content_type_id"=>"527579ef87f643ef28000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527579ee87f643ef28000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000019", "_original_id"=>"527579ef87f643ef2800001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef2800001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527579ee87f643ef28000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000019", "_original_id"=>"527579ef87f643ef2800001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ee87f643ef2800000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}} 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_content_entries selector={"_id"=>{"$ne"=>"527579ee87f643ef2800000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}} 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"=>"527579ee87f643ef28000007"} update={"$set"=>{"updated_at"=>2013-11-02 22:17:19 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527579ee87f643ef28000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1092ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:17: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.7079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7420ms) Rendered text template (0.0ms) Completed 200 OK in 12.5ms (Views: 6.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:17: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.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "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.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527579ee87f643ef28000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) Rendered text template (0.0ms) Completed 200 OK in 6.1ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527579ee87f643ef28000007"} 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"=>"527579ee87f643ef28000007", "updated_at"=>{"$lt"=>2013-11-02 22:17:19 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527579ee87f643ef28000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527579ee87f643ef28000002"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"527579ee87f643ef28000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527579ee87f643ef2800000a"} update={"$set"=>{"updated_at"=>2013-11-02 22:17:19 UTC}} flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "_original_id"=>"527579ee87f643ef2800000a"}, "$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=active_search_mongoid_models selector={"_id"=>"527579ee87f643ef2800000b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527579ee87f643ef28000002", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527579ee87f643ef28000002"}, "$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_content_types selector={"$query"=>{"_id"=>"527579ee87f643ef28000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527579ee87f643ef2800000c"} update={"$set"=>{"updated_at"=>2013-11-02 22:17:19 UTC}} flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ee87f643ef28000007", "_original_id"=>"527579ee87f643ef2800000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527579ee87f643ef2800000d"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527579ee87f643ef28000002", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1132ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:17:19 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:17:19 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"527579ee87f643ef28000002", "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 5.1ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:17: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.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ee87f643ef28000002", "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.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527579ee87f643ef28000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) 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.5250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8247ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4323ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5929ms) 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.2980ms) 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.3490ms) 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"=>"527579ef87f643ef2800001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ca63b830630c8f68fd252fd2bd9645e69c70bdaa", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"g5C2HX3Sx3TCLTEXe5RM", "api_key"=>"b08ea16eb80eecbaad910180bfe20fde9ae62c27", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.1197ms) 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.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527579ef87f643ef2800001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:17:18 UTC, "updated_at"=>2013-11-02 22:17:19 UTC, "memberships"=>[{"_id"=>"527579ef87f643ef2800001f", "role"=>"admin", "account_id"=>"527579ef87f643ef2800001d"}]}] flags=[] (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ef87f643ef2800001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ef87f643ef2800001e", "_id"=>{"$ne"=>"527579ef87f643ef28000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ef87f643ef28000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527579ef87f643ef2800001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef28000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ef87f643ef28000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef28000020"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527579ef87f643ef2800001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ef87f643ef2800001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"527579ef87f643ef2800001e", "_id"=>{"$ne"=>"527579ef87f643ef28000022"}, "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"=>"527579ef87f643ef2800001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ef87f643ef28000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527579ef87f643ef2800001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef28000022"]}}, "$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"=>"527579ef87f643ef28000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef28000022"]}} 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"=>"527579ef87f643ef2800001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527579ef87f643ef28000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527579ef87f643ef2800001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527579ef87f643ef28000024", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC, "entries_custom_fields"=>[{"_id"=>"527579ef87f643ef28000024", "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.2220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527579ef87f643ef28000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527579ef87f643ef28000025", "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", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ef87f643ef28000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000023"]}} 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"=>"527579ef87f643ef28000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000023"]}}} (0.5372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527579ef87f643ef28000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527579ef87f643ef28000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527579ef87f643ef28000023", "content_type_id"=>"527579ef87f643ef28000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527579ef87f643ef2800001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000023", "_original_id"=>"527579ef87f643ef28000026"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527579ef87f643ef2800001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000023", "_original_id"=>"527579ef87f643ef28000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ef87f643ef28000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527579ef87f643ef28000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000023"]}}} (0.5944ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000023"]}}} (1.2901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527579ef87f643ef28000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527579ef87f643ef28000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527579ef87f643ef28000023", "content_type_id"=>"527579ef87f643ef28000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527579ef87f643ef2800001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000023", "_original_id"=>"527579ef87f643ef28000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527579ef87f643ef2800001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000023", "_original_id"=>"527579ef87f643ef28000028", "_keywords"=>["hidden"]}] flags=[] (0.3419ms) 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.9389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ef87f643ef2800001e", "parent_id"=>"527579ef87f643ef28000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ef87f643ef28000020", "site_id"=>"527579ef87f643ef2800001e", "_id"=>{"$ne"=>"527579ef87f643ef2800002a"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"527579ef87f643ef28000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ef87f643ef2800002a", "parent_ids"=>["527579ef87f643ef28000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527579ef87f643ef2800001e", "parent_id"=>"527579ef87f643ef28000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef2800002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ef87f643ef2800002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef2800002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef2800002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef2800002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527579ef87f643ef2800001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef2800002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1881ms) 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.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ef87f643ef2800001e", "parent_id"=>"527579ef87f643ef28000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ef87f643ef28000020", "site_id"=>"527579ef87f643ef2800001e", "_id"=>{"$ne"=>"527579ef87f643ef2800002c"}, "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"=>"527579ef87f643ef28000020", "site_id"=>"527579ef87f643ef2800001e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527579ef87f643ef28000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ef87f643ef2800002c", "parent_ids"=>["527579ef87f643ef28000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527579ef87f643ef2800001e", "parent_id"=>"527579ef87f643ef28000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef2800002c"]}}, "$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"=>"527579ef87f643ef2800002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4842ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef2800002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef2800002c"}, "$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_models documents=[{"_id"=>"527579ef87f643ef2800002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527579ef87f643ef2800001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef2800002c", "_keywords"=>["en:search"]}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527579ef87f643ef2800001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527579ef87f643ef28000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:17:19 UTC}} flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef28000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7138ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527579ef87f643ef28000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527579ef87f643ef2800001e"}}} flags=[] (0.2899ms) 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.5541ms) 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.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527579ef87f643ef2800002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:17:18 UTC, "updated_at"=>2013-11-02 22:17:19 UTC, "memberships"=>[{"_id"=>"527579ef87f643ef2800002f", "role"=>"admin", "account_id"=>"527579ef87f643ef2800001d"}]}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ef87f643ef2800002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"527579ef87f643ef2800002e", "_id"=>{"$ne"=>"527579ef87f643ef28000030"}, "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"=>"527579ef87f643ef28000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527579ef87f643ef2800002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800002e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef28000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"527579ef87f643ef28000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef28000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527579ef87f643ef2800002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527579ef87f643ef2800002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ef87f643ef2800002e", "_id"=>{"$ne"=>"527579ef87f643ef28000032"}, "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"=>nil, "site_id"=>"527579ef87f643ef2800002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ef87f643ef28000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527579ef87f643ef2800002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800002e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef28000032"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527579ef87f643ef28000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4778ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef28000032"]}} 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={"site_id"=>"527579ef87f643ef2800002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527579ef87f643ef2800002e", "_id"=>{"$ne"=>"527579ef87f643ef28000033"}, "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"=>nil, "site_id"=>"527579ef87f643ef2800002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527579ef87f643ef28000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527579ef87f643ef2800002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800002e", "template_dependencies.en"=>{"$in"=>["527579ef87f643ef28000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527579ef87f643ef28000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4408ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527579ef87f643ef28000033"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527579ef87f643ef2800002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527579ef87f643ef28000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527579ef87f643ef2800002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527579ef87f643ef28000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527579ef87f643ef2800002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527579ef87f643ef28000036", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC, "entries_custom_fields"=>[{"_id"=>"527579ef87f643ef28000036", "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.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527579ef87f643ef28000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527579ef87f643ef28000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527579ef87f643ef28000035"]}}} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527579ef87f643ef28000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527579ef87f643ef28000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527579ef87f643ef28000035", "content_type_id"=>"527579ef87f643ef28000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527579ef87f643ef2800002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:17:19 UTC, "created_at"=>2013-11-02 22:17:19 UTC}] flags=[] (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000035", "_original_id"=>"527579ef87f643ef28000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527579ef87f643ef28000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527579ef87f643ef2800002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527579ef87f643ef28000035", "_original_id"=>"527579ef87f643ef28000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1309ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:17: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.8709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8678ms) Rendered text template (0.0ms) Completed 200 OK in 8.9ms (Views: 0.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:17: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.9520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "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.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527579ef87f643ef2800001e", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5810ms) Rendered text template (0.0ms) Completed 200 OK in 6.9ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:17: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.9379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527579ef87f643ef2800001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8810ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (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.6189ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5488ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5457ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6199ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.2028ms) 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.8330ms) 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.5009ms) 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.9117ms) 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.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757a1d87f6432471000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ee9bde238b1eb8f78658286596a3f433d45c7d04", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"nMDxDv4pVEQhuqePj7KB", "api_key"=>"d757d5d1b4bda9397be1382f6edd134f12b88f51", "updated_at"=>2013-11-02 22:18:05 UTC, "created_at"=>2013-11-02 22:18:05 UTC}] flags=[] (0.1941ms) 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.8051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757a1d87f6432471000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:18:04 UTC, "updated_at"=>2013-11-02 22:18:05 UTC, "memberships"=>[{"_id"=>"52757a1d87f6432471000003", "role"=>"admin", "account_id"=>"52757a1d87f6432471000001"}]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a1d87f6432471000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a1d87f6432471000002", "_id"=>{"$ne"=>"52757a1d87f6432471000004"}, "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"=>"52757a1d87f6432471000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757a1d87f6432471000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:05 UTC, "created_at"=>2013-11-02 22:18:05 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a1d87f6432471000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "template_dependencies.en"=>{"$in"=>["52757a1d87f6432471000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a1d87f6432471000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a1d87f6432471000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6495ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a1d87f6432471000002", "_id"=>{"$ne"=>"52757a1e87f6432471000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a1d87f6432471000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a1e87f6432471000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757a1d87f6432471000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:06 UTC, "created_at"=>2013-11-02 22:18:06 UTC}] flags=[] (0.2682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "template_dependencies.en"=>{"$in"=>["52757a1e87f6432471000005"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52757a1e87f6432471000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a1e87f6432471000005"]}} 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"=>"52757a1d87f6432471000002", "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"=>"52757a1e87f6432471000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757a1d87f6432471000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757a1e87f6432471000007", "updated_at"=>2013-11-02 22:18:06 UTC, "created_at"=>2013-11-02 22:18:06 UTC, "entries_custom_fields"=>[{"_id"=>"52757a1e87f6432471000007", "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.3099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757a1e87f6432471000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757a1e87f6432471000008", "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", "updated_at"=>2013-11-02 22:18:06 UTC, "created_at"=>2013-11-02 22:18:06 UTC}}} flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757a1e87f6432471000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757a1e87f6432471000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6893ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}}} (0.6232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757a1e87f6432471000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757a1e87f6432471000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757a1e87f6432471000006", "content_type_id"=>"52757a1e87f6432471000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757a1d87f6432471000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:18:06 UTC, "created_at"=>2013-11-02 22:18:06 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757a1f87f643247100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}} 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"=>"52757a1e87f6432471000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3948ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}}} (0.5560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}}} (0.3891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757a1f87f643247100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757a1e87f6432471000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757a1e87f6432471000006", "content_type_id"=>"52757a1e87f6432471000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757a1d87f6432471000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:18:07 UTC, "created_at"=>2013-11-02 22:18:07 UTC}] flags=[] (0.1879ms) 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.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a1d87f6432471000002", "parent_id"=>"52757a1d87f6432471000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a1d87f6432471000004", "site_id"=>"52757a1d87f6432471000002", "_id"=>{"$ne"=>"52757a1f87f643247100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52757a1d87f6432471000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5977ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a1f87f643247100000b", "parent_ids"=>["52757a1d87f6432471000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757a1d87f6432471000002", "parent_id"=>"52757a1d87f6432471000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:07 UTC, "created_at"=>2013-11-02 22:18:07 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "template_dependencies.en"=>{"$in"=>["52757a1f87f643247100000b"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52757a1f87f643247100000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a1f87f643247100000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a1d87f6432471000002", "parent_id"=>"52757a1d87f6432471000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a1d87f6432471000004", "site_id"=>"52757a1d87f6432471000002", "_id"=>{"$ne"=>"52757a2087f643247100000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a1d87f6432471000004", "site_id"=>"52757a1d87f6432471000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757a1d87f6432471000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9081ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a2087f643247100000c", "parent_ids"=>["52757a1d87f6432471000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757a1d87f6432471000002", "parent_id"=>"52757a1d87f6432471000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:08 UTC, "created_at"=>2013-11-02 22:18:08 UTC}] flags=[] (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "template_dependencies.en"=>{"$in"=>["52757a2087f643247100000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52757a2087f643247100000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5028ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2087f643247100000c"]}} 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={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757a1d87f6432471000002"}, "$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"=>"52757a1d87f6432471000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:18:09 UTC}} flags=[] (0.2890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "template_dependencies.en"=>{"$in"=>["52757a1d87f6432471000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6273ms) 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.3128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757a2187f643247100000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:18:04 UTC, "updated_at"=>2013-11-02 22:18:09 UTC, "memberships"=>[{"_id"=>"52757a2187f643247100000e", "role"=>"admin", "account_id"=>"52757a1d87f6432471000001"}]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2187f643247100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2187f643247100000d", "_id"=>{"$ne"=>"52757a2187f643247100000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a2187f643247100000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757a2187f643247100000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:09 UTC, "created_at"=>2013-11-02 22:18:09 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2187f643247100000d", "template_dependencies.en"=>{"$in"=>["52757a2187f643247100000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3016ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a2187f643247100000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2187f643247100000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2187f643247100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2187f643247100000d", "_id"=>{"$ne"=>"52757a2287f6432471000010"}, "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"=>"52757a2187f643247100000d"}, "$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"=>"52757a2287f6432471000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757a2187f643247100000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:10 UTC, "created_at"=>2013-11-02 22:18:10 UTC}] flags=[] (0.1884ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2187f643247100000d", "template_dependencies.en"=>{"$in"=>["52757a2287f6432471000010"]}}, "$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"=>"52757a2287f6432471000010"}, "$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"=>["52757a2287f6432471000010"]}} 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"=>"52757a2187f643247100000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"52757a2187f643247100000d", "_id"=>{"$ne"=>"52757a2287f6432471000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2187f643247100000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4482ms) 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.2968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a2287f6432471000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757a2187f643247100000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:10 UTC, "created_at"=>2013-11-02 22:18:10 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2187f643247100000d", "template_dependencies.en"=>{"$in"=>["52757a2287f6432471000011"]}}, "$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"=>"52757a2287f6432471000011"}, "$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"=>["52757a2287f6432471000011"]}} 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_content_types selector={"site_id"=>"52757a2187f643247100000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757a2287f6432471000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757a2187f643247100000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757a2287f6432471000013", "updated_at"=>2013-11-02 22:18:10 UTC, "created_at"=>2013-11-02 22:18:10 UTC, "entries_custom_fields"=>[{"_id"=>"52757a2287f6432471000013", "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.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757a2287f6432471000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a2287f6432471000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757a2287f6432471000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a2287f6432471000012"]}}} (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757a2287f6432471000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757a2287f6432471000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757a2287f6432471000012", "content_type_id"=>"52757a2287f6432471000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757a2187f643247100000d", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:18:10 UTC, "created_at"=>2013-11-02 22:18:10 UTC}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757a1e87f6432471000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}} 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={"_id"=>{"$ne"=>"52757a1f87f643247100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5128ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757a1e87f6432471000006"} update={"$set"=>{"updated_at"=>2013-11-02 22:18:11 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757a1e87f6432471000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1092ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:18:11 +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.7138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6688ms) Rendered text template (0.0ms) Completed 200 OK in 13.6ms (Views: 8.0ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:18:11 +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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "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.7792ms) Rendered text template (0.0ms) Completed 200 OK in 440.2ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757a1e87f6432471000006"} 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_content_entries selector={"content_type_id"=>"52757a1e87f6432471000006", "updated_at"=>{"$lt"=>2013-11-02 22:18:11 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757a1e87f6432471000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9794ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757a1d87f6432471000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757a1e87f6432471000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"52757a1e87f6432471000009"} update={"$set"=>{"updated_at"=>2013-11-02 22:18:12 UTC}} flags=[] (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757a1d87f6432471000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757a1e87f6432471000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757a1f87f643247100000a"} update={"$set"=>{"updated_at"=>2013-11-02 22:18:12 UTC}} flags=[] (0.1428ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:18:13 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:18:13 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0171ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:18:13 +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.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a1d87f6432471000002", "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.5951ms) Rendered text template (0.0ms) Completed 200 OK in 434.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.6499ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4191ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1683ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7889ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0402ms) 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.3102ms) 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.8049ms) 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.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757a2687f6432471000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"22c308077f732a48be043c84d6b0cd772caf112f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"US6goSkPxqPntLxeAghZ", "api_key"=>"3a1aac9b3ad3c42adf9b15e5a4ed9f8730a8fb10", "updated_at"=>2013-11-02 22:18:14 UTC, "created_at"=>2013-11-02 22:18:14 UTC}] flags=[] (0.1900ms) 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.7191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757a2687f6432471000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:18:04 UTC, "updated_at"=>2013-11-02 22:18:14 UTC, "memberships"=>[{"_id"=>"52757a2687f6432471000017", "role"=>"admin", "account_id"=>"52757a2687f6432471000015"}]}] flags=[] (0.1471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2687f6432471000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2687f6432471000016", "_id"=>{"$ne"=>"52757a2687f6432471000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"52757a2687f6432471000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757a2687f6432471000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:14 UTC, "created_at"=>2013-11-02 22:18:14 UTC}] flags=[] (0.2458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "template_dependencies.en"=>{"$in"=>["52757a2687f6432471000018"]}}, "$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"=>{"parent_id"=>"52757a2687f6432471000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2687f6432471000018"]}} 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"=>"52757a2687f6432471000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2687f6432471000016", "_id"=>{"$ne"=>"52757a2687f6432471000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2687f6432471000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a2687f6432471000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757a2687f6432471000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:14 UTC, "created_at"=>2013-11-02 22:18:14 UTC}] flags=[] (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "template_dependencies.en"=>{"$in"=>["52757a2687f6432471000019"]}}, "$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"=>"52757a2687f6432471000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2687f6432471000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757a2687f6432471000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757a2687f643247100001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757a2687f6432471000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757a2687f643247100001b", "updated_at"=>2013-11-02 22:18:14 UTC, "created_at"=>2013-11-02 22:18:14 UTC, "entries_custom_fields"=>[{"_id"=>"52757a2687f643247100001b", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757a2687f643247100001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757a2687f643247100001c", "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", "updated_at"=>2013-11-02 22:18:14 UTC, "created_at"=>2013-11-02 22:18:14 UTC}}} flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757a2687f643247100001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a2687f643247100001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757a2687f643247100001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a2687f643247100001a"]}}} (0.6311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757a2687f643247100001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757a2687f643247100001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757a2687f643247100001a", "content_type_id"=>"52757a2687f643247100001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757a2687f6432471000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:18:14 UTC, "created_at"=>2013-11-02 22:18:14 UTC}] flags=[] (0.3316ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757a2787f643247100001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a2687f643247100001a"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757a2687f643247100001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a2687f643247100001a"]}}} (0.5739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a2687f643247100001a"]}}} (0.3781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a2687f643247100001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757a2787f643247100001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757a2687f643247100001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757a2687f643247100001a", "content_type_id"=>"52757a2687f643247100001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757a2687f6432471000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:18:15 UTC, "created_at"=>2013-11-02 22:18:15 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.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2687f6432471000016", "parent_id"=>"52757a2687f6432471000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a2687f6432471000018", "site_id"=>"52757a2687f6432471000016", "_id"=>{"$ne"=>"52757a2887f643247100001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757a2687f6432471000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52757a2887f643247100001f", "parent_ids"=>["52757a2687f6432471000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757a2687f6432471000016", "parent_id"=>"52757a2687f6432471000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:16 UTC, "created_at"=>2013-11-02 22:18:16 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "template_dependencies.en"=>{"$in"=>["52757a2887f643247100001f"]}}, "$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"=>"52757a2887f643247100001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3903ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2887f643247100001f"]}} 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.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2687f6432471000016", "parent_id"=>"52757a2687f6432471000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757a2687f6432471000018", "site_id"=>"52757a2687f6432471000016", "_id"=>{"$ne"=>"52757a2887f6432471000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"52757a2687f6432471000018", "site_id"=>"52757a2687f6432471000016"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757a2687f6432471000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a2887f6432471000020", "parent_ids"=>["52757a2687f6432471000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n
    \n {% for result in site.search %}\n
  • {{ result }}
  • \n {% if result.content_type_slug == 'examples' %}\n
  • {{ result.name }}
  • \n {% else %}\n
  • {{ result.title }}
  • \n {% endif %}\n {% endfor %}\n
\n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757a2687f6432471000016", "parent_id"=>"52757a2687f6432471000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:16 UTC, "created_at"=>2013-11-02 22:18:16 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "template_dependencies.en"=>{"$in"=>["52757a2887f6432471000020"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52757a2887f6432471000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2887f6432471000020"]}} 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"=>"52757a2687f6432471000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757a2687f6432471000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757a2687f6432471000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:18:17 UTC}} flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "template_dependencies.en"=>{"$in"=>["52757a2687f6432471000018"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757a2987f6432471000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:18:04 UTC, "updated_at"=>2013-11-02 22:18:17 UTC, "memberships"=>[{"_id"=>"52757a2987f6432471000022", "role"=>"admin", "account_id"=>"52757a2687f6432471000015"}]}] flags=[] (0.3178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2987f6432471000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7243ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2987f6432471000021", "_id"=>{"$ne"=>"52757a2987f6432471000023"}, "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"=>"52757a2987f6432471000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757a2987f6432471000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:17 UTC, "created_at"=>2013-11-02 22:18:17 UTC}] flags=[] (0.3948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2987f6432471000021", "template_dependencies.en"=>{"$in"=>["52757a2987f6432471000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757a2987f6432471000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2987f6432471000023"]}} 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={"site_id"=>"52757a2987f6432471000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"52757a2987f6432471000021", "_id"=>{"$ne"=>"52757a2a87f6432471000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2987f6432471000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52757a2a87f6432471000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757a2987f6432471000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:18 UTC, "created_at"=>2013-11-02 22:18:18 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2987f6432471000021", "template_dependencies.en"=>{"$in"=>["52757a2a87f6432471000024"]}}, "$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"=>"52757a2a87f6432471000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9658ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2a87f6432471000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757a2987f6432471000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2987f6432471000021", "_id"=>{"$ne"=>"52757a2a87f6432471000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757a2987f6432471000021"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3133ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757a2a87f6432471000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757a2987f6432471000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:18:18 UTC, "created_at"=>2013-11-02 22:18:18 UTC}] flags=[] (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2987f6432471000021", "template_dependencies.en"=>{"$in"=>["52757a2a87f6432471000025"]}}, "$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"=>"52757a2a87f6432471000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757a2a87f6432471000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757a2987f6432471000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757a2b87f6432471000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757a2987f6432471000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757a2b87f6432471000027", "updated_at"=>2013-11-02 22:18:19 UTC, "created_at"=>2013-11-02 22:18:19 UTC, "entries_custom_fields"=>[{"_id"=>"52757a2b87f6432471000027", "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"=>"52757a2b87f6432471000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757a2b87f6432471000026"]}} 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"=>"52757a2b87f6432471000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3972ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757a2b87f6432471000026"]}}} (0.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757a2b87f6432471000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757a2b87f6432471000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757a2b87f6432471000026", "content_type_id"=>"52757a2b87f6432471000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757a2987f6432471000021", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:18:19 UTC, "created_at"=>2013-11-02 22:18:19 UTC}] flags=[] (0.1562ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:18: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.6938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8180ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:18: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.6781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "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.6173ms) Rendered text template (0.0ms) Completed 200 OK in 434.7ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:18:20 +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.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "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.5939ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:18:20 +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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) 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 2013-11-02 23:18:20 +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.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757a2687f6432471000016", "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.6580ms) Rendered text template (0.0ms) Completed 200 OK in 432.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.5898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.0501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.6729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0197ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1189ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9201ms) 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.6373ms) 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.5021ms) 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.8647ms) 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.4992ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757add87f643cb4e000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c5b2319c9192f61f7eb48df41f83f1ea9b451e98", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ihpnbBqAT2apXy9qhymy", "api_key"=>"bde5c6b00b49dffc7dbfbb8ef7c99504bea1f494", "updated_at"=>2013-11-02 22:21:17 UTC, "created_at"=>2013-11-02 22:21:17 UTC}] flags=[] (0.2072ms) 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.8869ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757add87f643cb4e000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:21:17 UTC, "updated_at"=>2013-11-02 22:21:17 UTC, "memberships"=>[{"_id"=>"52757add87f643cb4e000003", "role"=>"admin", "account_id"=>"52757add87f643cb4e000001"}]}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757add87f643cb4e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757add87f643cb4e000002", "_id"=>{"$ne"=>"52757ade87f643cb4e000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ade87f643cb4e000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757add87f643cb4e000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:18 UTC, "created_at"=>2013-11-02 22:21:18 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757ade87f643cb4e000004"}, "$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"=>{"site_id"=>"52757add87f643cb4e000002", "template_dependencies.en"=>{"$in"=>["52757ade87f643cb4e000004"]}}, "$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"=>["52757ade87f643cb4e000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757add87f643cb4e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757add87f643cb4e000002", "_id"=>{"$ne"=>"52757ade87f643cb4e000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"52757add87f643cb4e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ade87f643cb4e000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757add87f643cb4e000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:18 UTC, "created_at"=>2013-11-02 22:21:18 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "template_dependencies.en"=>{"$in"=>["52757ade87f643cb4e000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757ade87f643cb4e000005"}, "$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"=>["52757ade87f643cb4e000005"]}} 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"=>"52757add87f643cb4e000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757ade87f643cb4e000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757add87f643cb4e000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757ade87f643cb4e000007", "updated_at"=>2013-11-02 22:21:18 UTC, "created_at"=>2013-11-02 22:21:18 UTC, "entries_custom_fields"=>[{"_id"=>"52757ade87f643cb4e000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757ade87f643cb4e000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757ade87f643cb4e000008", "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", "updated_at"=>2013-11-02 22:21:18 UTC, "created_at"=>2013-11-02 22:21:18 UTC}}} flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757ade87f643cb4e000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ade87f643cb4e000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757ade87f643cb4e000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4458ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ade87f643cb4e000006"]}}} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757ade87f643cb4e000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757ade87f643cb4e000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757ade87f643cb4e000006", "content_type_id"=>"52757ade87f643cb4e000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757add87f643cb4e000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:18 UTC, "created_at"=>2013-11-02 22:21:18 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757adf87f643cb4e00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ade87f643cb4e000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757ade87f643cb4e000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ade87f643cb4e000006"]}}} (0.4261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ade87f643cb4e000006"]}}} (0.3161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ade87f643cb4e000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757adf87f643cb4e00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757ade87f643cb4e000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757ade87f643cb4e000006", "content_type_id"=>"52757ade87f643cb4e000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757add87f643cb4e000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:19 UTC, "created_at"=>2013-11-02 22:21:19 UTC}] flags=[] (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.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757add87f643cb4e000002", "parent_id"=>"52757ade87f643cb4e000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757ade87f643cb4e000004", "site_id"=>"52757add87f643cb4e000002", "_id"=>{"$ne"=>"52757ae087f643cb4e00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757ade87f643cb4e000004"}]}]}, "$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"=>"52757ae087f643cb4e00000b", "parent_ids"=>["52757ade87f643cb4e000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757add87f643cb4e000002", "parent_id"=>"52757ade87f643cb4e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:20 UTC, "created_at"=>2013-11-02 22:21:20 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "template_dependencies.en"=>{"$in"=>["52757ae087f643cb4e00000b"]}}, "$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"=>"52757ae087f643cb4e00000b"}, "$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"=>["52757ae087f643cb4e00000b"]}} 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.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757add87f643cb4e000002", "parent_id"=>"52757ade87f643cb4e000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"52757ade87f643cb4e000004", "site_id"=>"52757add87f643cb4e000002", "_id"=>{"$ne"=>"52757ae087f643cb4e00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757ade87f643cb4e000004", "site_id"=>"52757add87f643cb4e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757ade87f643cb4e000004"}]}]}, "$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"=>"52757ae087f643cb4e00000c", "parent_ids"=>["52757ade87f643cb4e000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757add87f643cb4e000002", "parent_id"=>"52757ade87f643cb4e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:20 UTC, "created_at"=>2013-11-02 22:21:20 UTC}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "template_dependencies.en"=>{"$in"=>["52757ae087f643cb4e00000c"]}}, "$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"=>"52757ae087f643cb4e00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae087f643cb4e00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"52757add87f643cb4e000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757ade87f643cb4e000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:21:21 UTC}} flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "template_dependencies.en"=>{"$in"=>["52757ade87f643cb4e000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757ae187f643cb4e00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:21:17 UTC, "updated_at"=>2013-11-02 22:21:21 UTC, "memberships"=>[{"_id"=>"52757ae187f643cb4e00000e", "role"=>"admin", "account_id"=>"52757add87f643cb4e000001"}]}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757ae187f643cb4e00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae187f643cb4e00000d", "_id"=>{"$ne"=>"52757ae187f643cb4e00000f"}, "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"=>"52757ae187f643cb4e00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757ae187f643cb4e00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:21 UTC, "created_at"=>2013-11-02 22:21:21 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae187f643cb4e00000d", "template_dependencies.en"=>{"$in"=>["52757ae187f643cb4e00000f"]}}, "$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"=>"52757ae187f643cb4e00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae187f643cb4e00000f"]}} 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={"site_id"=>"52757ae187f643cb4e00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae187f643cb4e00000d", "_id"=>{"$ne"=>"52757ae287f643cb4e000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae187f643cb4e00000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52757ae287f643cb4e000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757ae187f643cb4e00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:22 UTC, "created_at"=>2013-11-02 22:21:22 UTC}] flags=[] (0.2651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae187f643cb4e00000d", "template_dependencies.en"=>{"$in"=>["52757ae287f643cb4e000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757ae287f643cb4e000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae287f643cb4e000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757ae187f643cb4e00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae187f643cb4e00000d", "_id"=>{"$ne"=>"52757ae287f643cb4e000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae187f643cb4e00000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ae287f643cb4e000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757ae187f643cb4e00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:22 UTC, "created_at"=>2013-11-02 22:21:22 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae187f643cb4e00000d", "template_dependencies.en"=>{"$in"=>["52757ae287f643cb4e000011"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52757ae287f643cb4e000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae287f643cb4e000011"]}} 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_content_types selector={"site_id"=>"52757ae187f643cb4e00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5739ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757ae387f643cb4e000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757ae187f643cb4e00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757ae387f643cb4e000013", "updated_at"=>2013-11-02 22:21:23 UTC, "created_at"=>2013-11-02 22:21:23 UTC, "entries_custom_fields"=>[{"_id"=>"52757ae387f643cb4e000013", "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.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757ae387f643cb4e000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae387f643cb4e000012"]}} 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"=>"52757ae387f643cb4e000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ae387f643cb4e000012"]}}} (0.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757ae387f643cb4e000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757ae387f643cb4e000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757ae387f643cb4e000012", "content_type_id"=>"52757ae387f643cb4e000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757ae187f643cb4e00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:23 UTC, "created_at"=>2013-11-02 22:21:23 UTC}] flags=[] (0.1600ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:21:23 +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.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6459ms) Rendered text template (0.0ms) Completed 200 OK in 14.6ms (Views: 9.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:21:23 +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.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "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.8337ms) Rendered text template (0.0ms) Completed 200 OK in 446.9ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:21:24 +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.6232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "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.5929ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:21:24 +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.7651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7429ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-02 23:21:24 +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.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757add87f643cb4e000002", "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.7550ms) Rendered text template (0.0ms) Completed 200 OK in 433.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.6139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.8500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3947ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7417ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9606ms) 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.3140ms) 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.9611ms) 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.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757ae587f643cb4e000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"89ee2cb50efe4e1b95fedc9365841cf400682fff", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"L5HpyN6KmpVpqWq4P4sr", "api_key"=>"6e6722093a22e51f11f4e5f788e0cca31b6a6511", "updated_at"=>2013-11-02 22:21:25 UTC, "created_at"=>2013-11-02 22:21:25 UTC}] flags=[] (0.1228ms) 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.8614ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757ae587f643cb4e000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:21:17 UTC, "updated_at"=>2013-11-02 22:21:25 UTC, "memberships"=>[{"_id"=>"52757ae587f643cb4e000017", "role"=>"admin", "account_id"=>"52757ae587f643cb4e000015"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757ae587f643cb4e000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae587f643cb4e000016", "_id"=>{"$ne"=>"52757ae587f643cb4e000018"}, "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"=>"52757ae587f643cb4e000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757ae587f643cb4e000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:25 UTC, "created_at"=>2013-11-02 22:21:25 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "template_dependencies.en"=>{"$in"=>["52757ae587f643cb4e000018"]}}, "$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"=>"52757ae587f643cb4e000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae587f643cb4e000018"]}} 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"=>"52757ae587f643cb4e000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"52757ae587f643cb4e000016", "_id"=>{"$ne"=>"52757ae587f643cb4e000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae587f643cb4e000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ae587f643cb4e000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757ae587f643cb4e000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:25 UTC, "created_at"=>2013-11-02 22:21:25 UTC}] flags=[] (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "template_dependencies.en"=>{"$in"=>["52757ae587f643cb4e000019"]}}, "$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"=>"52757ae587f643cb4e000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae587f643cb4e000019"]}} 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_content_types selector={"site_id"=>"52757ae587f643cb4e000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7548ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757ae587f643cb4e00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757ae587f643cb4e000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757ae587f643cb4e00001b", "updated_at"=>2013-11-02 22:21:25 UTC, "created_at"=>2013-11-02 22:21:25 UTC, "entries_custom_fields"=>[{"_id"=>"52757ae587f643cb4e00001b", "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.2871ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757ae587f643cb4e00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757ae587f643cb4e00001c", "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", "updated_at"=>2013-11-02 22:21:25 UTC, "created_at"=>2013-11-02 22:21:25 UTC}}} flags=[] (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757ae587f643cb4e00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}} 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_content_entries selector={"content_type_id"=>"52757ae587f643cb4e00001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5248ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}}} (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757ae587f643cb4e00001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757ae587f643cb4e00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757ae587f643cb4e00001a", "content_type_id"=>"52757ae587f643cb4e00001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757ae587f643cb4e000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:25 UTC, "created_at"=>2013-11-02 22:21:25 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757ae687f643cb4e00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757ae587f643cb4e00001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}}} (0.5500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}}} (0.3860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757ae687f643cb4e00001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757ae587f643cb4e00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757ae587f643cb4e00001a", "content_type_id"=>"52757ae587f643cb4e00001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757ae587f643cb4e000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:26 UTC, "created_at"=>2013-11-02 22:21:26 UTC}] flags=[] (0.2248ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757ae587f643cb4e000016", "parent_id"=>"52757ae587f643cb4e000018", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"52757ae587f643cb4e000018", "site_id"=>"52757ae587f643cb4e000016", "_id"=>{"$ne"=>"52757ae687f643cb4e00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757ae587f643cb4e000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ae687f643cb4e00001f", "parent_ids"=>["52757ae587f643cb4e000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757ae587f643cb4e000016", "parent_id"=>"52757ae587f643cb4e000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:26 UTC, "created_at"=>2013-11-02 22:21:26 UTC}] flags=[] (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "template_dependencies.en"=>{"$in"=>["52757ae687f643cb4e00001f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757ae687f643cb4e00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae687f643cb4e00001f"]}} 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.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757ae587f643cb4e000016", "parent_id"=>"52757ae587f643cb4e000018", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757ae587f643cb4e000018", "site_id"=>"52757ae587f643cb4e000016", "_id"=>{"$ne"=>"52757ae787f643cb4e000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757ae587f643cb4e000018", "site_id"=>"52757ae587f643cb4e000016"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757ae587f643cb4e000018"}]}]}, "$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"=>"52757ae787f643cb4e000020", "parent_ids"=>["52757ae587f643cb4e000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757ae587f643cb4e000016", "parent_id"=>"52757ae587f643cb4e000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:27 UTC, "created_at"=>2013-11-02 22:21:27 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "template_dependencies.en"=>{"$in"=>["52757ae787f643cb4e000020"]}}, "$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"=>"52757ae787f643cb4e000020"}, "$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"=>["52757ae787f643cb4e000020"]}} 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"=>"52757ae587f643cb4e000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757ae587f643cb4e000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757ae587f643cb4e000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:21:28 UTC}} flags=[] (0.2422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "template_dependencies.en"=>{"$in"=>["52757ae587f643cb4e000018"]}}, "$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.7100ms) 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.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757ae887f643cb4e000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:21:17 UTC, "updated_at"=>2013-11-02 22:21:28 UTC, "memberships"=>[{"_id"=>"52757ae887f643cb4e000022", "role"=>"admin", "account_id"=>"52757ae587f643cb4e000015"}]}] flags=[] (0.1602ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757ae887f643cb4e000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae887f643cb4e000021", "_id"=>{"$ne"=>"52757ae887f643cb4e000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ae887f643cb4e000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757ae887f643cb4e000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:28 UTC, "created_at"=>2013-11-02 22:21:28 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae887f643cb4e000021", "template_dependencies.en"=>{"$in"=>["52757ae887f643cb4e000023"]}}, "$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"=>"52757ae887f643cb4e000023"}, "$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"=>["52757ae887f643cb4e000023"]}} 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"=>"52757ae887f643cb4e000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae887f643cb4e000021", "_id"=>{"$ne"=>"52757ae987f643cb4e000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae887f643cb4e000021"}, "$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"=>"52757ae987f643cb4e000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757ae887f643cb4e000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:29 UTC, "created_at"=>2013-11-02 22:21:29 UTC}] flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae887f643cb4e000021", "template_dependencies.en"=>{"$in"=>["52757ae987f643cb4e000024"]}}, "$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"=>"52757ae987f643cb4e000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae987f643cb4e000024"]}} 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"=>"52757ae887f643cb4e000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757ae887f643cb4e000021", "_id"=>{"$ne"=>"52757ae987f643cb4e000025"}, "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"=>"52757ae887f643cb4e000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757ae987f643cb4e000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757ae887f643cb4e000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:29 UTC, "created_at"=>2013-11-02 22:21:29 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae887f643cb4e000021", "template_dependencies.en"=>{"$in"=>["52757ae987f643cb4e000025"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52757ae987f643cb4e000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757ae987f643cb4e000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757ae887f643cb4e000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4847ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757ae987f643cb4e000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757ae887f643cb4e000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757ae987f643cb4e000027", "updated_at"=>2013-11-02 22:21:29 UTC, "created_at"=>2013-11-02 22:21:29 UTC, "entries_custom_fields"=>[{"_id"=>"52757ae987f643cb4e000027", "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.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757ae987f643cb4e000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae987f643cb4e000026"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757ae987f643cb4e000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757ae987f643cb4e000026"]}}} (0.4992ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757ae987f643cb4e000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757ae987f643cb4e000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757ae987f643cb4e000026", "content_type_id"=>"52757ae987f643cb4e000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757ae887f643cb4e000021", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:29 UTC, "created_at"=>2013-11-02 22:21:29 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757ae587f643cb4e00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}} 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={"_id"=>{"$ne"=>"52757ae687f643cb4e00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}} 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::ContentEntry52757ae587f643cb4e00001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757ae587f643cb4e00001a"} update={"$set"=>{"updated_at"=>2013-11-02 22:21:30 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757ae587f643cb4e00001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1049ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:21: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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6781ms) 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 2013-11-02 23:21: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.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "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.5231ms) Rendered text template (0.0ms) Completed 200 OK in 434.1ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757ae587f643cb4e00001a"} 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"=>"52757ae587f643cb4e00001a", "updated_at"=>{"$lt"=>2013-11-02 22:21:30 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757ae587f643cb4e00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8597ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757ae587f643cb4e000016"}, "$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"=>"52757ae587f643cb4e00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757ae587f643cb4e00001d"} update={"$set"=>{"updated_at"=>2013-11-02 22:21:31 UTC}} flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757ae587f643cb4e000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757ae587f643cb4e00001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757ae687f643cb4e00001e"} update={"$set"=>{"updated_at"=>2013-11-02 22:21:31 UTC}} flags=[] (0.1242ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:21:32 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:21:32 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"52757ae587f643cb4e000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6447ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:21: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.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757ae587f643cb4e000016", "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.6461ms) Rendered text template (0.0ms) Completed 200 OK in 433.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.5500ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.8831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3733ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8402ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8721ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5340ms) 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.8373ms) 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.5631ms) 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.7229ms) 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.5269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757b0687f643b9a6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"fa4f575c9fbc9dda09a8efb972f96d52874979e8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"FNWvyb4xmcsqcybHFADx", "api_key"=>"7eb957cd081dfe7eb98b078b2de9c5102e92157a", "updated_at"=>2013-11-02 22:21:58 UTC, "created_at"=>2013-11-02 22:21:58 UTC}] flags=[] (0.1390ms) 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.8829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b0687f643b9a6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:21:58 UTC, "updated_at"=>2013-11-02 22:21:58 UTC, "memberships"=>[{"_id"=>"52757b0687f643b9a6000003", "role"=>"admin", "account_id"=>"52757b0687f643b9a6000001"}]}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0687f643b9a6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0687f643b9a6000002", "_id"=>{"$ne"=>"52757b0687f643b9a6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52757b0687f643b9a6000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b0687f643b9a6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:58 UTC, "created_at"=>2013-11-02 22:21:58 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b0687f643b9a6000004"}, "$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"=>{"site_id"=>"52757b0687f643b9a6000002", "template_dependencies.en"=>{"$in"=>["52757b0687f643b9a6000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0687f643b9a6000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0687f643b9a6000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0687f643b9a6000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b0687f643b9a6000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0687f643b9a6000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0687f643b9a6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0687f643b9a6000002", "_id"=>{"$ne"=>"52757b0687f643b9a6000006"}, "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"=>"52757b0687f643b9a6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0687f643b9a6000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b0687f643b9a6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:58 UTC, "created_at"=>2013-11-02 22:21:58 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "template_dependencies.en"=>{"$in"=>["52757b0687f643b9a6000006"]}}, "$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"=>"52757b0687f643b9a6000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0687f643b9a6000006"]}} 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_content_types selector={"site_id"=>"52757b0687f643b9a6000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757b0687f643b9a6000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b0687f643b9a6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b0787f643b9a6000008", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC, "entries_custom_fields"=>[{"_id"=>"52757b0787f643b9a6000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b0687f643b9a6000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757b0787f643b9a6000009", "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", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a600000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0687f643b9a6000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b0687f643b9a6000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0687f643b9a6000007"]}}} (0.5648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b0787f643b9a600000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b0687f643b9a6000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b0687f643b9a6000007", "content_type_id"=>"52757b0687f643b9a6000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757b0687f643b9a6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0687f643b9a6000007", "_original_id"=>"52757b0787f643b9a600000a"}, "$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_models documents=[{"_id"=>"52757b0787f643b9a600000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757b0687f643b9a6000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b0687f643b9a6000007", "_original_id"=>"52757b0787f643b9a600000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a600000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0687f643b9a6000007"]}} 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"=>"52757b0687f643b9a6000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0687f643b9a6000007"]}}} (0.4878ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0687f643b9a6000007"]}}} (0.3080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0687f643b9a6000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b0787f643b9a600000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b0687f643b9a6000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b0687f643b9a6000007", "content_type_id"=>"52757b0687f643b9a6000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757b0687f643b9a6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0687f643b9a6000007", "_original_id"=>"52757b0787f643b9a600000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a600000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757b0687f643b9a6000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b0687f643b9a6000007", "_original_id"=>"52757b0787f643b9a600000c", "_keywords"=>["hidden"]}] flags=[] (0.1090ms) 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.7057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0687f643b9a6000002", "parent_id"=>"52757b0687f643b9a6000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b0687f643b9a6000004", "site_id"=>"52757b0687f643b9a6000002", "_id"=>{"$ne"=>"52757b0787f643b9a600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757b0687f643b9a6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"52757b0787f643b9a600000e", "parent_ids"=>["52757b0687f643b9a6000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757b0687f643b9a6000002", "parent_id"=>"52757b0687f643b9a6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a600000e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a600000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a600000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a600000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a600000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757b0687f643b9a6000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a600000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1342ms) 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.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0687f643b9a6000002", "parent_id"=>"52757b0687f643b9a6000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52757b0687f643b9a6000004", "site_id"=>"52757b0687f643b9a6000002", "_id"=>{"$ne"=>"52757b0787f643b9a6000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b0687f643b9a6000004", "site_id"=>"52757b0687f643b9a6000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757b0687f643b9a6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"52757b0787f643b9a6000010", "parent_ids"=>["52757b0687f643b9a6000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757b0687f643b9a6000002", "parent_id"=>"52757b0687f643b9a6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000010"]}}, "$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"=>"52757b0787f643b9a6000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a6000010"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000010"}, "$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_models documents=[{"_id"=>"52757b0787f643b9a6000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757b0687f643b9a6000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000010", "_keywords"=>["en:search"]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"52757b0687f643b9a6000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757b0687f643b9a6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:21:59 UTC}} flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "template_dependencies.en"=>{"$in"=>["52757b0687f643b9a6000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0687f643b9a6000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b0687f643b9a6000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b0687f643b9a6000002"}}} flags=[] (0.1180ms) 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.5412ms) 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.3569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b0787f643b9a6000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:21:58 UTC, "updated_at"=>2013-11-02 22:21:59 UTC, "memberships"=>[{"_id"=>"52757b0787f643b9a6000013", "role"=>"admin", "account_id"=>"52757b0687f643b9a6000001"}]}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a6000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a6000012", "_id"=>{"$ne"=>"52757b0787f643b9a6000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b0787f643b9a6000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a6000012", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000014"]}}, "$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"=>"52757b0787f643b9a6000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a6000014"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000014"}, "$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_models documents=[{"_id"=>"52757b0787f643b9a6000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b0787f643b9a6000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a6000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a6000012", "_id"=>{"$ne"=>"52757b0787f643b9a6000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a6000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b0787f643b9a6000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a6000012", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000016"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a6000016"}, "$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"=>["52757b0787f643b9a6000016"]}} 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_pages selector={"site_id"=>"52757b0787f643b9a6000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a6000012", "_id"=>{"$ne"=>"52757b0787f643b9a6000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a6000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5202ms) 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.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757b0787f643b9a6000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a6000012", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000017"]}}, "$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"=>"52757b0787f643b9a6000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a6000017"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a6000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757b0787f643b9a6000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757b0787f643b9a6000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757b0787f643b9a6000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b0787f643b9a6000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b0787f643b9a600001a", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC, "entries_custom_fields"=>[{"_id"=>"52757b0787f643b9a600001a", "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.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a600001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000019"]}} 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_content_entries selector={"content_type_id"=>"52757b0787f643b9a6000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000019"]}}} (0.5193ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b0787f643b9a600001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b0787f643b9a6000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000019", "content_type_id"=>"52757b0787f643b9a6000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757b0787f643b9a6000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000019", "_original_id"=>"52757b0787f643b9a600001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a600001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757b0787f643b9a6000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000019", "_original_id"=>"52757b0787f643b9a600001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1340ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:21:59 +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.7091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8471ms) Rendered text template (0.0ms) Completed 200 OK in 12.9ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:21:59 +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.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "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.6802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757b0687f643b9a6000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5603ms) Rendered text template (0.0ms) Completed 200 OK in 7.2ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:21:59 +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.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0687f643b9a6000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7532ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (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.5362ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2512ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6578ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5000ms) 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.4282ms) 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.3209ms) 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.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757b0787f643b9a600001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"81dc17d75805107bd6e36e7c8519d9665a4c9089", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"TLof3aHEsg2aCJpXx9Zs", "api_key"=>"82f038ba95f09d5df037bf9b5f9f09370f8854f5", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1161ms) 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.7272ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b0787f643b9a600001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:21:58 UTC, "updated_at"=>2013-11-02 22:21:59 UTC, "memberships"=>[{"_id"=>"52757b0787f643b9a600001f", "role"=>"admin", "account_id"=>"52757b0787f643b9a600001d"}]}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a600001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a600001e", "_id"=>{"$ne"=>"52757b0787f643b9a6000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6328ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b0787f643b9a600001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.2403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52757b0787f643b9a6000020"}, "$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"=>["52757b0787f643b9a6000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a6000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b0787f643b9a600001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a600001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a600001e", "_id"=>{"$ne"=>"52757b0787f643b9a6000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a600001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b0787f643b9a600001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.3636ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52757b0787f643b9a6000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a6000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757b0787f643b9a600001e", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52757b0787f643b9a6000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b0787f643b9a600001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b0787f643b9a6000024", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC, "entries_custom_fields"=>[{"_id"=>"52757b0787f643b9a6000024", "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.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b0787f643b9a6000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757b0787f643b9a6000025", "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", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}}} flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a6000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b0787f643b9a6000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}}} (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b0787f643b9a6000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b0787f643b9a6000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "content_type_id"=>"52757b0787f643b9a6000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757b0787f643b9a600001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "_original_id"=>"52757b0787f643b9a6000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a6000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757b0787f643b9a600001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "_original_id"=>"52757b0787f643b9a6000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a6000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b0787f643b9a6000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4022ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}}} (0.7169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}}} (0.4883ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6509ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b0787f643b9a6000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b0787f643b9a6000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "content_type_id"=>"52757b0787f643b9a6000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757b0787f643b9a600001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "_original_id"=>"52757b0787f643b9a6000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a6000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757b0787f643b9a600001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "_original_id"=>"52757b0787f643b9a6000028", "_keywords"=>["hidden"]}] flags=[] (0.2210ms) 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.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a600001e", "parent_id"=>"52757b0787f643b9a6000020", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"52757b0787f643b9a6000020", "site_id"=>"52757b0787f643b9a600001e", "_id"=>{"$ne"=>"52757b0787f643b9a600002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757b0787f643b9a6000020"}]}]}, "$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"=>"52757b0787f643b9a600002a", "parent_ids"=>["52757b0787f643b9a6000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757b0787f643b9a600001e", "parent_id"=>"52757b0787f643b9a6000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a600002a"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a600002a"}, "$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"=>["52757b0787f643b9a600002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a600002a"}, "$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_models documents=[{"_id"=>"52757b0787f643b9a600002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757b0787f643b9a600001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a600002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1721ms) 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"=>"52757b0787f643b9a600001e", "parent_id"=>"52757b0787f643b9a6000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a6000020", "site_id"=>"52757b0787f643b9a600001e", "_id"=>{"$ne"=>"52757b0787f643b9a600002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a6000020", "site_id"=>"52757b0787f643b9a600001e"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757b0787f643b9a6000020"}]}]}, "$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"=>"52757b0787f643b9a600002c", "parent_ids"=>["52757b0787f643b9a6000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757b0787f643b9a600001e", "parent_id"=>"52757b0787f643b9a6000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.2968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a600002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a600002c"}, "$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"=>["52757b0787f643b9a600002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a600002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a600002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757b0787f643b9a600001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a600002c", "_keywords"=>["en:search"]}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"52757b0787f643b9a600001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4647ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757b0787f643b9a6000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:21:59 UTC}} flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000020"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b0787f643b9a6000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b0787f643b9a600001e"}}} flags=[] (0.1521ms) 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.6380ms) 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.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b0787f643b9a600002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:21:58 UTC, "updated_at"=>2013-11-02 22:21:59 UTC, "memberships"=>[{"_id"=>"52757b0787f643b9a600002f", "role"=>"admin", "account_id"=>"52757b0787f643b9a600001d"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a600002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"52757b0787f643b9a600002e", "_id"=>{"$ne"=>"52757b0787f643b9a6000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b0787f643b9a600002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600002e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000030"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757b0787f643b9a6000030"}, "$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"=>["52757b0787f643b9a6000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a6000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b0787f643b9a600002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b0787f643b9a600002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a600002e", "_id"=>{"$ne"=>"52757b0787f643b9a6000032"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a600002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b0787f643b9a6000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b0787f643b9a600002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600002e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000032"]}}, "$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"=>"52757b0787f643b9a6000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a6000032"]}} 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={"site_id"=>"52757b0787f643b9a600002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b0787f643b9a600002e", "_id"=>{"$ne"=>"52757b0787f643b9a6000033"}, "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"=>nil, "site_id"=>"52757b0787f643b9a600002e"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"52757b0787f643b9a6000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757b0787f643b9a600002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600002e", "template_dependencies.en"=>{"$in"=>["52757b0787f643b9a6000033"]}}, "$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"=>"52757b0787f643b9a6000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b0787f643b9a6000033"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000033"}, "$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_models documents=[{"_id"=>"52757b0787f643b9a6000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757b0787f643b9a600002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b0787f643b9a6000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757b0787f643b9a600002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757b0787f643b9a6000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b0787f643b9a600002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b0787f643b9a6000036", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC, "entries_custom_fields"=>[{"_id"=>"52757b0787f643b9a6000036", "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.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a6000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000035"]}} 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_content_entries selector={"content_type_id"=>"52757b0787f643b9a6000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000035"]}}} (0.7088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b0787f643b9a6000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b0787f643b9a6000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000035", "content_type_id"=>"52757b0787f643b9a6000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757b0787f643b9a600002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:21:59 UTC, "created_at"=>2013-11-02 22:21:59 UTC}] flags=[] (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000035", "_original_id"=>"52757b0787f643b9a6000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b0787f643b9a6000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757b0787f643b9a600002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000035", "_original_id"=>"52757b0787f643b9a6000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a6000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b0787f643b9a6000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1578ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b0787f643b9a6000023"} update={"$set"=>{"updated_at"=>2013-11-02 22:21:59 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b0787f643b9a6000023"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.3128ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:21:59 +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.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7339ms) 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 2013-11-02 23:21:59 +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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757b0787f643b9a600001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b0787f643b9a6000023"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b0787f643b9a6000023", "updated_at"=>{"$lt"=>2013-11-02 22:21:59 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757b0787f643b9a6000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757b0787f643b9a600001e"}, "$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_content_types selector={"$query"=>{"_id"=>"52757b0787f643b9a6000023"}, "$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"=>"52757b0787f643b9a6000026"} update={"$set"=>{"updated_at"=>2013-11-02 22:21:59 UTC}} flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "_original_id"=>"52757b0787f643b9a6000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b0787f643b9a6000027"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757b0787f643b9a600001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757b0787f643b9a600001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757b0787f643b9a6000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757b0787f643b9a6000028"} update={"$set"=>{"updated_at"=>2013-11-02 22:21:59 UTC}} flags=[] (0.1338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b0787f643b9a6000023", "_original_id"=>"52757b0787f643b9a6000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b0787f643b9a6000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757b0787f643b9a600001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1199ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:21:59 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:21:59 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.8099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8280ms) Rendered text template (0.0ms) Completed 200 OK in 6.8ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:21:59 +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.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b0787f643b9a600001e", "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.5503ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757b0787f643b9a600001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5052ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (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.7272ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6571ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4038ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6249ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5391ms) 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"} (0.4199ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0371ms) 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.6018ms) 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 (1.0290ms) 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.9999ms) 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.5870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757b6087f6436a5c000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1b13da481752270e3a779b4d3736c99dcb966dc1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pyifx6cgTUsu86TE1DPx", "api_key"=>"69f339fedb227ceb797242e9b263ece5ad5882a5", "updated_at"=>2013-11-02 22:23:28 UTC, "created_at"=>2013-11-02 22:23:28 UTC}] flags=[] (0.3657ms) 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.2281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b6087f6436a5c000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:23:28 UTC, "updated_at"=>2013-11-02 22:23:28 UTC, "memberships"=>[{"_id"=>"52757b6087f6436a5c000003", "role"=>"admin", "account_id"=>"52757b6087f6436a5c000001"}]}] flags=[] (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6087f6436a5c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.2001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6087f6436a5c000002", "_id"=>{"$ne"=>"52757b6087f6436a5c000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6087f6436a5c000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b6087f6436a5c000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:28 UTC, "created_at"=>2013-11-02 22:23:28 UTC}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6087f6436a5c000004"}, "$orderby"=>{"position"=>1}} 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"=>"52757b6087f6436a5c000002", "template_dependencies.en"=>{"$in"=>["52757b6087f6436a5c000004"]}}, "$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"=>["52757b6087f6436a5c000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6087f6436a5c000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6087f6436a5c000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b6087f6436a5c000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6087f6436a5c000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6087f6436a5c000002", "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"=>"52757b6087f6436a5c000002", "_id"=>{"$ne"=>"52757b6087f6436a5c000006"}, "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"=>"52757b6087f6436a5c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6087f6436a5c000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b6087f6436a5c000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:28 UTC, "created_at"=>2013-11-02 22:23:28 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "template_dependencies.en"=>{"$in"=>["52757b6087f6436a5c000006"]}}, "$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"=>"52757b6087f6436a5c000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b6087f6436a5c000006"]}} 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"=>"52757b6087f6436a5c000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757b6087f6436a5c000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b6087f6436a5c000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b6187f6436a5c000008", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC, "entries_custom_fields"=>[{"_id"=>"52757b6187f6436a5c000008", "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.2699ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b6087f6436a5c000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757b6187f6436a5c000009", "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", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}}} flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6087f6436a5c000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b6087f6436a5c000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6087f6436a5c000007"]}}} (0.4840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b6187f6436a5c00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b6087f6436a5c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b6087f6436a5c000007", "content_type_id"=>"52757b6087f6436a5c000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757b6087f6436a5c000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.2708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6087f6436a5c000007", "_original_id"=>"52757b6187f6436a5c00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c00000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757b6087f6436a5c000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b6087f6436a5c000007", "_original_id"=>"52757b6187f6436a5c00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.2761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6087f6436a5c000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b6087f6436a5c000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0591ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6087f6436a5c000007"]}}} (0.5131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6087f6436a5c000007"]}}} (0.2868ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6087f6436a5c000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b6187f6436a5c00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b6087f6436a5c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b6087f6436a5c000007", "content_type_id"=>"52757b6087f6436a5c000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757b6087f6436a5c000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6087f6436a5c000007", "_original_id"=>"52757b6187f6436a5c00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c00000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757b6087f6436a5c000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b6087f6436a5c000007", "_original_id"=>"52757b6187f6436a5c00000c", "_keywords"=>["hidden"]}] flags=[] (0.1109ms) 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.6082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6087f6436a5c000002", "parent_id"=>"52757b6087f6436a5c000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6087f6436a5c000004", "site_id"=>"52757b6087f6436a5c000002", "_id"=>{"$ne"=>"52757b6187f6436a5c00000e"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757b6087f6436a5c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9563ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c00000e", "parent_ids"=>["52757b6087f6436a5c000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757b6087f6436a5c000002", "parent_id"=>"52757b6087f6436a5c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c00000e"]}}, "$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"=>"52757b6187f6436a5c00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4382ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c00000e"}, "$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_models documents=[{"_id"=>"52757b6187f6436a5c00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757b6087f6436a5c000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2348ms) 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"=>"52757b6087f6436a5c000002", "parent_id"=>"52757b6087f6436a5c000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6087f6436a5c000004", "site_id"=>"52757b6087f6436a5c000002", "_id"=>{"$ne"=>"52757b6187f6436a5c000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6087f6436a5c000004", "site_id"=>"52757b6087f6436a5c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757b6087f6436a5c000004"}]}]}, "$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"=>"52757b6187f6436a5c000010", "parent_ids"=>["52757b6087f6436a5c000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757b6087f6436a5c000002", "parent_id"=>"52757b6087f6436a5c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000010"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000010"}, "$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"=>["52757b6187f6436a5c000010"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757b6087f6436a5c000002"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000010", "_keywords"=>["en:search"]}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "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_sites selector={"$query"=>{"_id"=>"52757b6087f6436a5c000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4318ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757b6087f6436a5c000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:23:29 UTC}} flags=[] (2.0280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "template_dependencies.en"=>{"$in"=>["52757b6087f6436a5c000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6087f6436a5c000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b6087f6436a5c000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b6087f6436a5c000002"}}} flags=[] (0.1192ms) 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.5288ms) 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.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b6187f6436a5c000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:23:28 UTC, "updated_at"=>2013-11-02 22:23:29 UTC, "memberships"=>[{"_id"=>"52757b6187f6436a5c000013", "role"=>"admin", "account_id"=>"52757b6087f6436a5c000001"}]}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c000012", "_id"=>{"$ne"=>"52757b6187f6436a5c000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"52757b6187f6436a5c000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b6187f6436a5c000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c000012", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000014"]}}, "$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"=>"52757b6187f6436a5c000014"}, "$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"=>["52757b6187f6436a5c000014"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b6187f6436a5c000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c000012", "_id"=>{"$ne"=>"52757b6187f6436a5c000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c000012"}, "$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"=>"52757b6187f6436a5c000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b6187f6436a5c000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c000012", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000016"}, "$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"=>["52757b6187f6436a5c000016"]}} 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"=>"52757b6187f6436a5c000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c000012", "_id"=>{"$ne"=>"52757b6187f6436a5c000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c000012"}, "$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={"$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"=>"52757b6187f6436a5c000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757b6187f6436a5c000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c000012", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000017"]}}, "$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"=>"52757b6187f6436a5c000017"}, "$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"=>["52757b6187f6436a5c000017"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757b6187f6436a5c000012"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1926ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757b6187f6436a5c000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757b6187f6436a5c000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b6187f6436a5c000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b6187f6436a5c00001a", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC, "entries_custom_fields"=>[{"_id"=>"52757b6187f6436a5c00001a", "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.1867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c00001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000019"]}} 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"=>"52757b6187f6436a5c000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000019"]}}} (0.4718ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b6187f6436a5c00001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b6187f6436a5c000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000019", "content_type_id"=>"52757b6187f6436a5c000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757b6187f6436a5c000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000019", "_original_id"=>"52757b6187f6436a5c00001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c00001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757b6187f6436a5c000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000019", "_original_id"=>"52757b6187f6436a5c00001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1318ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:23: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.7102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5100ms) Rendered text template (0.0ms) Completed 200 OK in 14.5ms (Views: 8.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:23: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.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "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.7651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757b6087f6436a5c000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6318ms) Rendered text template (0.0ms) Completed 200 OK in 8.0ms (Views: 0.6ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:23: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.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6087f6436a5c000002", "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 5.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.7322ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3039ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6711ms) 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.4992ms) 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.4659ms) 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.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757b6187f6436a5c00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a151ff39c02b8d63fd380fa37bd59fc99d93a313", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yow4ZNqnmw5Bp1ekjGpe", "api_key"=>"fe97c257fa9ceea8f838683cd25dac75d977163c", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1841ms) 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.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b6187f6436a5c00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:23:28 UTC, "updated_at"=>2013-11-02 22:23:29 UTC, "memberships"=>[{"_id"=>"52757b6187f6436a5c00001f", "role"=>"admin", "account_id"=>"52757b6187f6436a5c00001d"}]}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00001e", "_id"=>{"$ne"=>"52757b6187f6436a5c000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52757b6187f6436a5c000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b6187f6436a5c00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52757b6187f6436a5c000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c000020"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (1.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000020"}, "$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_models documents=[{"_id"=>"52757b6187f6436a5c000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b6187f6436a5c00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00001e", "_id"=>{"$ne"=>"52757b6187f6436a5c000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00001e"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b6187f6436a5c00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (1.0459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000022"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000022"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757b6187f6436a5c00001e", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52757b6187f6436a5c000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b6187f6436a5c00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b6187f6436a5c000024", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC, "entries_custom_fields"=>[{"_id"=>"52757b6187f6436a5c000024", "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.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b6187f6436a5c000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757b6187f6436a5c000025", "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", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}}} flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b6187f6436a5c000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}}} (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b6187f6436a5c000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b6187f6436a5c000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "content_type_id"=>"52757b6187f6436a5c000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757b6187f6436a5c00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "_original_id"=>"52757b6187f6436a5c000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757b6187f6436a5c00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "_original_id"=>"52757b6187f6436a5c000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b6187f6436a5c000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3967ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}}} (0.4938ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}}} (0.3068ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b6187f6436a5c000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b6187f6436a5c000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "content_type_id"=>"52757b6187f6436a5c000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757b6187f6436a5c00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "_original_id"=>"52757b6187f6436a5c000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757b6187f6436a5c00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "_original_id"=>"52757b6187f6436a5c000028", "_keywords"=>["hidden"]}] flags=[] (0.1881ms) 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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00001e", "parent_id"=>"52757b6187f6436a5c000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000020", "site_id"=>"52757b6187f6436a5c00001e", "_id"=>{"$ne"=>"52757b6187f6436a5c00002a"}, "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"=>"52757b6187f6436a5c000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c00002a", "parent_ids"=>["52757b6187f6436a5c000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757b6187f6436a5c00001e", "parent_id"=>"52757b6187f6436a5c000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c00002a"]}}, "$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"=>"52757b6187f6436a5c00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5012ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c00002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c00002a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c00002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757b6187f6436a5c00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c00002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2401ms) 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.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00001e", "parent_id"=>"52757b6187f6436a5c000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000020", "site_id"=>"52757b6187f6436a5c00001e", "_id"=>{"$ne"=>"52757b6187f6436a5c00002c"}, "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"=>"52757b6187f6436a5c000020", "site_id"=>"52757b6187f6436a5c00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52757b6187f6436a5c000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c00002c", "parent_ids"=>["52757b6187f6436a5c000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757b6187f6436a5c00001e", "parent_id"=>"52757b6187f6436a5c000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52757b6187f6436a5c00002c"}, "$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"=>["52757b6187f6436a5c00002c"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c00002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757b6187f6436a5c00001e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c00002c", "_keywords"=>["en:search"]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757b6187f6436a5c00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757b6187f6436a5c000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:23:29 UTC}} flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b6187f6436a5c000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b6187f6436a5c00001e"}}} flags=[] (0.1657ms) 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.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757b6187f6436a5c00002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:23:28 UTC, "updated_at"=>2013-11-02 22:23:29 UTC, "memberships"=>[{"_id"=>"52757b6187f6436a5c00002f", "role"=>"admin", "account_id"=>"52757b6187f6436a5c00001d"}]}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00002e", "_id"=>{"$ne"=>"52757b6187f6436a5c000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757b6187f6436a5c00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.4122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00002e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"52757b6187f6436a5c000030"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757b6187f6436a5c00002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00002e", "_id"=>{"$ne"=>"52757b6187f6436a5c000032"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.1061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0502ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757b6187f6436a5c00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.8581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00002e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000032"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c000032"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1254ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757b6187f6436a5c00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757b6187f6436a5c00002e", "_id"=>{"$ne"=>"52757b6187f6436a5c000033"}, "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"=>nil, "site_id"=>"52757b6187f6436a5c00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2892ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757b6187f6436a5c000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757b6187f6436a5c00002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.2613ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00002e", "template_dependencies.en"=>{"$in"=>["52757b6187f6436a5c000033"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757b6187f6436a5c000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8290ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757b6187f6436a5c000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757b6187f6436a5c00002e"}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757b6187f6436a5c000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757b6187f6436a5c00002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5434ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757b6187f6436a5c000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757b6187f6436a5c00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757b6187f6436a5c000036", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC, "entries_custom_fields"=>[{"_id"=>"52757b6187f6436a5c000036", "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.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000035"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b6187f6436a5c000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6540ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000035"]}}} (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757b6187f6436a5c000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757b6187f6436a5c000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000035", "content_type_id"=>"52757b6187f6436a5c000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757b6187f6436a5c00002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:23:29 UTC, "created_at"=>2013-11-02 22:23:29 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000035", "_original_id"=>"52757b6187f6436a5c000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757b6187f6436a5c000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757b6187f6436a5c00002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000035", "_original_id"=>"52757b6187f6436a5c000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1264ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757b6187f6436a5c000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2179ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b6187f6436a5c000023"} update={"$set"=>{"updated_at"=>2013-11-02 22:23:29 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757b6187f6436a5c000023"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2329ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:23: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 (1.0161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7422ms) Rendered text template (0.0ms) Completed 200 OK in 7.5ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:23: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.7370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757b6187f6436a5c00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4244ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757b6187f6436a5c000023"} 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=locomotive_content_entries selector={"content_type_id"=>"52757b6187f6436a5c000023", "updated_at"=>{"$lt"=>2013-11-02 22:23:29 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757b6187f6436a5c000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757b6187f6436a5c00001e"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"52757b6187f6436a5c000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5713ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757b6187f6436a5c000026"} update={"$set"=>{"updated_at"=>2013-11-02 22:23:29 UTC}} flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "_original_id"=>"52757b6187f6436a5c000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b6187f6436a5c000027"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757b6187f6436a5c00001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757b6187f6436a5c00001e"}, "$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_content_types selector={"$query"=>{"_id"=>"52757b6187f6436a5c000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757b6187f6436a5c000028"} update={"$set"=>{"updated_at"=>2013-11-02 22:23:29 UTC}} flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757b6187f6436a5c000023", "_original_id"=>"52757b6187f6436a5c000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757b6187f6436a5c000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757b6187f6436a5c00001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1132ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:23:29 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:23:29 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"52757b6187f6436a5c00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2002ms) Rendered text template (0.0ms) Completed 200 OK in 8.4ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:23: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.7248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757b6187f6436a5c00001e", "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.7272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757b6187f6436a5c00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4339ms) Rendered text template (0.0ms) Completed 200 OK in 7.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.6022ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6123ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4861ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0071ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8750ms) 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.5419ms) 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.6020ms) 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.3003ms) 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.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757d8387f643beef000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7e39a97249f0b75dc86b6ee9aeaf9f85fff8305d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"LpjGz2dee3z3JLddZzFJ", "api_key"=>"7a7e44ee70f6fbf90be12def7be5a5c7716ed778", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.2179ms) 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.8440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757d8387f643beef000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:32:35 UTC, "updated_at"=>2013-11-02 22:32:35 UTC, "memberships"=>[{"_id"=>"52757d8387f643beef000003", "role"=>"admin", "account_id"=>"52757d8387f643beef000001"}]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8387f643beef000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8387f643beef000002", "_id"=>{"$ne"=>"52757d8387f643beef000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757d8387f643beef000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757d8387f643beef000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757d8387f643beef000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.3260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8387f643beef000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8387f643beef000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757d8387f643beef000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8387f643beef000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8387f643beef000002", "_id"=>{"$ne"=>"52757d8387f643beef000006"}, "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"=>"52757d8387f643beef000002"}, "$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"=>"52757d8387f643beef000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757d8387f643beef000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000006"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757d8387f643beef000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8387f643beef000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757d8387f643beef000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757d8387f643beef000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757d8387f643beef000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757d8387f643beef000008", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC, "entries_custom_fields"=>[{"_id"=>"52757d8387f643beef000008", "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.2670ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757d8387f643beef000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757d8387f643beef000009", "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", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}}} flags=[] (0.3240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8387f643beef00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757d8387f643beef000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}}} (0.3648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757d8387f643beef00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757d8387f643beef000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "content_type_id"=>"52757d8387f643beef000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757d8387f643beef000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "_original_id"=>"52757d8387f643beef00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5183ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8387f643beef00000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757d8387f643beef000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "_original_id"=>"52757d8387f643beef00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8387f643beef00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757d8387f643beef000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}}} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}}} (0.3188ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757d8387f643beef00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757d8387f643beef000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "content_type_id"=>"52757d8387f643beef000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757d8387f643beef000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "_original_id"=>"52757d8387f643beef00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8387f643beef00000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757d8387f643beef000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "_original_id"=>"52757d8387f643beef00000c", "_keywords"=>["hidden"]}] flags=[] (0.1721ms) 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"=>"52757d8387f643beef000002", "parent_id"=>"52757d8387f643beef000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757d8387f643beef000004", "site_id"=>"52757d8387f643beef000002", "_id"=>{"$ne"=>"52757d8387f643beef00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757d8387f643beef000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5667ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757d8387f643beef00000e", "parent_ids"=>["52757d8387f643beef000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757d8387f643beef000002", "parent_id"=>"52757d8387f643beef000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.3691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef00000e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757d8387f643beef00000e"}, "$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"=>["52757d8387f643beef00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef00000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8387f643beef00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757d8387f643beef000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8387f643beef000002", "parent_id"=>"52757d8387f643beef000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757d8387f643beef000004", "site_id"=>"52757d8387f643beef000002", "_id"=>{"$ne"=>"52757d8387f643beef000010"}, "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"=>"52757d8387f643beef000004", "site_id"=>"52757d8387f643beef000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757d8387f643beef000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757d8387f643beef000010", "parent_ids"=>["52757d8387f643beef000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757d8387f643beef000002", "parent_id"=>"52757d8387f643beef000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000010"]}}, "$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"=>"52757d8387f643beef000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8387f643beef000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4003ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8387f643beef000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757d8387f643beef000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000010", "_keywords"=>["en:search"]}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757d8387f643beef000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4711ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757d8387f643beef000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:32:35 UTC}} flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757d8387f643beef000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757d8387f643beef000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1831ms) 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.6001ms) 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.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757d8387f643beef000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:32:35 UTC, "updated_at"=>2013-11-02 22:32:35 UTC, "memberships"=>[{"_id"=>"52757d8387f643beef000013", "role"=>"admin", "account_id"=>"52757d8387f643beef000001"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8387f643beef000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"52757d8387f643beef000012", "_id"=>{"$ne"=>"52757d8387f643beef000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52757d8387f643beef000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757d8387f643beef000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000012", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000014"]}}, "$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"=>"52757d8387f643beef000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8387f643beef000014"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000014"}, "$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_models documents=[{"_id"=>"52757d8387f643beef000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757d8387f643beef000012", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8387f643beef000012", "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"=>"52757d8387f643beef000012", "_id"=>{"$ne"=>"52757d8387f643beef000016"}, "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"=>"52757d8387f643beef000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757d8387f643beef000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757d8387f643beef000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000012", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000016"]}}, "$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"=>"52757d8387f643beef000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8387f643beef000016"]}} 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"=>"52757d8387f643beef000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"52757d8387f643beef000012", "_id"=>{"$ne"=>"52757d8387f643beef000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8387f643beef000012"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"52757d8387f643beef000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757d8387f643beef000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000012", "template_dependencies.en"=>{"$in"=>["52757d8387f643beef000017"]}}, "$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"=>"52757d8387f643beef000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8387f643beef000017"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000017"}, "$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_models documents=[{"_id"=>"52757d8387f643beef000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757d8387f643beef000012", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8387f643beef000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757d8387f643beef000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757d8387f643beef000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757d8387f643beef000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757d8387f643beef00001a", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC, "entries_custom_fields"=>[{"_id"=>"52757d8387f643beef00001a", "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.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8387f643beef00001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000019"]}} 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"=>"52757d8387f643beef000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5369ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000019"]}}} (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757d8387f643beef00001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757d8387f643beef000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757d8387f643beef000019", "content_type_id"=>"52757d8387f643beef000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757d8387f643beef000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:32:35 UTC, "created_at"=>2013-11-02 22:32:35 UTC}] flags=[] (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000019", "_original_id"=>"52757d8387f643beef00001b"}, "$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_models documents=[{"_id"=>"52757d8387f643beef00001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757d8387f643beef000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000019", "_original_id"=>"52757d8387f643beef00001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8387f643beef00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8387f643beef00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2558ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757d8387f643beef000007"} update={"$set"=>{"updated_at"=>2013-11-02 22:32:35 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757d8387f643beef000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1140ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:32:35 +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.9151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7470ms) Rendered text template (0.0ms) Completed 200 OK in 15.0ms (Views: 8.2ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:32:35 +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.7412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "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.9263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757d8387f643beef000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) Rendered text template (0.0ms) Completed 200 OK in 8.0ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757d8387f643beef000007"} 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"=>"52757d8387f643beef000007", "updated_at"=>{"$lt"=>2013-11-02 22:32:35 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8387f643beef000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757d8387f643beef000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757d8387f643beef000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6793ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757d8387f643beef00000a"} update={"$set"=>{"updated_at"=>2013-11-02 22:32:35 UTC}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "_original_id"=>"52757d8387f643beef00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6018ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757d8387f643beef00000b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757d8387f643beef000002", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757d8387f643beef000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757d8387f643beef000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757d8387f643beef00000c"} update={"$set"=>{"updated_at"=>2013-11-02 22:32:35 UTC}} flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8387f643beef000007", "_original_id"=>"52757d8387f643beef00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (23.7551ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757d8387f643beef00000d"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757d8387f643beef000002", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1569ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:32:35 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:32:35 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 6.8ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:32:35 +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.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8387f643beef000002", "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.8662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757d8387f643beef000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) Rendered text template (0.0ms) Completed 200 OK in 7.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.5698ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.6711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5051ms) 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.4711ms) 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.1978ms) 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.4053ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757d8487f643beef00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2cd0b26fff729eab1169a7e0d615a367bbc619f8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"kv6LuLBzQQETs6dkxUpE", "api_key"=>"7a9fb4ee6268b6be9f89e592ae4fc98ec64a940b", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.1888ms) 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.4919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757d8487f643beef00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:32:35 UTC, "updated_at"=>2013-11-02 22:32:36 UTC, "memberships"=>[{"_id"=>"52757d8487f643beef00001f", "role"=>"admin", "account_id"=>"52757d8487f643beef00001d"}]}] flags=[] (0.3161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8487f643beef00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8487f643beef00001e", "_id"=>{"$ne"=>"52757d8487f643beef000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52757d8487f643beef000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757d8487f643beef00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef000020"]}}, "$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"=>"52757d8487f643beef000020"}, "$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"=>["52757d8487f643beef000020"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8487f643beef000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757d8487f643beef00001e", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8487f643beef00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8487f643beef00001e", "_id"=>{"$ne"=>"52757d8487f643beef000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7553ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8487f643beef00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52757d8487f643beef000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757d8487f643beef00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef000022"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7319ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8487f643beef000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757d8487f643beef00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757d8487f643beef000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757d8487f643beef00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757d8487f643beef000024", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC, "entries_custom_fields"=>[{"_id"=>"52757d8487f643beef000024", "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.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757d8487f643beef000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757d8487f643beef000025", "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", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}}} flags=[] (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8487f643beef000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757d8487f643beef000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000023"]}}} (0.6533ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757d8487f643beef000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757d8487f643beef000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757d8487f643beef000023", "content_type_id"=>"52757d8487f643beef000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757d8487f643beef00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8487f643beef000023", "_original_id"=>"52757d8487f643beef000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8487f643beef000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757d8487f643beef00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757d8487f643beef000023", "_original_id"=>"52757d8487f643beef000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8487f643beef000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4716ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757d8487f643beef000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000023"]}}} (0.6359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000023"]}}} (0.3791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757d8487f643beef000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757d8487f643beef000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757d8487f643beef000023", "content_type_id"=>"52757d8487f643beef000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757d8487f643beef00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8487f643beef000023", "_original_id"=>"52757d8487f643beef000028"}, "$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_models documents=[{"_id"=>"52757d8487f643beef000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757d8487f643beef00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757d8487f643beef000023", "_original_id"=>"52757d8487f643beef000028", "_keywords"=>["hidden"]}] flags=[] (0.1831ms) 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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8487f643beef00001e", "parent_id"=>"52757d8487f643beef000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef000020", "site_id"=>"52757d8487f643beef00001e", "_id"=>{"$ne"=>"52757d8487f643beef00002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757d8487f643beef000020"}]}]}, "$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"=>"52757d8487f643beef00002a", "parent_ids"=>["52757d8487f643beef000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757d8487f643beef00001e", "parent_id"=>"52757d8487f643beef000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef00002a"]}}, "$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"=>"52757d8487f643beef00002a"}, "$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"=>["52757d8487f643beef00002a"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef00002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8487f643beef00002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757d8487f643beef00001e", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef00002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2062ms) 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.9401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8487f643beef00001e", "parent_id"=>"52757d8487f643beef000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef000020", "site_id"=>"52757d8487f643beef00001e", "_id"=>{"$ne"=>"52757d8487f643beef00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef000020", "site_id"=>"52757d8487f643beef00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757d8487f643beef000020"}]}]}, "$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"=>"52757d8487f643beef00002c", "parent_ids"=>["52757d8487f643beef000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757d8487f643beef00001e", "parent_id"=>"52757d8487f643beef000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.3583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef00002c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef00002c"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["52757d8487f643beef00002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef00002c"}, "$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_models documents=[{"_id"=>"52757d8487f643beef00002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757d8487f643beef00001e", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef00002c", "_keywords"=>["en:search"]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757d8487f643beef00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757d8487f643beef000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:32:36 UTC}} flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef000020"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757d8487f643beef000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757d8487f643beef00001e", :fullpath=>{"en"=>"index"}}}} 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.4940ms) 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.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757d8487f643beef00002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:32:35 UTC, "updated_at"=>2013-11-02 22:32:36 UTC, "memberships"=>[{"_id"=>"52757d8487f643beef00002f", "role"=>"admin", "account_id"=>"52757d8487f643beef00001d"}]}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8487f643beef00002e", "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"=>"52757d8487f643beef00002e", "_id"=>{"$ne"=>"52757d8487f643beef000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"52757d8487f643beef000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757d8487f643beef00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00002e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef000030"]}}, "$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"=>"52757d8487f643beef000030"}, "$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"=>["52757d8487f643beef000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8487f643beef000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757d8487f643beef00002e", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757d8487f643beef00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8487f643beef00002e", "_id"=>{"$ne"=>"52757d8487f643beef000032"}, "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"=>nil, "site_id"=>"52757d8487f643beef00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757d8487f643beef000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757d8487f643beef00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00002e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef000032"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757d8487f643beef000032"]}} 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={"site_id"=>"52757d8487f643beef00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757d8487f643beef00002e", "_id"=>{"$ne"=>"52757d8487f643beef000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"52757d8487f643beef00002e"}, "$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.2630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757d8487f643beef000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757d8487f643beef00002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00002e", "template_dependencies.en"=>{"$in"=>["52757d8487f643beef000033"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757d8487f643beef000033"}, "$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"=>["52757d8487f643beef000033"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8487f643beef000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757d8487f643beef00002e", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757d8487f643beef000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757d8487f643beef00002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757d8487f643beef000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757d8487f643beef00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757d8487f643beef000036", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC, "entries_custom_fields"=>[{"_id"=>"52757d8487f643beef000036", "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.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757d8487f643beef000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000035"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757d8487f643beef000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757d8487f643beef000035"]}}} (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757d8487f643beef000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757d8487f643beef000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757d8487f643beef000035", "content_type_id"=>"52757d8487f643beef000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757d8487f643beef00002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:32:36 UTC, "created_at"=>2013-11-02 22:32:36 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757d8487f643beef000035", "_original_id"=>"52757d8487f643beef000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757d8487f643beef000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757d8487f643beef00002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757d8487f643beef000035", "_original_id"=>"52757d8487f643beef000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1688ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:32:36 +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.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7439ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:32:36 +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.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "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.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757d8487f643beef00001e", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:32:36 +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.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "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.6311ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:32:36 +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.7861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7319ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-02 23:32:36 +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.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757d8487f643beef00001e", "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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757d8487f643beef00001e", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3769ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.9141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.9899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.8121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6502ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5710ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5460ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8750ms) 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.5209ms) 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.5100ms) 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.8130ms) 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.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757e4087f643568a000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f39e1ab1a9dd0fee473d99a0a68057c4682a2327", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Rd5DZ3umu4gMpZ2euRfx", "api_key"=>"60b565c4562ea19eca4c42d0aafdbbf928ee044d", "updated_at"=>2013-11-02 22:35:44 UTC, "created_at"=>2013-11-02 22:35:44 UTC}] flags=[] (0.1509ms) 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.8502ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e4087f643568a000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:35:44 UTC, "updated_at"=>2013-11-02 22:35:44 UTC, "memberships"=>[{"_id"=>"52757e4087f643568a000003", "role"=>"admin", "account_id"=>"52757e4087f643568a000001"}]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4087f643568a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4087f643568a000002", "_id"=>{"$ne"=>"52757e4087f643568a000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4323ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4087f643568a000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e4087f643568a000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:44 UTC, "created_at"=>2013-11-02 22:35:44 UTC}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4087f643568a000004"}, "$orderby"=>{"position"=>1}} 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"=>"52757e4087f643568a000002", "template_dependencies.en"=>{"$in"=>["52757e4087f643568a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4087f643568a000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4087f643568a000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4087f643568a000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757e4087f643568a000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4087f643568a000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4087f643568a000002", "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"=>"52757e4087f643568a000002", "_id"=>{"$ne"=>"52757e4087f643568a000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4087f643568a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4087f643568a000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e4087f643568a000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:44 UTC, "created_at"=>2013-11-02 22:35:44 UTC}] flags=[] (0.2444ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "template_dependencies.en"=>{"$in"=>["52757e4087f643568a000006"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4087f643568a000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4087f643568a000006"]}} 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"=>"52757e4087f643568a000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757e4087f643568a000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e4087f643568a000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e4087f643568a000008", "updated_at"=>2013-11-02 22:35:44 UTC, "created_at"=>2013-11-02 22:35:44 UTC, "entries_custom_fields"=>[{"_id"=>"52757e4087f643568a000008", "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.2449ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e4087f643568a000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757e4087f643568a000009", "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", "updated_at"=>2013-11-02 22:35:44 UTC, "created_at"=>2013-11-02 22:35:44 UTC}}} flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e4087f643568a00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4087f643568a000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e4087f643568a000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4087f643568a000007"]}}} (0.7670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e4087f643568a00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e4087f643568a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e4087f643568a000007", "content_type_id"=>"52757e4087f643568a000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757e4087f643568a000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.3352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4087f643568a000007", "_original_id"=>"52757e4087f643568a00000a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a00000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757e4087f643568a000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757e4087f643568a000007", "_original_id"=>"52757e4087f643568a00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e4187f643568a00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4087f643568a000007"]}} 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"=>"52757e4087f643568a000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5057ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4087f643568a000007"]}}} (0.6073ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4087f643568a000007"]}}} (0.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4087f643568a000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e4187f643568a00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e4087f643568a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e4087f643568a000007", "content_type_id"=>"52757e4087f643568a000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757e4087f643568a000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4087f643568a000007", "_original_id"=>"52757e4187f643568a00000c"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a00000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757e4087f643568a000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757e4087f643568a000007", "_original_id"=>"52757e4187f643568a00000c", "_keywords"=>["hidden"]}] flags=[] (0.1321ms) 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.8440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4087f643568a000002", "parent_id"=>"52757e4087f643568a000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4087f643568a000004", "site_id"=>"52757e4087f643568a000002", "_id"=>{"$ne"=>"52757e4187f643568a00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6096ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757e4087f643568a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a00000e", "parent_ids"=>["52757e4087f643568a000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757e4087f643568a000002", "parent_id"=>"52757e4087f643568a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a00000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a00000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757e4087f643568a000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.7331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4087f643568a000002", "parent_id"=>"52757e4087f643568a000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52757e4087f643568a000004", "site_id"=>"52757e4087f643568a000002", "_id"=>{"$ne"=>"52757e4187f643568a000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4087f643568a000004", "site_id"=>"52757e4087f643568a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6714ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757e4087f643568a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52757e4187f643568a000010", "parent_ids"=>["52757e4087f643568a000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757e4087f643568a000002", "parent_id"=>"52757e4087f643568a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000010"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757e4087f643568a000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000010", "_keywords"=>["en:search"]}] flags=[] (0.1192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "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"=>"52757e4087f643568a000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757e4087f643568a000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:35:45 UTC}} flags=[] (0.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "template_dependencies.en"=>{"$in"=>["52757e4087f643568a000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4087f643568a000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6328ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757e4087f643568a000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757e4087f643568a000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1681ms) 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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e4187f643568a000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:35:44 UTC, "updated_at"=>2013-11-02 22:35:45 UTC, "memberships"=>[{"_id"=>"52757e4187f643568a000013", "role"=>"admin", "account_id"=>"52757e4087f643568a000001"}]}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a000012", "_id"=>{"$ne"=>"52757e4187f643568a000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"52757e4187f643568a000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e4187f643568a000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a000012", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000014"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000014"}, "$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"=>["52757e4187f643568a000014"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757e4187f643568a000012", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a000012", "_id"=>{"$ne"=>"52757e4187f643568a000016"}, "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"=>"52757e4187f643568a000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e4187f643568a000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a000012", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000016"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000016"}, "$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"=>["52757e4187f643568a000016"]}} 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_pages selector={"site_id"=>"52757e4187f643568a000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a000012", "_id"=>{"$ne"=>"52757e4187f643568a000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a000012"}, "$orderby"=>{"position"=>-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"=>{"_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"=>"52757e4187f643568a000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757e4187f643568a000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a000012", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000017"]}}, "$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"=>"52757e4187f643568a000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000017"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757e4187f643568a000012", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757e4187f643568a000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5603ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757e4187f643568a000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e4187f643568a000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e4187f643568a00001a", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC, "entries_custom_fields"=>[{"_id"=>"52757e4187f643568a00001a", "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"=>"52757e4187f643568a00001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000019"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757e4187f643568a000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4117ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000019"]}}} (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e4187f643568a00001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e4187f643568a000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e4187f643568a000019", "content_type_id"=>"52757e4187f643568a000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757e4187f643568a000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000019", "_original_id"=>"52757e4187f643568a00001b"}, "$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_models documents=[{"_id"=>"52757e4187f643568a00001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757e4187f643568a000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000019", "_original_id"=>"52757e4187f643568a00001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1459ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:35:45 +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.8881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6900ms) Rendered text template (0.0ms) Completed 200 OK in 14.6ms (Views: 7.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:35:45 +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.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757e4087f643568a000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5362ms) Rendered text template (0.0ms) Completed 200 OK in 6.7ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:35:45 +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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "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.5991ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:35:45 +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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7489ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-02 23:35:45 +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.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4087f643568a000002", "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.5722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757e4087f643568a000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.6320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.8288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5822ms) 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.3572ms) 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.4261ms) 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.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757e4187f643568a00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d10d951b41202b4b176af09e510dd088d227845d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Dky9MoFkf8xf12Qp4qq7", "api_key"=>"651f801af87acf4a3c2192e62299c13c6bb820a6", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.1931ms) 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.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e4187f643568a00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:35:44 UTC, "updated_at"=>2013-11-02 22:35:45 UTC, "memberships"=>[{"_id"=>"52757e4187f643568a00001f", "role"=>"admin", "account_id"=>"52757e4187f643568a00001d"}]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00001e", "_id"=>{"$ne"=>"52757e4187f643568a000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e4187f643568a00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000020"]}}, "$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"=>"52757e4187f643568a000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000020"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757e4187f643568a00001e", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00001e", "_id"=>{"$ne"=>"52757e4187f643568a000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e4187f643568a00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.3459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000022"]}} 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_content_types selector={"site_id"=>"52757e4187f643568a00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757e4187f643568a000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e4187f643568a00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e4187f643568a000024", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC, "entries_custom_fields"=>[{"_id"=>"52757e4187f643568a000024", "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.4568ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e4187f643568a000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757e4187f643568a000025", "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", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}}} flags=[] (0.2892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e4187f643568a000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e4187f643568a000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}}} (0.6788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e4187f643568a000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e4187f643568a000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "content_type_id"=>"52757e4187f643568a000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757e4187f643568a00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.3536ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "_original_id"=>"52757e4187f643568a000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5686ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757e4187f643568a00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "_original_id"=>"52757e4187f643568a000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e4187f643568a000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e4187f643568a000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5698ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}}} (1.2372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}}} (0.7522ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e4187f643568a000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e4187f643568a000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "content_type_id"=>"52757e4187f643568a000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757e4187f643568a00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "_original_id"=>"52757e4187f643568a000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757e4187f643568a00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "_original_id"=>"52757e4187f643568a000028", "_keywords"=>["hidden"]}] flags=[] (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.6618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00001e", "parent_id"=>"52757e4187f643568a000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000020", "site_id"=>"52757e4187f643568a00001e", "_id"=>{"$ne"=>"52757e4187f643568a00002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757e4187f643568a000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a00002a", "parent_ids"=>["52757e4187f643568a000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757e4187f643568a00001e", "parent_id"=>"52757e4187f643568a000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.2868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a00002a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a00002a"}, "$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"=>["52757e4187f643568a00002a"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a00002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a00002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52757e4187f643568a00001e", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a00002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00001e", "parent_id"=>"52757e4187f643568a000020", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52757e4187f643568a000020", "site_id"=>"52757e4187f643568a00001e", "_id"=>{"$ne"=>"52757e4187f643568a00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000020", "site_id"=>"52757e4187f643568a00001e"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757e4187f643568a000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a00002c", "parent_ids"=>["52757e4187f643568a000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757e4187f643568a00001e", "parent_id"=>"52757e4187f643568a000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a00002c"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4213ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a00002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a00002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52757e4187f643568a00001e", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a00002c", "_keywords"=>["en:search"]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757e4187f643568a00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5121ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757e4187f643568a000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:35:45 UTC}} flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000020"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000020"}, "$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=active_search_mongoid_models selector={"_id"=>"52757e4187f643568a000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757e4187f643568a00001e", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1609ms) 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.5071ms) 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.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e4187f643568a00002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:35:44 UTC, "updated_at"=>2013-11-02 22:35:45 UTC, "memberships"=>[{"_id"=>"52757e4187f643568a00002f", "role"=>"admin", "account_id"=>"52757e4187f643568a00001d"}]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00002e", "_id"=>{"$ne"=>"52757e4187f643568a000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e4187f643568a000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e4187f643568a00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00002e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3448ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52757e4187f643568a00002e", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"52757e4187f643568a00002e", "_id"=>{"$ne"=>"52757e4187f643568a000032"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52757e4187f643568a000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e4187f643568a00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00002e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000032"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000032"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4187f643568a00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00002e", "_id"=>{"$ne"=>"52757e4187f643568a000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4187f643568a00002e"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$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"=>"52757e4187f643568a000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757e4187f643568a00002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00002e", "template_dependencies.en"=>{"$in"=>["52757e4187f643568a000033"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757e4187f643568a000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6127ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4187f643568a000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000033"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7403ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52757e4187f643568a000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52757e4187f643568a00002e", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52757e4187f643568a000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757e4187f643568a00002e", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52757e4187f643568a000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e4187f643568a00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e4187f643568a000036", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC, "entries_custom_fields"=>[{"_id"=>"52757e4187f643568a000036", "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.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e4187f643568a000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000035"]}} 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_entries selector={"content_type_id"=>"52757e4187f643568a000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5562ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000035"]}}} (0.4451ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e4187f643568a000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e4187f643568a000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e4187f643568a000035", "content_type_id"=>"52757e4187f643568a000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757e4187f643568a00002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:35:45 UTC, "created_at"=>2013-11-02 22:35:45 UTC}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000035", "_original_id"=>"52757e4187f643568a000037"}, "$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_models documents=[{"_id"=>"52757e4187f643568a000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52757e4187f643568a00002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000035", "_original_id"=>"52757e4187f643568a000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e4187f643568a000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}} 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={"_id"=>{"$ne"=>"52757e4187f643568a000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e4187f643568a000023"} update={"$set"=>{"updated_at"=>2013-11-02 22:35:45 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1118ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e4187f643568a000023"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.4301ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:35:45 +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.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) Rendered text template (0.0ms) Completed 200 OK in 6.1ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:35:45 +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.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "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.6223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757e4187f643568a00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e4187f643568a000023"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e4187f643568a000023", "updated_at"=>{"$lt"=>2013-11-02 22:35:45 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757e4187f643568a000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757e4187f643568a00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52757e4187f643568a000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757e4187f643568a000026"} update={"$set"=>{"updated_at"=>2013-11-02 22:35:45 UTC}} flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "_original_id"=>"52757e4187f643568a000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757e4187f643568a000027"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52757e4187f643568a00001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757e4187f643568a00001e"}, "$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_content_types selector={"$query"=>{"_id"=>"52757e4187f643568a000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757e4187f643568a000028"} update={"$set"=>{"updated_at"=>2013-11-02 22:35:45 UTC}} flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52757e4187f643568a000023", "_original_id"=>"52757e4187f643568a000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9048ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52757e4187f643568a000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52757e4187f643568a00001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1221ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:35:45 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:35:45 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7861ms) Rendered text template (0.0ms) Completed 200 OK in 6.1ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:35:45 +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.9041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4187f643568a00001e", "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.8080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52757e4187f643568a00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) Rendered text template (0.0ms) Completed 200 OK in 6.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.7231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6232ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.3920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3610ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.3349ms) 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.6349ms) 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.5569ms) 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.2109ms) 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.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757e4f87f643df65000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2b16e4ef0076d4facffffb4ca28b78532d59c345", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"MT6ERePu7QpG5X9pmktF", "api_key"=>"c6cf51fe147054a366dd315d8c6eb9cbac0a1a2d", "updated_at"=>2013-11-02 22:35:59 UTC, "created_at"=>2013-11-02 22:35:59 UTC}] flags=[] (0.2041ms) 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.3072ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e4f87f643df65000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:35:59 UTC, "updated_at"=>2013-11-02 22:35:59 UTC, "memberships"=>[{"_id"=>"52757e4f87f643df65000003", "role"=>"admin", "account_id"=>"52757e4f87f643df65000001"}]}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4f87f643df65000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4f87f643df65000002", "_id"=>{"$ne"=>"52757e4f87f643df65000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52757e4f87f643df65000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e4f87f643df65000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:35:59 UTC, "created_at"=>2013-11-02 22:35:59 UTC}] flags=[] (0.4208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4f87f643df65000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"site_id"=>"52757e4f87f643df65000002", "template_dependencies.en"=>{"$in"=>["52757e4f87f643df65000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e4f87f643df65000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4f87f643df65000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4f87f643df65000002", "_id"=>{"$ne"=>"52757e5087f643df65000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e4f87f643df65000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5087f643df65000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e4f87f643df65000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:00 UTC, "created_at"=>2013-11-02 22:36:00 UTC}] flags=[] (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "template_dependencies.en"=>{"$in"=>["52757e5087f643df65000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e5087f643df65000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5087f643df65000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2933ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52757e4f87f643df65000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5658ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757e5087f643df65000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e4f87f643df65000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e5087f643df65000007", "updated_at"=>2013-11-02 22:36:00 UTC, "created_at"=>2013-11-02 22:36:00 UTC, "entries_custom_fields"=>[{"_id"=>"52757e5087f643df65000007", "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.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e5087f643df65000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757e5087f643df65000008", "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", "updated_at"=>2013-11-02 22:36:00 UTC, "created_at"=>2013-11-02 22:36:00 UTC}}} flags=[] (0.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e5087f643df65000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5087f643df65000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e5087f643df65000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6447ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5087f643df65000006"]}}} (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e5087f643df65000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e5087f643df65000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e5087f643df65000006", "content_type_id"=>"52757e5087f643df65000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757e4f87f643df65000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:36:00 UTC, "created_at"=>2013-11-02 22:36:00 UTC}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e5187f643df6500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5087f643df65000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757e5087f643df65000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5087f643df65000006"]}}} (0.4961ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5087f643df65000006"]}}} (0.3116ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5087f643df65000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e5187f643df6500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e5087f643df65000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e5087f643df65000006", "content_type_id"=>"52757e5087f643df65000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757e4f87f643df65000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:36:01 UTC, "created_at"=>2013-11-02 22:36:01 UTC}] flags=[] (0.1910ms) 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.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e4f87f643df65000002", "parent_id"=>"52757e4f87f643df65000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4f87f643df65000004", "site_id"=>"52757e4f87f643df65000002", "_id"=>{"$ne"=>"52757e5187f643df6500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52757e4f87f643df65000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5187f643df6500000b", "parent_ids"=>["52757e4f87f643df65000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757e4f87f643df65000002", "parent_id"=>"52757e4f87f643df65000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:01 UTC, "created_at"=>2013-11-02 22:36:01 UTC}] flags=[] (0.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "template_dependencies.en"=>{"$in"=>["52757e5187f643df6500000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"52757e5187f643df6500000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5187f643df6500000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1647ms) 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"=>"52757e4f87f643df65000002", "parent_id"=>"52757e4f87f643df65000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4f87f643df65000004", "site_id"=>"52757e4f87f643df65000002", "_id"=>{"$ne"=>"52757e5287f643df6500000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e4f87f643df65000004", "site_id"=>"52757e4f87f643df65000002"}, "$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"=>"52757e4f87f643df65000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5287f643df6500000c", "parent_ids"=>["52757e4f87f643df65000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757e4f87f643df65000002", "parent_id"=>"52757e4f87f643df65000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:02 UTC, "created_at"=>2013-11-02 22:36:02 UTC}] flags=[] (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "template_dependencies.en"=>{"$in"=>["52757e5287f643df6500000c"]}}, "$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"=>"52757e5287f643df6500000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6173ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5287f643df6500000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757e4f87f643df65000002"}, "$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"=>"52757e4f87f643df65000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:36:03 UTC}} flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "template_dependencies.en"=>{"$in"=>["52757e4f87f643df65000004"]}}, "$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.9420ms) 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.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e5387f643df6500000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:35:59 UTC, "updated_at"=>2013-11-02 22:36:03 UTC, "memberships"=>[{"_id"=>"52757e5387f643df6500000e", "role"=>"admin", "account_id"=>"52757e4f87f643df65000001"}]}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e5387f643df6500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5387f643df6500000d", "_id"=>{"$ne"=>"52757e5387f643df6500000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5387f643df6500000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e5387f643df6500000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:03 UTC, "created_at"=>2013-11-02 22:36:03 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5387f643df6500000d", "template_dependencies.en"=>{"$in"=>["52757e5387f643df6500000f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4506ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e5387f643df6500000f"}, "$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"=>["52757e5387f643df6500000f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e5387f643df6500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5387f643df6500000d", "_id"=>{"$ne"=>"52757e5487f643df65000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5387f643df6500000d"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5487f643df65000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e5387f643df6500000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:04 UTC, "created_at"=>2013-11-02 22:36:04 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5387f643df6500000d", "template_dependencies.en"=>{"$in"=>["52757e5487f643df65000010"]}}, "$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"=>"52757e5487f643df65000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5487f643df65000010"]}} 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"=>"52757e5387f643df6500000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5387f643df6500000d", "_id"=>{"$ne"=>"52757e5487f643df65000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9837ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5387f643df6500000d"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"52757e5487f643df65000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757e5387f643df6500000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:04 UTC, "created_at"=>2013-11-02 22:36:04 UTC}] flags=[] (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5387f643df6500000d", "template_dependencies.en"=>{"$in"=>["52757e5487f643df65000011"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"52757e5487f643df65000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4847ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5487f643df65000011"]}} 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_content_types selector={"site_id"=>"52757e5387f643df6500000d", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52757e5487f643df65000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e5387f643df6500000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e5487f643df65000013", "updated_at"=>2013-11-02 22:36:04 UTC, "created_at"=>2013-11-02 22:36:04 UTC, "entries_custom_fields"=>[{"_id"=>"52757e5487f643df65000013", "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"=>"52757e5487f643df65000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5487f643df65000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e5487f643df65000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5487f643df65000012"]}}} (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e5487f643df65000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e5487f643df65000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e5487f643df65000012", "content_type_id"=>"52757e5487f643df65000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757e5387f643df6500000d", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:36:04 UTC, "created_at"=>2013-11-02 22:36:04 UTC}] flags=[] (0.2871ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:36:05 +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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6130ms) Rendered text template (0.0ms) Completed 200 OK in 14.0ms (Views: 8.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:36:05 +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.6261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "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.7272ms) Rendered text template (0.0ms) Completed 200 OK in 436.7ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:36:06 +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.7679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "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.8798ms) Rendered text template (0.0ms) Completed 200 OK in 6.9ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:36:06 +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.7682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8571ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-02 23:36:06 +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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e4f87f643df65000002", "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.7319ms) Rendered text template (0.0ms) Completed 200 OK in 429.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.6490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.9200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4253ms) 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.4370ms) 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.9038ms) 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.3922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52757e5687f643df65000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7ee4e0a9c4c10a1ee44effbc39180b49f90e601b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"fqeozHdjyyGsJUixLxsb", "api_key"=>"e621c2e8b80a652d4385cebce4f9c406aaf7a465", "updated_at"=>2013-11-02 22:36:06 UTC, "created_at"=>2013-11-02 22:36:06 UTC}] flags=[] (0.1652ms) 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.7958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e5687f643df65000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:35:59 UTC, "updated_at"=>2013-11-02 22:36:06 UTC, "memberships"=>[{"_id"=>"52757e5687f643df65000017", "role"=>"admin", "account_id"=>"52757e5687f643df65000015"}]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e5687f643df65000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5687f643df65000016", "_id"=>{"$ne"=>"52757e5687f643df65000018"}, "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"=>"52757e5687f643df65000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e5687f643df65000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:06 UTC, "created_at"=>2013-11-02 22:36:06 UTC}] flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "template_dependencies.en"=>{"$in"=>["52757e5687f643df65000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6337ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e5687f643df65000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5687f643df65000018"]}} 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"=>"52757e5687f643df65000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5687f643df65000016", "_id"=>{"$ne"=>"52757e5787f643df65000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5687f643df65000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52757e5787f643df65000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e5687f643df65000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:07 UTC, "created_at"=>2013-11-02 22:36:07 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "template_dependencies.en"=>{"$in"=>["52757e5787f643df65000019"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"52757e5787f643df65000019"}, "$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"=>["52757e5787f643df65000019"]}} 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"=>"52757e5687f643df65000016", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52757e5787f643df6500001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e5687f643df65000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e5787f643df6500001b", "updated_at"=>2013-11-02 22:36:07 UTC, "created_at"=>2013-11-02 22:36:07 UTC, "entries_custom_fields"=>[{"_id"=>"52757e5787f643df6500001b", "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.2010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e5787f643df6500001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52757e5787f643df6500001c", "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", "updated_at"=>2013-11-02 22:36:07 UTC, "created_at"=>2013-11-02 22:36:07 UTC}}} flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e5787f643df6500001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e5787f643df6500001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}}} (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e5787f643df6500001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e5787f643df6500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e5787f643df6500001a", "content_type_id"=>"52757e5787f643df6500001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52757e5687f643df65000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:36:07 UTC, "created_at"=>2013-11-02 22:36:07 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e5887f643df6500001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}} 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={"content_type_id"=>"52757e5787f643df6500001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}}} (0.4308ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}}} (0.3269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e5887f643df6500001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e5787f643df6500001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e5787f643df6500001a", "content_type_id"=>"52757e5787f643df6500001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52757e5687f643df65000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:36:08 UTC, "created_at"=>2013-11-02 22:36:08 UTC}] flags=[] (0.2661ms) 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.9501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e5687f643df65000016", "parent_id"=>"52757e5687f643df65000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e5687f643df65000018", "site_id"=>"52757e5687f643df65000016", "_id"=>{"$ne"=>"52757e5887f643df6500001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52757e5687f643df65000018"}]}]}, "$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"=>"52757e5887f643df6500001f", "parent_ids"=>["52757e5687f643df65000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52757e5687f643df65000016", "parent_id"=>"52757e5687f643df65000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:08 UTC, "created_at"=>2013-11-02 22:36:08 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "template_dependencies.en"=>{"$in"=>["52757e5887f643df6500001f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52757e5887f643df6500001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6618ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5887f643df6500001f"]}} 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.8352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e5687f643df65000016", "parent_id"=>"52757e5687f643df65000018", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52757e5687f643df65000018", "site_id"=>"52757e5687f643df65000016", "_id"=>{"$ne"=>"52757e5987f643df65000020"}, "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"=>{"parent_id"=>"52757e5687f643df65000018", "site_id"=>"52757e5687f643df65000016"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"52757e5687f643df65000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52757e5987f643df65000020", "parent_ids"=>["52757e5687f643df65000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52757e5687f643df65000016", "parent_id"=>"52757e5687f643df65000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:09 UTC, "created_at"=>2013-11-02 22:36:09 UTC}] flags=[] (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "template_dependencies.en"=>{"$in"=>["52757e5987f643df65000020"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"52757e5987f643df65000020"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6433ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5987f643df65000020"]}} 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"=>{"site_id"=>"52757e5687f643df65000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"52757e5687f643df65000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7100ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52757e5687f643df65000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:36:09 UTC}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "template_dependencies.en"=>{"$in"=>["52757e5687f643df65000018"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6702ms) 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.3579ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52757e5a87f643df65000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:35:59 UTC, "updated_at"=>2013-11-02 22:36:10 UTC, "memberships"=>[{"_id"=>"52757e5a87f643df65000022", "role"=>"admin", "account_id"=>"52757e5687f643df65000015"}]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52757e5a87f643df65000021", "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"=>"52757e5a87f643df65000021", "_id"=>{"$ne"=>"52757e5a87f643df65000023"}, "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"=>"52757e5a87f643df65000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"52757e5a87f643df65000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:10 UTC, "created_at"=>2013-11-02 22:36:10 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5a87f643df65000021", "template_dependencies.en"=>{"$in"=>["52757e5a87f643df65000023"]}}, "$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"=>"52757e5a87f643df65000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5a87f643df65000023"]}} 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={"site_id"=>"52757e5a87f643df65000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"52757e5a87f643df65000021", "_id"=>{"$ne"=>"52757e5b87f643df65000024"}, "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"=>"52757e5a87f643df65000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5b87f643df65000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"52757e5a87f643df65000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:11 UTC, "created_at"=>2013-11-02 22:36:11 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5a87f643df65000021", "template_dependencies.en"=>{"$in"=>["52757e5b87f643df65000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52757e5b87f643df65000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5b87f643df65000024"]}} 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_pages selector={"site_id"=>"52757e5a87f643df65000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5a87f643df65000021", "_id"=>{"$ne"=>"52757e5b87f643df65000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52757e5a87f643df65000021"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52757e5b87f643df65000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"52757e5a87f643df65000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:36:11 UTC, "created_at"=>2013-11-02 22:36:11 UTC}] flags=[] (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5a87f643df65000021", "template_dependencies.en"=>{"$in"=>["52757e5b87f643df65000025"]}}, "$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"=>"52757e5b87f643df65000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52757e5b87f643df65000025"]}} 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_content_types selector={"site_id"=>"52757e5a87f643df65000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52757e5b87f643df65000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52757e5a87f643df65000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52757e5b87f643df65000027", "updated_at"=>2013-11-02 22:36:11 UTC, "created_at"=>2013-11-02 22:36:11 UTC, "entries_custom_fields"=>[{"_id"=>"52757e5b87f643df65000027", "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.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e5b87f643df65000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5b87f643df65000026"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52757e5b87f643df65000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3822ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5b87f643df65000026"]}}} (0.5550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52757e5b87f643df65000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52757e5b87f643df65000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52757e5b87f643df65000026", "content_type_id"=>"52757e5b87f643df65000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52757e5a87f643df65000021", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:36:11 UTC, "created_at"=>2013-11-02 22:36:11 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52757e5787f643df6500001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}} 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={"_id"=>{"$ne"=>"52757e5887f643df6500001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6092ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e5787f643df6500001a"} update={"$set"=>{"updated_at"=>2013-11-02 22:36:12 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0873ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52757e5787f643df6500001a"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1290ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:36:12 +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.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:36:12 +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.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "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.5498ms) Rendered text template (0.0ms) Completed 200 OK in 428.1ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52757e5787f643df6500001a"} 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_content_entries selector={"content_type_id"=>"52757e5787f643df6500001a", "updated_at"=>{"$lt"=>2013-11-02 22:36:12 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52757e5787f643df6500001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757e5687f643df65000016"}, "$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_types selector={"$query"=>{"_id"=>"52757e5787f643df6500001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5262ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757e5787f643df6500001d"} update={"$set"=>{"updated_at"=>2013-11-02 22:36:12 UTC}} flags=[] (0.1447ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52757e5687f643df65000016"}, "$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_content_types selector={"$query"=>{"_id"=>"52757e5787f643df6500001a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52757e5887f643df6500001e"} update={"$set"=>{"updated_at"=>2013-11-02 22:36:13 UTC}} flags=[] (0.1421ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:36:13 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:36:13 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7429ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:36:14 +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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52757e5687f643df65000016", "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.5469ms) Rendered text template (0.0ms) Completed 200 OK in 428.8ms (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 (2.6200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.1429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.9569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3320ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1661ms) 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.6101ms) 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.5519ms) 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.0319ms) 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.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275807f87f6433abd000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c0a5e77129b2bcac2dc8e388383131d0c21e3f85", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"83azYwNrvhvzC9gG3Ppt", "api_key"=>"7182e97b87f975498ba5e0deff12cfbc85de8147", "updated_at"=>2013-11-02 22:45:19 UTC, "created_at"=>2013-11-02 22:45:19 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.8659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275807f87f6433abd000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:45:19 UTC, "updated_at"=>2013-11-02 22:45:19 UTC, "memberships"=>[{"_id"=>"5275807f87f6433abd000003", "role"=>"admin", "account_id"=>"5275807f87f6433abd000001"}]}] flags=[] (0.2968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275807f87f6433abd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275807f87f6433abd000002", "_id"=>{"$ne"=>"5275807f87f6433abd000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4263ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275807f87f6433abd000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275807f87f6433abd000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:19 UTC, "created_at"=>2013-11-02 22:45:19 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275807f87f6433abd000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "template_dependencies.en"=>{"$in"=>["5275807f87f6433abd000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275807f87f6433abd000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275807f87f6433abd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275807f87f6433abd000002", "_id"=>{"$ne"=>"5275808087f6433abd000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275807f87f6433abd000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5275808087f6433abd000005", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275807f87f6433abd000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:20 UTC, "created_at"=>2013-11-02 22:45:20 UTC}] flags=[] (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "template_dependencies.en"=>{"$in"=>["5275808087f6433abd000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5275808087f6433abd000005"}, "$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"=>["5275808087f6433abd000005"]}} 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"=>"5275807f87f6433abd000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275808087f6433abd000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275807f87f6433abd000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275808087f6433abd000007", "updated_at"=>2013-11-02 22:45:20 UTC, "created_at"=>2013-11-02 22:45:20 UTC, "entries_custom_fields"=>[{"_id"=>"5275808087f6433abd000007", "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.2687ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275808087f6433abd000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275808087f6433abd000008", "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", "updated_at"=>2013-11-02 22:45:20 UTC, "created_at"=>2013-11-02 22:45:20 UTC}}} flags=[] (0.4380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275808087f6433abd000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275808087f6433abd000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}}} (0.5221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275808087f6433abd000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275808087f6433abd000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275808087f6433abd000006", "content_type_id"=>"5275808087f6433abd000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275807f87f6433abd000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:45:20 UTC, "created_at"=>2013-11-02 22:45:20 UTC}] flags=[] (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275808187f6433abd00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}} 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_entries selector={"content_type_id"=>"5275808087f6433abd000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3548ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}}} (0.4752ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}}} (0.4113ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275808187f6433abd00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275808087f6433abd000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275808087f6433abd000006", "content_type_id"=>"5275808087f6433abd000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275807f87f6433abd000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:45:21 UTC, "created_at"=>2013-11-02 22:45:21 UTC}] 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.6838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275807f87f6433abd000002", "parent_id"=>"5275807f87f6433abd000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275807f87f6433abd000004", "site_id"=>"5275807f87f6433abd000002", "_id"=>{"$ne"=>"5275808287f6433abd00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5275807f87f6433abd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808287f6433abd00000b", "parent_ids"=>["5275807f87f6433abd000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275807f87f6433abd000002", "parent_id"=>"5275807f87f6433abd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:22 UTC, "created_at"=>2013-11-02 22:45:22 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "template_dependencies.en"=>{"$in"=>["5275808287f6433abd00000b"]}}, "$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"=>"5275808287f6433abd00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808287f6433abd00000b"]}} 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 (1.2569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275807f87f6433abd000002", "parent_id"=>"5275807f87f6433abd000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275807f87f6433abd000004", "site_id"=>"5275807f87f6433abd000002", "_id"=>{"$ne"=>"5275808287f6433abd00000c"}, "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"=>"5275807f87f6433abd000004", "site_id"=>"5275807f87f6433abd000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275807f87f6433abd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808287f6433abd00000c", "parent_ids"=>["5275807f87f6433abd000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275807f87f6433abd000002", "parent_id"=>"5275807f87f6433abd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:22 UTC, "created_at"=>2013-11-02 22:45:22 UTC}] flags=[] (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "template_dependencies.en"=>{"$in"=>["5275808287f6433abd00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"5275808287f6433abd00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808287f6433abd00000c"]}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5275807f87f6433abd000002"}, "$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_pages selector={"_id"=>"5275807f87f6433abd000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:45:23 UTC}} flags=[] (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "template_dependencies.en"=>{"$in"=>["5275807f87f6433abd000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7939ms) 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.3977ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275808387f6433abd00000d", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:45:19 UTC, "updated_at"=>2013-11-02 22:45:23 UTC, "memberships"=>[{"_id"=>"5275808387f6433abd00000e", "role"=>"admin", "account_id"=>"5275807f87f6433abd000001"}]}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275808387f6433abd00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808387f6433abd00000d", "_id"=>{"$ne"=>"5275808387f6433abd00000f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5275808387f6433abd00000f", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275808387f6433abd00000d", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:23 UTC, "created_at"=>2013-11-02 22:45:23 UTC}] flags=[] (0.2244ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808387f6433abd00000d", "template_dependencies.en"=>{"$in"=>["5275808387f6433abd00000f"]}}, "$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"=>"5275808387f6433abd00000f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808387f6433abd00000f"]}} 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"=>"5275808387f6433abd00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808387f6433abd00000d", "_id"=>{"$ne"=>"5275808487f6433abd000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808387f6433abd00000d"}, "$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"=>"5275808487f6433abd000010", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275808387f6433abd00000d", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:24 UTC, "created_at"=>2013-11-02 22:45:24 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808387f6433abd00000d", "template_dependencies.en"=>{"$in"=>["5275808487f6433abd000010"]}}, "$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"=>"5275808487f6433abd000010"}, "$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"=>["5275808487f6433abd000010"]}} 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"=>"5275808387f6433abd00000d", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5275808387f6433abd00000d", "_id"=>{"$ne"=>"5275808487f6433abd000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808387f6433abd00000d"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808487f6433abd000011", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275808387f6433abd00000d", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:24 UTC, "created_at"=>2013-11-02 22:45:24 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808387f6433abd00000d", "template_dependencies.en"=>{"$in"=>["5275808487f6433abd000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275808487f6433abd000011"}, "$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"=>["5275808487f6433abd000011"]}} 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_content_types selector={"site_id"=>"5275808387f6433abd00000d", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275808587f6433abd000012", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275808387f6433abd00000d", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275808587f6433abd000013", "updated_at"=>2013-11-02 22:45:25 UTC, "created_at"=>2013-11-02 22:45:25 UTC, "entries_custom_fields"=>[{"_id"=>"5275808587f6433abd000013", "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.2983ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275808587f6433abd000014"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808587f6433abd000012"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5088ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275808587f6433abd000012", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8309ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808587f6433abd000012"]}}} (0.5078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275808587f6433abd000014", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275808587f6433abd000012", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275808587f6433abd000012", "content_type_id"=>"5275808587f6433abd000012", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275808387f6433abd00000d", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:45:25 UTC, "created_at"=>2013-11-02 22:45:25 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275808087f6433abd000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}} 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_entries selector={"_id"=>{"$ne"=>"5275808187f6433abd00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}} 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::ContentEntry5275808087f6433abd000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1442ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275808087f6433abd000006"} update={"$set"=>{"updated_at"=>2013-11-02 22:45:25 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275808087f6433abd000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1249ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:45:25 +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.7951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6418ms) Rendered text template (0.0ms) Completed 200 OK in 15.4ms (Views: 9.2ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:45:25 +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.6392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "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.5760ms) Rendered text template (0.0ms) Completed 200 OK in 436.2ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275808087f6433abd000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275808087f6433abd000006", "updated_at"=>{"$lt"=>2013-11-02 22:45:25 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5275808087f6433abd000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275807f87f6433abd000002"}, "$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_content_types selector={"$query"=>{"_id"=>"5275808087f6433abd000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5275808087f6433abd000009"} update={"$set"=>{"updated_at"=>2013-11-02 22:45:26 UTC}} flags=[] (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275807f87f6433abd000002"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"5275808087f6433abd000006"}, "$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"=>"5275808187f6433abd00000a"} update={"$set"=>{"updated_at"=>2013-11-02 22:45:26 UTC}} flags=[] (0.1369ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:45:27 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:45:27 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7088ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8478ms) Rendered text template (0.0ms) Completed 200 OK in 6.2ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:45: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.5953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275807f87f6433abd000002", "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.6161ms) Rendered text template (0.0ms) Completed 200 OK in 429.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.8481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8259ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9811ms) 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.3412ms) 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.9987ms) 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.7138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5275808887f6433abd000015", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1ee3e8f4b609510006a4be0d0f5811455f26d726", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"vUq4g83n2Kpz7LZFZ5Vk", "api_key"=>"830528a7d84818f00dca7e1e621f423da3c8726f", "updated_at"=>2013-11-02 22:45:28 UTC, "created_at"=>2013-11-02 22:45:28 UTC}] flags=[] (0.1750ms) 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.8399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275808887f6433abd000016", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:45:19 UTC, "updated_at"=>2013-11-02 22:45:28 UTC, "memberships"=>[{"_id"=>"5275808887f6433abd000017", "role"=>"admin", "account_id"=>"5275808887f6433abd000015"}]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275808887f6433abd000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808887f6433abd000016", "_id"=>{"$ne"=>"5275808887f6433abd000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808887f6433abd000018", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275808887f6433abd000016", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:28 UTC, "created_at"=>2013-11-02 22:45:28 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "template_dependencies.en"=>{"$in"=>["5275808887f6433abd000018"]}}, "$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"=>"5275808887f6433abd000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808887f6433abd000018"]}} 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"=>"5275808887f6433abd000016", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808887f6433abd000016", "_id"=>{"$ne"=>"5275808987f6433abd000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808887f6433abd000016"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808987f6433abd000019", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275808887f6433abd000016", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:29 UTC, "created_at"=>2013-11-02 22:45:29 UTC}] flags=[] (0.2961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "template_dependencies.en"=>{"$in"=>["5275808987f6433abd000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275808987f6433abd000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808987f6433abd000019"]}} 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"=>"5275808887f6433abd000016", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8173ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275808987f6433abd00001a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275808887f6433abd000016", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275808987f6433abd00001b", "updated_at"=>2013-11-02 22:45:29 UTC, "created_at"=>2013-11-02 22:45:29 UTC, "entries_custom_fields"=>[{"_id"=>"5275808987f6433abd00001b", "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.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5275808987f6433abd00001a"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5275808987f6433abd00001c", "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", "updated_at"=>2013-11-02 22:45:29 UTC, "created_at"=>2013-11-02 22:45:29 UTC}}} flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275808987f6433abd00001d"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808987f6433abd00001a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275808987f6433abd00001a", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808987f6433abd00001a"]}}} (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275808987f6433abd00001d", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275808987f6433abd00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275808987f6433abd00001a", "content_type_id"=>"5275808987f6433abd00001a", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5275808887f6433abd000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:45:29 UTC, "created_at"=>2013-11-02 22:45:29 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5275808987f6433abd00001e"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808987f6433abd00001a"]}} 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_content_entries selector={"content_type_id"=>"5275808987f6433abd00001a", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808987f6433abd00001a"]}}} (0.4003ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808987f6433abd00001a"]}}} (0.2770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808987f6433abd00001a"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5012ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275808987f6433abd00001e", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5275808987f6433abd00001a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275808987f6433abd00001a", "content_type_id"=>"5275808987f6433abd00001a", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5275808887f6433abd000016", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:45:29 UTC, "created_at"=>2013-11-02 22:45:29 UTC}] flags=[] (0.1767ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275808887f6433abd000016", "parent_id"=>"5275808887f6433abd000018", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275808887f6433abd000018", "site_id"=>"5275808887f6433abd000016", "_id"=>{"$ne"=>"5275808a87f6433abd00001f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5275808887f6433abd000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808a87f6433abd00001f", "parent_ids"=>["5275808887f6433abd000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5275808887f6433abd000016", "parent_id"=>"5275808887f6433abd000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:30 UTC, "created_at"=>2013-11-02 22:45:30 UTC}] flags=[] (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "template_dependencies.en"=>{"$in"=>["5275808a87f6433abd00001f"]}}, "$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"=>"5275808a87f6433abd00001f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808a87f6433abd00001f"]}} 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.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275808887f6433abd000016", "parent_id"=>"5275808887f6433abd000018", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5275808887f6433abd000018", "site_id"=>"5275808887f6433abd000016", "_id"=>{"$ne"=>"5275808a87f6433abd000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275808887f6433abd000018", "site_id"=>"5275808887f6433abd000016"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5275808887f6433abd000018"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808a87f6433abd000020", "parent_ids"=>["5275808887f6433abd000018"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5275808887f6433abd000016", "parent_id"=>"5275808887f6433abd000018", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:30 UTC, "created_at"=>2013-11-02 22:45:30 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "template_dependencies.en"=>{"$in"=>["5275808a87f6433abd000020"]}}, "$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"=>"5275808a87f6433abd000020"}, "$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"=>["5275808a87f6433abd000020"]}} 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={"$query"=>{"site_id"=>"5275808887f6433abd000016", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5275808887f6433abd000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5275808887f6433abd000018"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:45:31 UTC}} flags=[] (0.2668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "template_dependencies.en"=>{"$in"=>["5275808887f6433abd000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6201ms) 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.3841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5275808c87f6433abd000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:45:19 UTC, "updated_at"=>2013-11-02 22:45:32 UTC, "memberships"=>[{"_id"=>"5275808c87f6433abd000022", "role"=>"admin", "account_id"=>"5275808887f6433abd000015"}]}] flags=[] (0.2358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5275808c87f6433abd000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808c87f6433abd000021", "_id"=>{"$ne"=>"5275808c87f6433abd000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4387ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808c87f6433abd000023", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"5275808c87f6433abd000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:32 UTC, "created_at"=>2013-11-02 22:45:32 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808c87f6433abd000021", "template_dependencies.en"=>{"$in"=>["5275808c87f6433abd000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275808c87f6433abd000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808c87f6433abd000023"]}} 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"=>"5275808c87f6433abd000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808c87f6433abd000021", "_id"=>{"$ne"=>"5275808c87f6433abd000024"}, "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"=>"5275808c87f6433abd000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5275808c87f6433abd000024", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"5275808c87f6433abd000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:32 UTC, "created_at"=>2013-11-02 22:45:32 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808c87f6433abd000021", "template_dependencies.en"=>{"$in"=>["5275808c87f6433abd000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5275808c87f6433abd000024"}, "$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"=>["5275808c87f6433abd000024"]}} 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"=>"5275808c87f6433abd000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4706ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5275808c87f6433abd000021", "_id"=>{"$ne"=>"5275808c87f6433abd000025"}, "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"=>"5275808c87f6433abd000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5275808c87f6433abd000025", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"5275808c87f6433abd000021", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:45:32 UTC, "created_at"=>2013-11-02 22:45:32 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808c87f6433abd000021", "template_dependencies.en"=>{"$in"=>["5275808c87f6433abd000025"]}}, "$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"=>"5275808c87f6433abd000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5275808c87f6433abd000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5275808c87f6433abd000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5275808d87f6433abd000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5275808c87f6433abd000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5275808d87f6433abd000027", "updated_at"=>2013-11-02 22:45:33 UTC, "created_at"=>2013-11-02 22:45:33 UTC, "entries_custom_fields"=>[{"_id"=>"5275808d87f6433abd000027", "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"=>"5275808d87f6433abd000028"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5275808d87f6433abd000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5275808d87f6433abd000026", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7138ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5275808d87f6433abd000026"]}}} (0.8860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5275808d87f6433abd000028", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5275808d87f6433abd000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5275808d87f6433abd000026", "content_type_id"=>"5275808d87f6433abd000026", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5275808c87f6433abd000021", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:45:33 UTC, "created_at"=>2013-11-02 22:45:33 UTC}] flags=[] (0.4437ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:45:34 +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.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6793ms) Rendered text template (0.0ms) Completed 200 OK in 6.7ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:45:34 +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.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "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.8490ms) Rendered text template (0.0ms) Completed 200 OK in 430.1ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:45:34 +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.7799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "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.7439ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:45:34 +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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-02 23:45:34 +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.8469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5275808887f6433abd000016", "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.6318ms) Rendered text template (0.0ms) Completed 200 OK in 429.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.5829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6153ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7958ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0540ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0791ms) 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.7012ms) 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.5162ms) 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.8059ms) 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.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527580ad87f643cb3d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"82de492534696a4374a6ef0d7bcce47e88e59491", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ayKzeqAZYCFL6eXNiRnf", "api_key"=>"ac3008fde9a7067e0a67d1f3cb9e00856c152808", "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}] flags=[] (0.1497ms) 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.9100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527580ad87f643cb3d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:46:05 UTC, "updated_at"=>2013-11-02 22:46:05 UTC, "memberships"=>[{"_id"=>"527580ad87f643cb3d000003", "role"=>"admin", "account_id"=>"527580ad87f643cb3d000001"}]}] flags=[] (0.2837ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ad87f643cb3d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ad87f643cb3d000002", "_id"=>{"$ne"=>"527580ad87f643cb3d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7763ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ad87f643cb3d000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527580ad87f643cb3d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}] flags=[] (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"527580ad87f643cb3d000002", "template_dependencies.en"=>{"$in"=>["527580ad87f643cb3d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5081ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ad87f643cb3d000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ad87f643cb3d000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580ad87f643cb3d000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ad87f643cb3d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ad87f643cb3d000002", "_id"=>{"$ne"=>"527580ad87f643cb3d000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ad87f643cb3d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ad87f643cb3d000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527580ad87f643cb3d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}] flags=[] (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "template_dependencies.en"=>{"$in"=>["527580ad87f643cb3d000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5324ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ad87f643cb3d000006"]}} 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"=>"527580ad87f643cb3d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8149ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527580ad87f643cb3d000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527580ad87f643cb3d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527580ad87f643cb3d000008", "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC, "entries_custom_fields"=>[{"_id"=>"527580ad87f643cb3d000008", "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.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527580ad87f643cb3d000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527580ad87f643cb3d000009", "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", "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}}} flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ad87f643cb3d00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ad87f643cb3d000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580ad87f643cb3d000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ad87f643cb3d000007"]}}} (0.5488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580ad87f643cb3d00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527580ad87f643cb3d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580ad87f643cb3d000007", "content_type_id"=>"527580ad87f643cb3d000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527580ad87f643cb3d000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ad87f643cb3d000007", "_original_id"=>"527580ad87f643cb3d00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ad87f643cb3d00000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527580ad87f643cb3d000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580ad87f643cb3d000007", "_original_id"=>"527580ad87f643cb3d00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ad87f643cb3d00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ad87f643cb3d000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580ad87f643cb3d000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ad87f643cb3d000007"]}}} (0.9301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ad87f643cb3d000007"]}}} (0.8960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ad87f643cb3d000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580ad87f643cb3d00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527580ad87f643cb3d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580ad87f643cb3d000007", "content_type_id"=>"527580ad87f643cb3d000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527580ad87f643cb3d000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}] flags=[] (0.4318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ad87f643cb3d000007", "_original_id"=>"527580ad87f643cb3d00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6158ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ad87f643cb3d00000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527580ad87f643cb3d000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580ad87f643cb3d000007", "_original_id"=>"527580ad87f643cb3d00000c", "_keywords"=>["hidden"]}] flags=[] (0.1962ms) 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.7899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ad87f643cb3d000002", "parent_id"=>"527580ad87f643cb3d000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d000004", "site_id"=>"527580ad87f643cb3d000002", "_id"=>{"$ne"=>"527580ad87f643cb3d00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527580ad87f643cb3d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ad87f643cb3d00000e", "parent_ids"=>["527580ad87f643cb3d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527580ad87f643cb3d000002", "parent_id"=>"527580ad87f643cb3d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:05 UTC, "created_at"=>2013-11-02 22:46:05 UTC}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "template_dependencies.en"=>{"$in"=>["527580ad87f643cb3d00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ad87f643cb3d00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d00000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ad87f643cb3d00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527580ad87f643cb3d000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2077ms) 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"=>"527580ad87f643cb3d000002", "parent_id"=>"527580ad87f643cb3d000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (4.5588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d000004", "site_id"=>"527580ad87f643cb3d000002", "_id"=>{"$ne"=>"527580ad87f643cb3d000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (29.6171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d000004", "site_id"=>"527580ad87f643cb3d000002"}, "$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"=>"527580ad87f643cb3d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ad87f643cb3d000010", "parent_ids"=>["527580ad87f643cb3d000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527580ad87f643cb3d000002", "parent_id"=>"527580ad87f643cb3d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "template_dependencies.en"=>{"$in"=>["527580ad87f643cb3d000010"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ad87f643cb3d000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ad87f643cb3d000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d000010"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527580ad87f643cb3d000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d000010", "_keywords"=>["en:search"]}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"527580ad87f643cb3d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527580ad87f643cb3d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:46:06 UTC}} flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "template_dependencies.en"=>{"$in"=>["527580ad87f643cb3d000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ad87f643cb3d000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527580ad87f643cb3d000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580ad87f643cb3d000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1690ms) 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.5860ms) 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.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527580ae87f643cb3d000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:46:05 UTC, "updated_at"=>2013-11-02 22:46:06 UTC, "memberships"=>[{"_id"=>"527580ae87f643cb3d000013", "role"=>"admin", "account_id"=>"527580ad87f643cb3d000001"}]}] flags=[] (0.4408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527580ae87f643cb3d000012", "_id"=>{"$ne"=>"527580ae87f643cb3d000014"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527580ae87f643cb3d000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527580ae87f643cb3d000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d000012", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000014"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000014"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580ae87f643cb3d000012", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d000012", "_id"=>{"$ne"=>"527580ae87f643cb3d000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527580ae87f643cb3d000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d000012", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000016"]}}, "$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"=>"527580ae87f643cb3d000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7620ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d000012", "_id"=>{"$ne"=>"527580ae87f643cb3d000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7581ms) 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.4561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527580ae87f643cb3d000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d000012", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000017"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000017"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8390ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000017"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000017"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6843ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527580ae87f643cb3d000012", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.4423ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527580ae87f643cb3d000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.5170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527580ae87f643cb3d000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527580ae87f643cb3d000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527580ae87f643cb3d00001a", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC, "entries_custom_fields"=>[{"_id"=>"527580ae87f643cb3d00001a", "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.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ae87f643cb3d00001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580ae87f643cb3d000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5922ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000019"]}}} (0.8359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580ae87f643cb3d00001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527580ae87f643cb3d000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000019", "content_type_id"=>"527580ae87f643cb3d000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527580ae87f643cb3d000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000019", "_original_id"=>"527580ae87f643cb3d00001b"}, "$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_models documents=[{"_id"=>"527580ae87f643cb3d00001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527580ae87f643cb3d000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000019", "_original_id"=>"527580ae87f643cb3d00001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1540ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:46:06 +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.1839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8171ms) Rendered text template (0.0ms) Completed 200 OK in 24.4ms (Views: 13.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-02 23:46:06 +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.6988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "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.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527580ad87f643cb3d000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) Rendered text template (0.0ms) Completed 200 OK in 7.8ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2013-11-02 23:46:06 +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.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "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.7620ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:46:06 +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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-02 23:46:06 +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.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ad87f643cb3d000002", "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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527580ad87f643cb3d000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (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.7260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5502ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.0319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4992ms) 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.5999ms) 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.9282ms) 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.6721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527580ae87f643cb3d00001d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2ac2539c09d35f3236517449aedd435e3d590fbd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"BycSYszyMqxfpm83PCqD", "api_key"=>"cf03acc58c653fffb18165fd9302f646fa60a11e", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.2279ms) 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.9842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527580ae87f643cb3d00001e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:46:05 UTC, "updated_at"=>2013-11-02 22:46:06 UTC, "memberships"=>[{"_id"=>"527580ae87f643cb3d00001f", "role"=>"admin", "account_id"=>"527580ae87f643cb3d00001d"}]}] flags=[] (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527580ae87f643cb3d00001e", "_id"=>{"$ne"=>"527580ae87f643cb3d000020"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000020", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527580ae87f643cb3d00001e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000020"]}}, "$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"=>"527580ae87f643cb3d000020"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000020"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000021", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580ae87f643cb3d00001e", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000020", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d00001e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d00001e", "_id"=>{"$ne"=>"527580ae87f643cb3d000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d00001e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5183ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000022", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527580ae87f643cb3d00001e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000022"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000022"]}} 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_content_types selector={"site_id"=>"527580ae87f643cb3d00001e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527580ae87f643cb3d000023", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527580ae87f643cb3d00001e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527580ae87f643cb3d000024", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC, "entries_custom_fields"=>[{"_id"=>"527580ae87f643cb3d000024", "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.2031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527580ae87f643cb3d000023"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527580ae87f643cb3d000025", "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", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}}} flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ae87f643cb3d000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}} 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_content_entries selector={"content_type_id"=>"527580ae87f643cb3d000023", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5229ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}}} (0.4067ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580ae87f643cb3d000026", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527580ae87f643cb3d000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "content_type_id"=>"527580ae87f643cb3d000023", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527580ae87f643cb3d00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "_original_id"=>"527580ae87f643cb3d000026"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000027", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527580ae87f643cb3d00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "_original_id"=>"527580ae87f643cb3d000026", "_keywords"=>["findable", "entry"]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ae87f643cb3d000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}} 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_entries selector={"content_type_id"=>"527580ae87f643cb3d000023", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4768ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}}} (0.6011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}}} (0.4301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580ae87f643cb3d000028", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527580ae87f643cb3d000023", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "content_type_id"=>"527580ae87f643cb3d000023", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527580ae87f643cb3d00001e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "_original_id"=>"527580ae87f643cb3d000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000029", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527580ae87f643cb3d00001e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "_original_id"=>"527580ae87f643cb3d000028", "_keywords"=>["hidden"]}] flags=[] (0.2739ms) 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.8628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d00001e", "parent_id"=>"527580ae87f643cb3d000020", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000020", "site_id"=>"527580ae87f643cb3d00001e", "_id"=>{"$ne"=>"527580ae87f643cb3d00002a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527580ae87f643cb3d000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d00002a", "parent_ids"=>["527580ae87f643cb3d000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527580ae87f643cb3d00001e", "parent_id"=>"527580ae87f643cb3d000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d00002a"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d00002a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9017ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d00002a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d00002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d00002b", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527580ae87f643cb3d00001e", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d00002a", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2668ms) 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.5411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d00001e", "parent_id"=>"527580ae87f643cb3d000020", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000020", "site_id"=>"527580ae87f643cb3d00001e", "_id"=>{"$ne"=>"527580ae87f643cb3d00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000020", "site_id"=>"527580ae87f643cb3d00001e"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"527580ae87f643cb3d000020"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9789ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d00002c", "parent_ids"=>["527580ae87f643cb3d000020"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527580ae87f643cb3d00001e", "parent_id"=>"527580ae87f643cb3d000020", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d00002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7079ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d00002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d00002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d00002d", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527580ae87f643cb3d00001e", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d00002c", "_keywords"=>["en:search"]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527580ae87f643cb3d00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527580ae87f643cb3d000020"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:46:06 UTC}} flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000020"]}}, "$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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5751ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527580ae87f643cb3d000021"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580ae87f643cb3d00001e", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1750ms) 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.6628ms) 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.3300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527580ae87f643cb3d00002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:46:05 UTC, "updated_at"=>2013-11-02 22:46:06 UTC, "memberships"=>[{"_id"=>"527580ae87f643cb3d00002f", "role"=>"admin", "account_id"=>"527580ae87f643cb3d00001d"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527580ae87f643cb3d00002e", "_id"=>{"$ne"=>"527580ae87f643cb3d000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000030", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527580ae87f643cb3d00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00002e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000030"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"527580ae87f643cb3d000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000031", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580ae87f643cb3d00002e", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000030", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580ae87f643cb3d00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6323ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d00002e", "_id"=>{"$ne"=>"527580ae87f643cb3d000032"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8514ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000032", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527580ae87f643cb3d00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00002e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000032"]}}, "$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"=>"527580ae87f643cb3d000032"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000032"]}} 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_pages selector={"site_id"=>"527580ae87f643cb3d00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d00002e", "_id"=>{"$ne"=>"527580ae87f643cb3d000033"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580ae87f643cb3d00002e"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580ae87f643cb3d000033", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527580ae87f643cb3d00002e", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00002e", "template_dependencies.en"=>{"$in"=>["527580ae87f643cb3d000033"]}}, "$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"=>"527580ae87f643cb3d000033"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580ae87f643cb3d000033"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000033"}, "$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_models documents=[{"_id"=>"527580ae87f643cb3d000034", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527580ae87f643cb3d00002e", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580ae87f643cb3d000033", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527580ae87f643cb3d00002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527580ae87f643cb3d000035", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527580ae87f643cb3d00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527580ae87f643cb3d000036", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC, "entries_custom_fields"=>[{"_id"=>"527580ae87f643cb3d000036", "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.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ae87f643cb3d000037"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000035"]}} 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"=>"527580ae87f643cb3d000035", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5236ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000035"]}}} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580ae87f643cb3d000037", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527580ae87f643cb3d000035", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000035", "content_type_id"=>"527580ae87f643cb3d000035", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527580ae87f643cb3d00002e", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:06 UTC, "created_at"=>2013-11-02 22:46:06 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000035", "_original_id"=>"527580ae87f643cb3d000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4940ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580ae87f643cb3d000038", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527580ae87f643cb3d00002e", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000035", "_original_id"=>"527580ae87f643cb3d000037", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580ae87f643cb3d000026"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}} flags=[:slave_ok] limit=0 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={"_id"=>{"$ne"=>"527580ae87f643cb3d000028"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527580ae87f643cb3d000023"} update={"$set"=>{"updated_at"=>2013-11-02 22:46:06 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580ae87f643cb3d000023"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1149ms) Started GET "/" for 127.0.0.1 at 2013-11-02 23:46:06 +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.9108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 6.0ms (Views: 0.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:46:06 +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.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "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.8399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527580ae87f643cb3d00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527580ae87f643cb3d000023"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580ae87f643cb3d000023", "updated_at"=>{"$lt"=>2013-11-02 22:46:06 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527580ae87f643cb3d000023"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527580ae87f643cb3d00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"527580ae87f643cb3d000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527580ae87f643cb3d000026"} update={"$set"=>{"updated_at"=>2013-11-02 22:46:06 UTC}} flags=[] (0.1478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "_original_id"=>"527580ae87f643cb3d000026"}, "$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_models selector={"_id"=>"527580ae87f643cb3d000027"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527580ae87f643cb3d00001e", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527580ae87f643cb3d00001e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"527580ae87f643cb3d000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527580ae87f643cb3d000028"} update={"$set"=>{"updated_at"=>2013-11-02 22:46:06 UTC}} flags=[] (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580ae87f643cb3d000023", "_original_id"=>"527580ae87f643cb3d000028"}, "$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_models selector={"_id"=>"527580ae87f643cb3d000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527580ae87f643cb3d00001e", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1230ms) Started GET "/en/" for 127.0.0.1 at 2013-11-02 23:46:06 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-02 23:46:06 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6154ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-02 23:46:06 +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.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580ae87f643cb3d00001e", "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.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527580ae87f643cb3d00001e", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4563ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (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.5078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6669ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6373ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6180ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0140ms) 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.5457ms) 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.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.7279ms) 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.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527580c087f6432a10000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"987ddf100b2b87c5b6d44d4013e73d6b97b8c302", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"SBP6iLgPaqJKMgLQxDFe", "api_key"=>"60821263bd4e4b16dc7682624e3b3002166034c1", "updated_at"=>2013-11-02 22:46:24 UTC, "created_at"=>2013-11-02 22:46:24 UTC}] flags=[] (0.1779ms) 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.7548ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527580c087f6432a10000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-02 22:46:24 UTC, "updated_at"=>2013-11-02 22:46:24 UTC, "memberships"=>[{"_id"=>"527580c087f6432a10000003", "role"=>"admin", "account_id"=>"527580c087f6432a10000001"}]}] flags=[] (0.2668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c087f6432a10000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c087f6432a10000002", "_id"=>{"$ne"=>"527580c087f6432a10000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580c087f6432a10000004", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527580c087f6432a10000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:24 UTC, "created_at"=>2013-11-02 22:46:24 UTC}] flags=[] (0.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580c087f6432a10000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002", "template_dependencies.en"=>{"$in"=>["527580c087f6432a10000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5350ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580c087f6432a10000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580c087f6432a10000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c087f6432a10000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580c087f6432a10000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580c087f6432a10000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c087f6432a10000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c087f6432a10000002", "_id"=>{"$ne"=>"527580c087f6432a10000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c087f6432a10000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580c087f6432a10000006", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527580c087f6432a10000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:24 UTC, "created_at"=>2013-11-02 22:46:24 UTC}] flags=[] (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002", "template_dependencies.en"=>{"$in"=>["527580c087f6432a10000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527580c087f6432a10000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5050ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580c087f6432a10000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527580c087f6432a10000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527580c087f6432a10000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527580c087f6432a10000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527580c187f6432a10000008", "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC, "entries_custom_fields"=>[{"_id"=>"527580c187f6432a10000008", "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.2658ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527580c087f6432a10000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527580c187f6432a10000009", "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", "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580c187f6432a1000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580c087f6432a10000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580c087f6432a10000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580c087f6432a10000007"]}}} (0.5610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580c187f6432a1000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527580c087f6432a10000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580c087f6432a10000007", "content_type_id"=>"527580c087f6432a10000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527580c087f6432a10000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580c087f6432a10000007", "_original_id"=>"527580c187f6432a1000000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c187f6432a1000000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527580c087f6432a10000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580c087f6432a10000007", "_original_id"=>"527580c187f6432a1000000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1197ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580c187f6432a1000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527580c087f6432a10000007"]}} 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"=>"527580c087f6432a10000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580c087f6432a10000007"]}}} (0.3531ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580c087f6432a10000007"]}}} (0.3252ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580c087f6432a10000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580c187f6432a1000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527580c087f6432a10000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580c087f6432a10000007", "content_type_id"=>"527580c087f6432a10000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527580c087f6432a10000002", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.2809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580c087f6432a10000007", "_original_id"=>"527580c187f6432a1000000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c187f6432a1000000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527580c087f6432a10000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580c087f6432a10000007", "_original_id"=>"527580c187f6432a1000000c", "_keywords"=>["hidden"]}] flags=[] (0.1848ms) 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.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c087f6432a10000002", "parent_id"=>"527580c087f6432a10000004", "$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"=>"527580c087f6432a10000004", "site_id"=>"527580c087f6432a10000002", "_id"=>{"$ne"=>"527580c187f6432a1000000e"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"527580c087f6432a10000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580c187f6432a1000000e", "parent_ids"=>["527580c087f6432a10000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>"This is what you were looking for"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527580c087f6432a10000002", "parent_id"=>"527580c087f6432a10000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002", "template_dependencies.en"=>{"$in"=>["527580c187f6432a1000000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580c187f6432a1000000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3662ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580c187f6432a1000000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a1000000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c187f6432a1000000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527580c087f6432a10000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a1000000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1791ms) 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.7520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c087f6432a10000002", "parent_id"=>"527580c087f6432a10000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580c087f6432a10000004", "site_id"=>"527580c087f6432a10000002", "_id"=>{"$ne"=>"527580c187f6432a10000010"}, "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"=>"527580c087f6432a10000004", "site_id"=>"527580c087f6432a10000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527580c087f6432a10000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580c187f6432a10000010", "parent_ids"=>["527580c087f6432a10000004"], "depth"=>1, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "published"=>true, "raw_template"=>{"en"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527580c087f6432a10000002", "parent_id"=>"527580c087f6432a10000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002", "template_dependencies.en"=>{"$in"=>["527580c187f6432a10000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527580c187f6432a10000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580c187f6432a10000010"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a10000010"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c187f6432a10000011", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527580c087f6432a10000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a10000010", "_keywords"=>["en:search"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527580c087f6432a10000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527580c087f6432a10000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-02 22:46:25 UTC}} flags=[] (0.2863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002", "template_dependencies.en"=>{"$in"=>["527580c087f6432a10000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580c087f6432a10000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527580c087f6432a10000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580c087f6432a10000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1569ms) 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.7951ms) 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.8030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527580c187f6432a10000012", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-02 22:46:24 UTC, "updated_at"=>2013-11-02 22:46:25 UTC, "memberships"=>[{"_id"=>"527580c187f6432a10000013", "role"=>"admin", "account_id"=>"527580c087f6432a10000001"}]}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c187f6432a10000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527580c187f6432a10000012", "_id"=>{"$ne"=>"527580c187f6432a10000014"}, "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"=>"527580c187f6432a10000014", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the home page"}, "site_id"=>"527580c187f6432a10000012", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c187f6432a10000012", "template_dependencies.en"=>{"$in"=>["527580c187f6432a10000014"]}}, "$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"=>"527580c187f6432a10000014"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527580c187f6432a10000014"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a10000014"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c187f6432a10000015", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527580c187f6432a10000012", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a10000014", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c187f6432a10000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5357ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c187f6432a10000012", "_id"=>{"$ne"=>"527580c187f6432a10000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c187f6432a10000012"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5858ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580c187f6432a10000016", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "published"=>true, "templatized"=>false, "templatized_from_parent"=>false, "redirect"=>false, "raw_template"=>{"en"=>"Content of the 404 page"}, "site_id"=>"527580c187f6432a10000012", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c187f6432a10000012", "template_dependencies.en"=>{"$in"=>["527580c187f6432a10000016"]}}, "$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"=>"527580c187f6432a10000016"}, "$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"=>["527580c187f6432a10000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527580c187f6432a10000012", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c187f6432a10000012", "_id"=>{"$ne"=>"527580c187f6432a10000017"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527580c187f6432a10000012"}, "$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.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527580c187f6432a10000017", "parent_ids"=>[], "depth"=>0, "template_dependencies"=>{"en"=>[]}, "snippet_dependencies"=>{"en"=>[]}, "redirect_type"=>301, "listed"=>true, "cache_strategy"=>"none", "response_type"=>"text/html", "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"=>"527580c187f6432a10000012", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.4480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c187f6432a10000012", "template_dependencies.en"=>{"$in"=>["527580c187f6432a10000017"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527580c187f6432a10000017"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["527580c187f6432a10000017"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a10000017"}, "$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_models documents=[{"_id"=>"527580c187f6432a10000018", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527580c187f6432a10000012", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527580c187f6432a10000017", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527580c187f6432a10000012", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527580c187f6432a10000019", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527580c187f6432a10000012", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527580c187f6432a1000001a", "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC, "entries_custom_fields"=>[{"_id"=>"527580c187f6432a1000001a", "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.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527580c187f6432a1000001b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527580c187f6432a10000019"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527580c187f6432a10000019", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527580c187f6432a10000019"]}}} (0.5379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527580c187f6432a1000001b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527580c187f6432a10000019", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527580c187f6432a10000019", "content_type_id"=>"527580c187f6432a10000019", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527580c187f6432a10000012", "_label_field_name"=>"name", "updated_at"=>2013-11-02 22:46:25 UTC, "created_at"=>2013-11-02 22:46:25 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527580c187f6432a10000019", "_original_id"=>"527580c187f6432a1000001b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527580c187f6432a1000001c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527580c187f6432a10000012", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527580c187f6432a10000019", "_original_id"=>"527580c187f6432a1000001b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1512ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-02 23:46:26 +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.9646ms) 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.7601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527580c087f6432a10000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5591ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (27.9ms) Completed 200 OK in 59.6ms (Views: 50.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-02 23:46:26 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (18ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-11-02 23:46:26 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (20ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-02 23:46:26 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-02 23:46:26 +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.8938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527580c087f6432a10000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8712ms) 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.8590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527580c087f6432a10000001"} update={"$set"=>{"remember_created_at"=>2013-11-02 22:46:26 UTC, "updated_at"=>2013-11-02 22:46:26 UTC}} flags=[] (0.3083ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527580c087f6432a10000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-02 22:46:26 UTC, "current_sign_in_at"=>2013-11-02 22:46:26 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-02 22:46:26 UTC}} flags=[] (0.1788ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 34.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-02 23:46: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.8934ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527580c087f6432a10000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["527580c087f6432a10000001"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"527580c087f6432a10000002"}, "$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, "target_klass_name"=>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} (1.8101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002"}, "$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, "target_klass_name"=>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} (1.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527580c087f6432a10000002"}, "$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.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527580c087f6432a10000002"}, "$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.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527580c087f6432a10000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.0059ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (33.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (14.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (69.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"527580c087f6432a10000001", :role=>:admin}}}} (0.5970ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_head.html.haml (22.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"527580c087f6432a10000001"}} (0.5770ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/global_actions/show.html.haml (3.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"527580c087f6432a10000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6428ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (5.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (30.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (4.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (2.1ms) Completed 200 OK in 177.6ms (Views: 153.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-02 23:46:26 +0100 Served asset /locomotive.js - 200 OK (300ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-02 23:46:27 +0100 Served asset /locomotive.css - 200 OK (84ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-02 23:46:27 +0100 Served asset /locomotive/list/item-left.png - 200 OK (6ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2013-11-02 23:46:27 +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 2013-11-02 23:46:27 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-11-02 23:46:27 +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.9422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527580c087f6432a10000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["527580c087f6432a10000001"]}} 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_pages selector={"$query"=>{"site_id"=>"527580c087f6432a10000002"}, "$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, "target_klass_name"=>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} (1.1477ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527580c087f6432a10000002"}, "$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.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527580c087f6432a10000002"}, "$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.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527580c087f6432a10000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8640ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (16.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527580c087f6432a10000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7019ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (6.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_select_templates.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_form.html.haml (79.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527580c087f6432a10000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5701ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/_form.html.haml (109.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_form_actions.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (140.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"527580c087f6432a10000001", :role=>:admin}}}} (0.6931ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527580c087f6432a10000001"}} (0.5138ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527580c087f6432a10000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9520ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (11.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 191.6ms (Views: 172.3ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-02 23:46:28 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (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.7951ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.9050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.9078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4751ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8371ms) 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 (7.3218ms) 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 (1.5922ms) 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 (8.1668ms) 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} (1.9240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f67ba87f6439a05000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"705e2d5c1f0fb797c22d35311314b1ae661ac4ad", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yGraogjzmRPtys52R2Um", "api_key"=>"029c9c037ad5f3e1e475d74470bdf9e6eaa398cc", "updated_at"=>2013-11-10 11:02:18 UTC, "created_at"=>2013-11-10 11:02:18 UTC}] flags=[] (0.1872ms) 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} (14.3080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f67ba87f6439a05000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:02:17 UTC, "updated_at"=>2013-11-10 11:02:18 UTC, "memberships"=>[{"_id"=>"527f67ba87f6439a05000003", "role"=>"admin", "account_id"=>"527f67ba87f6439a05000001"}]}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67ba87f6439a05000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (6.0482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67ba87f6439a05000002", "_id"=>{"$ne"=>"527f67ba87f6439a05000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67ba87f6439a05000004", "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"=>"527f67ba87f6439a05000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:18 UTC, "created_at"=>2013-11-10 11:02:18 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67ba87f6439a05000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.2199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67ba87f6439a05000004"]}}, "$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"=>["527f67ba87f6439a05000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67ba87f6439a05000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67ba87f6439a05000002", "_id"=>{"$ne"=>"527f67bb87f6439a05000005"}, "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"=>{"parent_id"=>nil, "site_id"=>"527f67ba87f6439a05000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4747ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67bb87f6439a05000005", "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"=>"527f67ba87f6439a05000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:19 UTC, "created_at"=>2013-11-10 11:02:19 UTC}] flags=[] (0.2558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67bb87f6439a05000005"]}}, "$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"=>"527f67bb87f6439a05000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.4102ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67bb87f6439a05000005"]}} 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"=>"527f67ba87f6439a05000002", "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"=>"527f67bb87f6439a05000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f67ba87f6439a05000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f67bb87f6439a05000007", "updated_at"=>2013-11-10 11:02:19 UTC, "created_at"=>2013-11-10 11:02:19 UTC, "entries_custom_fields"=>[{"_id"=>"527f67bb87f6439a05000007", "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.2420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f67bb87f6439a05000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f67bb87f6439a05000008", "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", "updated_at"=>2013-11-10 11:02:19 UTC, "created_at"=>2013-11-10 11:02:19 UTC}}} flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67bb87f6439a05000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67bb87f6439a05000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.2250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f67bb87f6439a05000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5882ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67bb87f6439a05000006"]}}} (1.2350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f67bb87f6439a05000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f67bb87f6439a05000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f67bb87f6439a05000006", "content_type_id"=>"527f67bb87f6439a05000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f67ba87f6439a05000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:02:19 UTC, "created_at"=>2013-11-10 11:02:19 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67bc87f6439a0500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67bb87f6439a05000006"]}} 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"=>"527f67bb87f6439a05000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67bb87f6439a05000006"]}}} (0.3471ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67bb87f6439a05000006"]}}} (0.2561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67bb87f6439a05000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (4.9639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f67bc87f6439a0500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f67bb87f6439a05000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f67bb87f6439a05000006", "content_type_id"=>"527f67bb87f6439a05000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f67ba87f6439a05000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:02:20 UTC, "created_at"=>2013-11-10 11:02:20 UTC}] flags=[] (0.1991ms) 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.7391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002", "_id"=>{"$ne"=>"527f67bc87f6439a0500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527f67ba87f6439a05000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7298ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67bc87f6439a0500000b", "parent_ids"=>["527f67ba87f6439a05000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:20 UTC, "created_at"=>2013-11-10 11:02:20 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67bc87f6439a0500000b"]}}, "$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"=>"527f67bc87f6439a0500000b"}, "$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"=>["527f67bc87f6439a0500000b"]}} 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.7629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "$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"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002", "_id"=>{"$ne"=>"527f67bd87f6439a0500000c"}, "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"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67ba87f6439a05000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67bd87f6439a0500000c", "parent_ids"=>["527f67ba87f6439a05000004"], "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"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:21 UTC, "created_at"=>2013-11-10 11:02:21 UTC}] flags=[] (0.2358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67bd87f6439a0500000c"]}}, "$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"=>"527f67bd87f6439a0500000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67bd87f6439a0500000c"]}} 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.5941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002", "_id"=>{"$ne"=>"527f67bd87f6439a0500000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67ba87f6439a05000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"527f67bd87f6439a0500000d", "parent_ids"=>["527f67ba87f6439a05000004"], "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"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:21 UTC, "created_at"=>2013-11-10 11:02:21 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67bd87f6439a0500000d"]}}, "$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"=>"527f67bd87f6439a0500000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67bd87f6439a0500000d"]}} 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.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002", "_id"=>{"$ne"=>"527f67bd87f6439a0500000e"}, "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"=>"527f67ba87f6439a05000004", "site_id"=>"527f67ba87f6439a05000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67ba87f6439a05000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67bd87f6439a0500000e", "parent_ids"=>["527f67ba87f6439a05000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f67ba87f6439a05000002", "parent_id"=>"527f67ba87f6439a05000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:21 UTC, "created_at"=>2013-11-10 11:02:21 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67bd87f6439a0500000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67bd87f6439a0500000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67bd87f6439a0500000e"]}} 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={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "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"=>"527f67ba87f6439a05000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f67ba87f6439a05000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:02:22 UTC}} flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "template_dependencies.en"=>{"$in"=>["527f67ba87f6439a05000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_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"=>"527f67be87f6439a0500000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:02:17 UTC, "updated_at"=>2013-11-10 11:02:22 UTC, "memberships"=>[{"_id"=>"527f67be87f6439a05000010", "role"=>"admin", "account_id"=>"527f67ba87f6439a05000001"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67be87f6439a0500000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67be87f6439a0500000f", "_id"=>{"$ne"=>"527f67be87f6439a05000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527f67be87f6439a05000011", "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"=>"527f67be87f6439a0500000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:22 UTC, "created_at"=>2013-11-10 11:02:22 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67be87f6439a0500000f", "template_dependencies.en"=>{"$in"=>["527f67be87f6439a05000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67be87f6439a05000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67be87f6439a05000011"]}} 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"=>"527f67be87f6439a0500000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67be87f6439a0500000f", "_id"=>{"$ne"=>"527f67bf87f6439a05000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"527f67be87f6439a0500000f"}, "$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"=>"527f67bf87f6439a05000012", "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"=>"527f67be87f6439a0500000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:23 UTC, "created_at"=>2013-11-10 11:02:23 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67be87f6439a0500000f", "template_dependencies.en"=>{"$in"=>["527f67bf87f6439a05000012"]}}, "$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"=>"527f67bf87f6439a05000012"}, "$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"=>["527f67bf87f6439a05000012"]}} 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={"site_id"=>"527f67be87f6439a0500000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67be87f6439a0500000f", "_id"=>{"$ne"=>"527f67bf87f6439a05000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67be87f6439a0500000f"}, "$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.2952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67bf87f6439a05000013", "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"=>"527f67be87f6439a0500000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:23 UTC, "created_at"=>2013-11-10 11:02:23 UTC}] flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67be87f6439a0500000f", "template_dependencies.en"=>{"$in"=>["527f67bf87f6439a05000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4044ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67bf87f6439a05000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67bf87f6439a05000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f67be87f6439a0500000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f67c087f6439a05000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f67be87f6439a0500000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f67c087f6439a05000015", "updated_at"=>2013-11-10 11:02:24 UTC, "created_at"=>2013-11-10 11:02:24 UTC, "entries_custom_fields"=>[{"_id"=>"527f67c087f6439a05000015", "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.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67c087f6439a05000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67c087f6439a05000014"]}} 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"=>"527f67c087f6439a05000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6106ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c087f6439a05000014"]}}} (0.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f67c087f6439a05000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f67c087f6439a05000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f67c087f6439a05000014", "content_type_id"=>"527f67c087f6439a05000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f67be87f6439a0500000f", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:02:24 UTC, "created_at"=>2013-11-10 11:02:24 UTC}] flags=[] (0.1578ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:02:24 +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.7770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7989ms) Rendered text template (0.0ms) Completed 200 OK in 17.3ms (Views: 10.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-10 12:02:24 +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.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67ba87f6439a05000002", "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.6149ms) Completed 500 Internal Server Error in 5.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.4728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (7.8390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (12.1651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (6.1851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (5.5649ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.3291ms) 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.5019ms) 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.7830ms) 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.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f67c187f6439a05000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"63f3ddf3c668b40e84d52d1869bcaef86f23ed2d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"XJpf2irCqxQddTsZYpNV", "api_key"=>"6653c052c4bf5f3fa5cef4443b0917857e22e4fc", "updated_at"=>2013-11-10 11:02:25 UTC, "created_at"=>2013-11-10 11:02:25 UTC}] flags=[] (0.1638ms) 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.0862ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f67c187f6439a05000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:02:17 UTC, "updated_at"=>2013-11-10 11:02:25 UTC, "memberships"=>[{"_id"=>"527f67c187f6439a05000019", "role"=>"admin", "account_id"=>"527f67c187f6439a05000017"}]}] flags=[] (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c187f6439a05000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67c187f6439a05000018", "_id"=>{"$ne"=>"527f67c187f6439a0500001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527f67c187f6439a0500001a", "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"=>"527f67c187f6439a05000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:25 UTC, "created_at"=>2013-11-10 11:02:25 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c187f6439a0500001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a"}, "$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"=>["527f67c187f6439a0500001a"]}} 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=locomotive_pages selector={"site_id"=>"527f67c187f6439a05000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67c187f6439a05000018", "_id"=>{"$ne"=>"527f67c287f6439a0500001b"}, "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"=>nil, "site_id"=>"527f67c187f6439a05000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7272ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c287f6439a0500001b", "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"=>"527f67c187f6439a05000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:26 UTC, "created_at"=>2013-11-10 11:02:26 UTC}] flags=[] (0.2992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c287f6439a0500001b"]}}, "$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"=>"527f67c287f6439a0500001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c287f6439a0500001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f67c187f6439a05000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f67c287f6439a0500001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f67c187f6439a05000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f67c287f6439a0500001d", "updated_at"=>2013-11-10 11:02:26 UTC, "created_at"=>2013-11-10 11:02:26 UTC, "entries_custom_fields"=>[{"_id"=>"527f67c287f6439a0500001d", "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.2770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f67c287f6439a0500001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f67c287f6439a0500001e", "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", "updated_at"=>2013-11-10 11:02:26 UTC, "created_at"=>2013-11-10 11:02:26 UTC}}} flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67c287f6439a0500001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f67c287f6439a0500001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}}} (0.6740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f67c287f6439a0500001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f67c287f6439a0500001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f67c287f6439a0500001c", "content_type_id"=>"527f67c287f6439a0500001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f67c187f6439a05000018", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:02:26 UTC, "created_at"=>2013-11-10 11:02:26 UTC}] flags=[] (0.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67c287f6439a05000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5734ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f67c287f6439a0500001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}}} (0.5403ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}}} (0.3622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f67c287f6439a05000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f67c287f6439a0500001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f67c287f6439a0500001c", "content_type_id"=>"527f67c287f6439a0500001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f67c187f6439a05000018", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:02:26 UTC, "created_at"=>2013-11-10 11:02:26 UTC}] flags=[] (0.2897ms) 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.8590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018", "_id"=>{"$ne"=>"527f67c387f6439a05000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67c187f6439a0500001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c387f6439a05000021", "parent_ids"=>["527f67c187f6439a0500001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:27 UTC, "created_at"=>2013-11-10 11:02:27 UTC}] flags=[] (0.2759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c387f6439a05000021"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527f67c387f6439a05000021"}, "$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"=>["527f67c387f6439a05000021"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.1441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018", "_id"=>{"$ne"=>"527f67c387f6439a05000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67c187f6439a0500001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c387f6439a05000022", "parent_ids"=>["527f67c187f6439a0500001a"], "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"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:27 UTC, "created_at"=>2013-11-10 11:02:27 UTC}] flags=[] (0.4351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c387f6439a05000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c387f6439a05000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4758ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c387f6439a05000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3521ms) 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.1489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018", "_id"=>{"$ne"=>"527f67c487f6439a05000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67c187f6439a0500001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"527f67c487f6439a05000023", "parent_ids"=>["527f67c187f6439a0500001a"], "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"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:28 UTC, "created_at"=>2013-11-10 11:02:28 UTC}] flags=[] (0.4098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c487f6439a05000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c487f6439a05000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c487f6439a05000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.6270ms) 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.0161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018", "_id"=>{"$ne"=>"527f67c487f6439a05000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c187f6439a0500001a", "site_id"=>"527f67c187f6439a05000018"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f67c187f6439a0500001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7827ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c487f6439a05000024", "parent_ids"=>["527f67c187f6439a0500001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f67c187f6439a05000018", "parent_id"=>"527f67c187f6439a0500001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:28 UTC, "created_at"=>2013-11-10 11:02:28 UTC}] flags=[] (0.9649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c487f6439a05000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527f67c487f6439a05000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5686ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c487f6439a05000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8876ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f67c187f6439a05000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f67c187f6439a0500001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:02:28 UTC}} flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "template_dependencies.en"=>{"$in"=>["527f67c187f6439a0500001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4718ms) 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.7932ms) 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.4916ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f67c587f6439a05000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:02:17 UTC, "updated_at"=>2013-11-10 11:02:29 UTC, "memberships"=>[{"_id"=>"527f67c587f6439a05000026", "role"=>"admin", "account_id"=>"527f67c187f6439a05000017"}]}] flags=[] (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c587f6439a05000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67c587f6439a05000025", "_id"=>{"$ne"=>"527f67c587f6439a05000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c587f6439a05000027", "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"=>"527f67c587f6439a05000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:29 UTC, "created_at"=>2013-11-10 11:02:29 UTC}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c587f6439a05000025", "template_dependencies.en"=>{"$in"=>["527f67c587f6439a05000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f67c587f6439a05000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7100ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c587f6439a05000027"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c587f6439a05000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67c587f6439a05000025", "_id"=>{"$ne"=>"527f67c587f6439a05000028"}, "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"=>nil, "site_id"=>"527f67c587f6439a05000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c587f6439a05000028", "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"=>"527f67c587f6439a05000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:29 UTC, "created_at"=>2013-11-10 11:02:29 UTC}] flags=[] (0.3188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c587f6439a05000025", "template_dependencies.en"=>{"$in"=>["527f67c587f6439a05000028"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527f67c587f6439a05000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c587f6439a05000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f67c587f6439a05000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67c587f6439a05000025", "_id"=>{"$ne"=>"527f67c587f6439a05000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f67c587f6439a05000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4627ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f67c587f6439a05000029", "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"=>"527f67c587f6439a05000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:02:29 UTC, "created_at"=>2013-11-10 11:02:29 UTC}] flags=[] (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c587f6439a05000025", "template_dependencies.en"=>{"$in"=>["527f67c587f6439a05000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527f67c587f6439a05000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f67c587f6439a05000029"]}} 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_content_types selector={"site_id"=>"527f67c587f6439a05000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f67c687f6439a0500002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f67c587f6439a05000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f67c687f6439a0500002b", "updated_at"=>2013-11-10 11:02:30 UTC, "created_at"=>2013-11-10 11:02:30 UTC, "entries_custom_fields"=>[{"_id"=>"527f67c687f6439a0500002b", "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.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67c687f6439a0500002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67c687f6439a0500002a"]}} 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"=>"527f67c687f6439a0500002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6018ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c687f6439a0500002a"]}}} (0.6201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f67c687f6439a0500002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f67c687f6439a0500002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f67c687f6439a0500002a", "content_type_id"=>"527f67c687f6439a0500002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f67c587f6439a05000025", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:02:30 UTC, "created_at"=>2013-11-10 11:02:30 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67c287f6439a0500001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (8.4491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f67c287f6439a05000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527f67c287f6439a0500001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.2029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f67c287f6439a0500001c"} update={"$set"=>{"updated_at"=>2013-11-10 11:02:31 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f67c287f6439a0500001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2103ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:02: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.9151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9501ms) Rendered text template (0.0ms) Completed 200 OK in 10.0ms (Views: 0.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-10 12:02: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 (1.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f67c187f6439a05000018", "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.8070ms) Completed 500 Internal Server Error in 9.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.6769ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.4409ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (5.1279ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.0261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (9.5732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.9283ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1051ms) 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.6163ms) 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.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.9420ms) 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.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f6aa787f6439ffa000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"cd852b44638be1e5c8151842f65f97dc7fed76e1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"2oXExBC1PuUg5CaKVxPj", "api_key"=>"6099c4fbccbc5187b357dc1163a3de71393a790b", "updated_at"=>2013-11-10 11:14:47 UTC, "created_at"=>2013-11-10 11:14:47 UTC}] flags=[] (0.1600ms) 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.0128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6aa787f6439ffa000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:14:47 UTC, "updated_at"=>2013-11-10 11:14:47 UTC, "memberships"=>[{"_id"=>"527f6aa787f6439ffa000003", "role"=>"admin", "account_id"=>"527f6aa787f6439ffa000001"}]}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aa787f6439ffa000002", "_id"=>{"$ne"=>"527f6aa887f6439ffa000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527f6aa887f6439ffa000004", "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"=>"527f6aa787f6439ffa000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:48 UTC, "created_at"=>2013-11-10 11:14:48 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aa887f6439ffa000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aa887f6439ffa000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aa887f6439ffa000004"]}} 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"=>"527f6aa787f6439ffa000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aa787f6439ffa000002", "_id"=>{"$ne"=>"527f6aa887f6439ffa000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aa787f6439ffa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aa887f6439ffa000005", "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"=>"527f6aa787f6439ffa000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:48 UTC, "created_at"=>2013-11-10 11:14:48 UTC}] flags=[] (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aa887f6439ffa000005"]}}, "$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"=>{"parent_id"=>"527f6aa887f6439ffa000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aa887f6439ffa000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6aa787f6439ffa000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6aa887f6439ffa000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6aa787f6439ffa000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6aa887f6439ffa000007", "updated_at"=>2013-11-10 11:14:48 UTC, "created_at"=>2013-11-10 11:14:48 UTC, "entries_custom_fields"=>[{"_id"=>"527f6aa887f6439ffa000007", "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.4339ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6aa887f6439ffa000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f6aa887f6439ffa000008", "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", "updated_at"=>2013-11-10 11:14:48 UTC, "created_at"=>2013-11-10 11:14:48 UTC}}} flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6aa887f6439ffa000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6aa887f6439ffa000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6aa887f6439ffa000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6aa887f6439ffa000006"]}}} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6aa887f6439ffa000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6aa887f6439ffa000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6aa887f6439ffa000006", "content_type_id"=>"527f6aa887f6439ffa000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f6aa787f6439ffa000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:14:48 UTC, "created_at"=>2013-11-10 11:14:48 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6aa987f6439ffa00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6aa887f6439ffa000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6aa887f6439ffa000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2720ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6aa887f6439ffa000006"]}}} (0.9818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6aa887f6439ffa000006"]}}} (0.6280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6aa887f6439ffa000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.5810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6aa987f6439ffa00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6aa887f6439ffa000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6aa887f6439ffa000006", "content_type_id"=>"527f6aa887f6439ffa000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f6aa787f6439ffa000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:14:49 UTC, "created_at"=>2013-11-10 11:14:49 UTC}] flags=[] (0.4086ms) 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.9868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002", "_id"=>{"$ne"=>"527f6aaa87f6439ffa00000b"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aa887f6439ffa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aaa87f6439ffa00000b", "parent_ids"=>["527f6aa887f6439ffa000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:50 UTC, "created_at"=>2013-11-10 11:14:50 UTC}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aaa87f6439ffa00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527f6aaa87f6439ffa00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aaa87f6439ffa00000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2890ms) 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.9129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002", "_id"=>{"$ne"=>"527f6aaa87f6439ffa00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aa887f6439ffa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aaa87f6439ffa00000c", "parent_ids"=>["527f6aa887f6439ffa000004"], "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"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:50 UTC, "created_at"=>2013-11-10 11:14:50 UTC}] flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aaa87f6439ffa00000c"]}}, "$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"=>"527f6aaa87f6439ffa00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aaa87f6439ffa00000c"]}} 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.8953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002", "_id"=>{"$ne"=>"527f6aaa87f6439ffa00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aa887f6439ffa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aaa87f6439ffa00000d", "parent_ids"=>["527f6aa887f6439ffa000004"], "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"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:50 UTC, "created_at"=>2013-11-10 11:14:50 UTC}] flags=[] (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aaa87f6439ffa00000d"]}}, "$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"=>"527f6aaa87f6439ffa00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aaa87f6439ffa00000d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1411ms) 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.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002", "_id"=>{"$ne"=>"527f6aaa87f6439ffa00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aa887f6439ffa000004", "site_id"=>"527f6aa787f6439ffa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aa887f6439ffa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6893ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aaa87f6439ffa00000e", "parent_ids"=>["527f6aa887f6439ffa000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f6aa787f6439ffa000002", "parent_id"=>"527f6aa887f6439ffa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:50 UTC, "created_at"=>2013-11-10 11:14:50 UTC}] flags=[] (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aaa87f6439ffa00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaa87f6439ffa00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aaa87f6439ffa00000e"]}} 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={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"527f6aa787f6439ffa000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f6aa887f6439ffa000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:14:51 UTC}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "template_dependencies.en"=>{"$in"=>["527f6aa887f6439ffa000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6aac87f6439ffa00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:14:47 UTC, "updated_at"=>2013-11-10 11:14:52 UTC, "memberships"=>[{"_id"=>"527f6aac87f6439ffa000010", "role"=>"admin", "account_id"=>"527f6aa787f6439ffa000001"}]}] flags=[] (0.3347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aac87f6439ffa00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aac87f6439ffa00000f", "_id"=>{"$ne"=>"527f6aac87f6439ffa000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aac87f6439ffa000011", "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"=>"527f6aac87f6439ffa00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:52 UTC, "created_at"=>2013-11-10 11:14:52 UTC}] flags=[] (0.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aac87f6439ffa00000f", "template_dependencies.en"=>{"$in"=>["527f6aac87f6439ffa000011"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"527f6aac87f6439ffa000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aac87f6439ffa000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2587ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aac87f6439ffa00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"527f6aac87f6439ffa00000f", "_id"=>{"$ne"=>"527f6aac87f6439ffa000012"}, "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"=>nil, "site_id"=>"527f6aac87f6439ffa00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aac87f6439ffa000012", "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"=>"527f6aac87f6439ffa00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:52 UTC, "created_at"=>2013-11-10 11:14:52 UTC}] flags=[] (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aac87f6439ffa00000f", "template_dependencies.en"=>{"$in"=>["527f6aac87f6439ffa000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527f6aac87f6439ffa000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aac87f6439ffa000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aac87f6439ffa00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (6.7132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aac87f6439ffa00000f", "_id"=>{"$ne"=>"527f6aac87f6439ffa000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.2278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aac87f6439ffa00000f"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$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"=>"527f6aac87f6439ffa000013", "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"=>"527f6aac87f6439ffa00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:52 UTC, "created_at"=>2013-11-10 11:14:52 UTC}] flags=[] (0.4339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aac87f6439ffa00000f", "template_dependencies.en"=>{"$in"=>["527f6aac87f6439ffa000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aac87f6439ffa000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6571ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aac87f6439ffa000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6aac87f6439ffa00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7708ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6aad87f6439ffa000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6aac87f6439ffa00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6aad87f6439ffa000015", "updated_at"=>2013-11-10 11:14:53 UTC, "created_at"=>2013-11-10 11:14:53 UTC, "entries_custom_fields"=>[{"_id"=>"527f6aad87f6439ffa000015", "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.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6aad87f6439ffa000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6aad87f6439ffa000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6aad87f6439ffa000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5579ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6aad87f6439ffa000014"]}}} (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6aad87f6439ffa000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6aad87f6439ffa000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6aad87f6439ffa000014", "content_type_id"=>"527f6aad87f6439ffa000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f6aac87f6439ffa00000f", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:14:53 UTC, "created_at"=>2013-11-10 11:14:53 UTC}] flags=[] (0.1910ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:14:54 +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.7060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8070ms) Rendered text template (0.0ms) Completed 200 OK in 18.1ms (Views: 11.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-10 12:14:54 +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.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "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.6959ms) Rendered text template (0.0ms) Completed 200 OK in 470.7ms (Views: 1.5ms) Started GET "/findable" for 127.0.0.1 at 2013-11-10 12:14:54 +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.6778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0347ms) Rendered text template (0.0ms) Completed 200 OK in 7.6ms (Views: 0.7ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:14:54 +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.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2181ms) Rendered text template (0.0ms) Completed 200 OK in 7.1ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-10 12:14:54 +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.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aa787f6439ffa000002", "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.6700ms) Rendered text template (0.0ms) Completed 200 OK in 442.5ms (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.6099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.2709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.4898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.0840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.5039ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4720ms) 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.9999ms) 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.0829ms) 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.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f6aaf87f6439ffa000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5d6016f4c11227f32d00df26d0063d0ec1419474", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"jkq1oNGQUf6rDTWQEDyP", "api_key"=>"80ef1f8066ffc91943b5c882144f7f1f375e9ba9", "updated_at"=>2013-11-10 11:14:55 UTC, "created_at"=>2013-11-10 11:14:55 UTC}] flags=[] (0.1199ms) 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.7908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6aaf87f6439ffa000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:14:47 UTC, "updated_at"=>2013-11-10 11:14:55 UTC, "memberships"=>[{"_id"=>"527f6aaf87f6439ffa000019", "role"=>"admin", "account_id"=>"527f6aaf87f6439ffa000017"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aaf87f6439ffa000018", "_id"=>{"$ne"=>"527f6aaf87f6439ffa00001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6aaf87f6439ffa00001a", "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"=>"527f6aaf87f6439ffa000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:55 UTC, "created_at"=>2013-11-10 11:14:55 UTC}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6aaf87f6439ffa00001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527f6aaf87f6439ffa00001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6aaf87f6439ffa00001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aaf87f6439ffa000018", "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"=>"527f6aaf87f6439ffa000018", "_id"=>{"$ne"=>"527f6ab087f6439ffa00001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6aaf87f6439ffa000018"}, "$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"=>"527f6ab087f6439ffa00001b", "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"=>"527f6aaf87f6439ffa000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:56 UTC, "created_at"=>2013-11-10 11:14:56 UTC}] flags=[] (0.2487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6ab087f6439ffa00001b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ab087f6439ffa00001b"}, "$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"=>["527f6ab087f6439ffa00001b"]}} 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"=>"527f6aaf87f6439ffa000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8173ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6ab087f6439ffa00001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6aaf87f6439ffa000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6ab087f6439ffa00001d", "updated_at"=>2013-11-10 11:14:56 UTC, "created_at"=>2013-11-10 11:14:56 UTC, "entries_custom_fields"=>[{"_id"=>"527f6ab087f6439ffa00001d", "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.2031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6ab087f6439ffa00001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f6ab087f6439ffa00001e", "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", "updated_at"=>2013-11-10 11:14:56 UTC, "created_at"=>2013-11-10 11:14:56 UTC}}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ab087f6439ffa00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ab087f6439ffa00001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}}} (0.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ab087f6439ffa00001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ab087f6439ffa00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ab087f6439ffa00001c", "content_type_id"=>"527f6ab087f6439ffa00001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f6aaf87f6439ffa000018", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:14:56 UTC, "created_at"=>2013-11-10 11:14:56 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ab087f6439ffa000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ab087f6439ffa00001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4542ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}}} (0.3600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}}} (0.2868ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ab087f6439ffa000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ab087f6439ffa00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ab087f6439ffa00001c", "content_type_id"=>"527f6ab087f6439ffa00001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f6aaf87f6439ffa000018", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:14:56 UTC, "created_at"=>2013-11-10 11:14:56 UTC}] flags=[] (0.2172ms) 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.7770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018", "_id"=>{"$ne"=>"527f6ab187f6439ffa000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aaf87f6439ffa00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ab187f6439ffa000021", "parent_ids"=>["527f6aaf87f6439ffa00001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:57 UTC, "created_at"=>2013-11-10 11:14:57 UTC}] flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6ab187f6439ffa000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3653ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ab187f6439ffa000021"}, "$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"=>["527f6ab187f6439ffa000021"]}} 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.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018", "_id"=>{"$ne"=>"527f6ab287f6439ffa000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aaf87f6439ffa00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5677ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ab287f6439ffa000022", "parent_ids"=>["527f6aaf87f6439ffa00001a"], "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"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:58 UTC, "created_at"=>2013-11-10 11:14:58 UTC}] flags=[] (0.2036ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6ab287f6439ffa000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ab287f6439ffa000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4296ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ab287f6439ffa000022"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "$or"=>[{"slug.en"=>"seems-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"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018", "_id"=>{"$ne"=>"527f6ab287f6439ffa000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6aaf87f6439ffa00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ab287f6439ffa000023", "parent_ids"=>["527f6aaf87f6439ffa00001a"], "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"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:58 UTC, "created_at"=>2013-11-10 11:14:58 UTC}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6ab287f6439ffa000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527f6ab287f6439ffa000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ab287f6439ffa000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1361ms) 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.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018", "_id"=>{"$ne"=>"527f6ab287f6439ffa000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6aaf87f6439ffa00001a", "site_id"=>"527f6aaf87f6439ffa000018"}, "$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"=>"527f6aaf87f6439ffa00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"527f6ab287f6439ffa000024", "parent_ids"=>["527f6aaf87f6439ffa00001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f6aaf87f6439ffa000018", "parent_id"=>"527f6aaf87f6439ffa00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:58 UTC, "created_at"=>2013-11-10 11:14:58 UTC}] flags=[] (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6ab287f6439ffa000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ab287f6439ffa000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ab287f6439ffa000024"]}} 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={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7727ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6aaf87f6439ffa000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f6aaf87f6439ffa00001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:14:58 UTC}} flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "template_dependencies.en"=>{"$in"=>["527f6aaf87f6439ffa00001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5248ms) 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.6583ms) 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.3679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6ab387f6439ffa000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:14:47 UTC, "updated_at"=>2013-11-10 11:14:59 UTC, "memberships"=>[{"_id"=>"527f6ab387f6439ffa000026", "role"=>"admin", "account_id"=>"527f6aaf87f6439ffa000017"}]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ab387f6439ffa000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ab387f6439ffa000025", "_id"=>{"$ne"=>"527f6ab387f6439ffa000027"}, "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"=>"527f6ab387f6439ffa000027", "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"=>"527f6ab387f6439ffa000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:14:59 UTC, "created_at"=>2013-11-10 11:14:59 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ab387f6439ffa000025", "template_dependencies.en"=>{"$in"=>["527f6ab387f6439ffa000027"]}}, "$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"=>"527f6ab387f6439ffa000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ab387f6439ffa000027"]}} 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={"site_id"=>"527f6ab387f6439ffa000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"527f6ab387f6439ffa000025", "_id"=>{"$ne"=>"527f6ab487f6439ffa000028"}, "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"=>"527f6ab387f6439ffa000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ab487f6439ffa000028", "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"=>"527f6ab387f6439ffa000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:00 UTC, "created_at"=>2013-11-10 11:15:00 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ab387f6439ffa000025", "template_dependencies.en"=>{"$in"=>["527f6ab487f6439ffa000028"]}}, "$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"=>"527f6ab487f6439ffa000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ab487f6439ffa000028"]}} 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={"site_id"=>"527f6ab387f6439ffa000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ab387f6439ffa000025", "_id"=>{"$ne"=>"527f6ab487f6439ffa000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ab387f6439ffa000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6599ms) 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.4051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ab487f6439ffa000029", "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"=>"527f6ab387f6439ffa000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:00 UTC, "created_at"=>2013-11-10 11:15:00 UTC}] flags=[] (0.3328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ab387f6439ffa000025", "template_dependencies.en"=>{"$in"=>["527f6ab487f6439ffa000029"]}}, "$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"=>"527f6ab487f6439ffa000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4227ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ab487f6439ffa000029"]}} 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"=>"527f6ab387f6439ffa000025", "slug"=>"examples"} 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"=>"527f6ab487f6439ffa00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6ab387f6439ffa000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6ab487f6439ffa00002b", "updated_at"=>2013-11-10 11:15:00 UTC, "created_at"=>2013-11-10 11:15:00 UTC, "entries_custom_fields"=>[{"_id"=>"527f6ab487f6439ffa00002b", "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"=>"527f6ab487f6439ffa00002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab487f6439ffa00002a"]}} 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={"content_type_id"=>"527f6ab487f6439ffa00002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab487f6439ffa00002a"]}}} (0.7510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ab487f6439ffa00002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ab487f6439ffa00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ab487f6439ffa00002a", "content_type_id"=>"527f6ab487f6439ffa00002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f6ab387f6439ffa000025", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:00 UTC, "created_at"=>2013-11-10 11:15:00 UTC}] flags=[] (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ab087f6439ffa00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ab087f6439ffa000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4377ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6ab087f6439ffa00001c"} update={"$set"=>{"updated_at"=>2013-11-10 11:15:01 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ab087f6439ffa00001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1161ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:15: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.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "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 5.2ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-10 12:15: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.6478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "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) Rendered text template (0.0ms) Completed 200 OK in 457.6ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6ab087f6439ffa00001c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ab087f6439ffa00001c", "updated_at"=>{"$lt"=>2013-11-10 11:15:01 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ab087f6439ffa00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6aaf87f6439ffa000018"}, "$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_content_types selector={"$query"=>{"_id"=>"527f6ab087f6439ffa00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"527f6ab087f6439ffa00001f"} update={"$set"=>{"updated_at"=>2013-11-10 11:15:01 UTC}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6aaf87f6439ffa000018"}, "$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"=>"527f6ab087f6439ffa00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527f6ab087f6439ffa000020"} update={"$set"=>{"updated_at"=>2013-11-10 11:15:02 UTC}} flags=[] (0.1650ms) Started GET "/en/" for 127.0.0.1 at 2013-11-10 12:15:03 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-10 12:15:03 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8678ms) Rendered text template (0.0ms) Completed 200 OK in 7.4ms (Views: 0.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-10 12:15: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.8719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6aaf87f6439ffa000018", "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.9871ms) Rendered text template (0.0ms) Completed 200 OK in 448.3ms (Views: 1.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.6592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7979ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.6131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4589ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0171ms) 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.5670ms) 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.5298ms) 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.8390ms) 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.6318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f6abe87f6436516000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"da6261f4457b12d318b634232180dbcf686988f8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"QyHwGGu2QjHccfFyvaxb", "api_key"=>"1fa8a8247993468a70cebaca43baae86f57460cc", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2511ms) 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.0629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6abe87f6436516000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:15:10 UTC, "updated_at"=>2013-11-10 11:15:10 UTC, "memberships"=>[{"_id"=>"527f6abe87f6436516000003", "role"=>"admin", "account_id"=>"527f6abe87f6436516000001"}]}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000002", "_id"=>{"$ne"=>"527f6abe87f6436516000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4623ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f6436516000004", "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"=>"527f6abe87f6436516000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000004"}, "$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"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.0122ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f6436516000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6abe87f6436516000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"527f6abe87f6436516000002", "_id"=>{"$ne"=>"527f6abe87f6436516000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000002"}, "$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"=>"527f6abe87f6436516000006", "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"=>"527f6abe87f6436516000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000006"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000006"]}} 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"=>"527f6abe87f6436516000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6abe87f6436516000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6abe87f6436516000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6abe87f6436516000008", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC, "entries_custom_fields"=>[{"_id"=>"527f6abe87f6436516000008", "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.2303ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6abe87f6436516000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f6abe87f6436516000009", "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", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}}} flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f643651600000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6abe87f6436516000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}}} (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6abe87f643651600000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6abe87f6436516000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "content_type_id"=>"527f6abe87f6436516000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f6abe87f6436516000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "_original_id"=>"527f6abe87f643651600000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f643651600000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527f6abe87f6436516000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "_original_id"=>"527f6abe87f643651600000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f643651600000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}} 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"=>"527f6abe87f6436516000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}}} (0.4909ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}}} (0.3979ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6abe87f643651600000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6abe87f6436516000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "content_type_id"=>"527f6abe87f6436516000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f6abe87f6436516000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "_original_id"=>"527f6abe87f643651600000c"}, "$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_models documents=[{"_id"=>"527f6abe87f643651600000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527f6abe87f6436516000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "_original_id"=>"527f6abe87f643651600000c", "_keywords"=>["hidden"]}] flags=[] (0.1159ms) 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.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "$or"=>[{"slug.en"=>"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"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002", "_id"=>{"$ne"=>"527f6abe87f643651600000e"}, "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"=>"527f6abe87f6436516000004"}]}]}, "$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"=>"527f6abe87f643651600000e", "parent_ids"=>["527f6abe87f6436516000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f643651600000e"]}}, "$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"=>"527f6abe87f643651600000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f643651600000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f643651600000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f643651600000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527f6abe87f6436516000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f643651600000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.6638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002", "_id"=>{"$ne"=>"527f6abe87f6436516000010"}, "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"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6abe87f6436516000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f6436516000010", "parent_ids"=>["527f6abe87f6436516000004"], "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"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.3107ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"527f6abe87f6436516000010"}, "$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"=>["527f6abe87f6436516000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1452ms) 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.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002", "_id"=>{"$ne"=>"527f6abe87f6436516000011"}, "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"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002"}, "$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"=>"527f6abe87f6436516000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f6436516000011", "parent_ids"=>["527f6abe87f6436516000004"], "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"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000011"]}}, "$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"=>"527f6abe87f6436516000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1037ms) 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"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002", "_id"=>{"$ne"=>"527f6abe87f6436516000012"}, "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"=>"527f6abe87f6436516000004", "site_id"=>"527f6abe87f6436516000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6abe87f6436516000004"}]}]}, "$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"=>"527f6abe87f6436516000012", "parent_ids"=>["527f6abe87f6436516000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f6abe87f6436516000002", "parent_id"=>"527f6abe87f6436516000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1984ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000012"]}}, "$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"=>"527f6abe87f6436516000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000012"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f6436516000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527f6abe87f6436516000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000012", "_keywords"=>["en:search"]}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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"=>"527f6abe87f6436516000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f6abe87f6436516000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:15:10 UTC}} flags=[] (0.1352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5147ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527f6abe87f6436516000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6abe87f6436516000002", :fullpath=>{"en"=>"index"}}}} 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.6862ms) 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.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6abe87f6436516000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:15:10 UTC, "updated_at"=>2013-11-10 11:15:10 UTC, "memberships"=>[{"_id"=>"527f6abe87f6436516000015", "role"=>"admin", "account_id"=>"527f6abe87f6436516000001"}]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"527f6abe87f6436516000014", "_id"=>{"$ne"=>"527f6abe87f6436516000016"}, "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"=>"527f6abe87f6436516000016", "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"=>"527f6abe87f6436516000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000014", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000016"]}}, "$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"=>"527f6abe87f6436516000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000016"}, "$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_models documents=[{"_id"=>"527f6abe87f6436516000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6abe87f6436516000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"527f6abe87f6436516000014", "_id"=>{"$ne"=>"527f6abe87f6436516000018"}, "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"=>"527f6abe87f6436516000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f6436516000018", "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"=>"527f6abe87f6436516000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000014", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000018"]}} 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"=>"527f6abe87f6436516000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"527f6abe87f6436516000014", "_id"=>{"$ne"=>"527f6abe87f6436516000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"527f6abe87f6436516000019", "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"=>"527f6abe87f6436516000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.4902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000014", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f643651600001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527f6abe87f6436516000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6abe87f6436516000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7453ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6abe87f643651600001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6abe87f6436516000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6abe87f643651600001c", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC, "entries_custom_fields"=>[{"_id"=>"527f6abe87f643651600001c", "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.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f643651600001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f643651600001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6abe87f643651600001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f643651600001b"]}}} (0.4883ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6abe87f643651600001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6abe87f643651600001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6abe87f643651600001b", "content_type_id"=>"527f6abe87f643651600001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f6abe87f6436516000014", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f643651600001b", "_original_id"=>"527f6abe87f643651600001d"}, "$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_models documents=[{"_id"=>"527f6abe87f643651600001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527f6abe87f6436516000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6abe87f643651600001b", "_original_id"=>"527f6abe87f643651600001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f643651600000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}} 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={"_id"=>{"$ne"=>"527f6abe87f643651600000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1721ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6abe87f6436516000007"} update={"$set"=>{"updated_at"=>2013-11-10 11:15:10 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6abe87f6436516000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1130ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:15: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.8380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8020ms) Rendered text template (0.0ms) Completed 200 OK in 13.4ms (Views: 7.2ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-10 12:15: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.8049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527f6abe87f6436516000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4528ms) Rendered text template (0.0ms) Completed 200 OK in 6.5ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6abe87f6436516000007"} 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"=>"527f6abe87f6436516000007", "updated_at"=>{"$lt"=>2013-11-10 11:15:10 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6abe87f6436516000002"}, "$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_content_types selector={"$query"=>{"_id"=>"527f6abe87f6436516000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527f6abe87f643651600000a"} update={"$set"=>{"updated_at"=>2013-11-10 11:15:10 UTC}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "_original_id"=>"527f6abe87f643651600000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6187ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527f6abe87f643651600000b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527f6abe87f6436516000002", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6abe87f6436516000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"527f6abe87f6436516000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"527f6abe87f643651600000c"} update={"$set"=>{"updated_at"=>2013-11-10 11:15:10 UTC}} flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000007", "_original_id"=>"527f6abe87f643651600000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527f6abe87f643651600000d"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527f6abe87f6436516000002", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1481ms) Started GET "/en/" for 127.0.0.1 at 2013-11-10 12:15:10 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-10 12:15:10 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6258ms) 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 2013-11-10 12:15: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.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000002", "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.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527f6abe87f6436516000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) Rendered text template (0.0ms) Completed 200 OK in 8.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.6878ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7469ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.9021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8702ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9570ms) 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.3002ms) 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_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"=>"527f6abe87f643651600001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e4010190fcc037ba9e86fc65c291e855d284873e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xyhABydEcPATqLTz5Y7T", "api_key"=>"6fbe1280d8e81af99fc26e30a5ebb8695d47517d", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1032ms) 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.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6abe87f6436516000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:15:10 UTC, "updated_at"=>2013-11-10 11:15:10 UTC, "memberships"=>[{"_id"=>"527f6abe87f6436516000021", "role"=>"admin", "account_id"=>"527f6abe87f643651600001f"}]}] flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"527f6abe87f6436516000020", "_id"=>{"$ne"=>"527f6abe87f6436516000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3626ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f6436516000022", "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"=>"527f6abe87f6436516000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000022"]}}, "$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"=>"527f6abe87f6436516000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000022"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f6436516000023", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6abe87f6436516000020", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000022", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"527f6abe87f6436516000020", "_id"=>{"$ne"=>"527f6abe87f6436516000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527f6abe87f6436516000024", "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"=>"527f6abe87f6436516000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000024"]}}, "$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"=>"527f6abe87f6436516000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6abe87f6436516000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6abe87f6436516000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6abe87f6436516000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6abe87f6436516000026", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC, "entries_custom_fields"=>[{"_id"=>"527f6abe87f6436516000026", "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.1841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6abe87f6436516000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f6abe87f6436516000027", "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", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}}} flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f6436516000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000025"]}} 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"=>"527f6abe87f6436516000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000025"]}}} (0.5002ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6abe87f6436516000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6abe87f6436516000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6abe87f6436516000025", "content_type_id"=>"527f6abe87f6436516000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f6abe87f6436516000020", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000025", "_original_id"=>"527f6abe87f6436516000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f6436516000029", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527f6abe87f6436516000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000025", "_original_id"=>"527f6abe87f6436516000028", "_keywords"=>["findable", "entry"]}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f643651600002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000025"]}} 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"=>"527f6abe87f6436516000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4249ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000025"]}}} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000025"]}}} (0.2601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4163ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6abe87f643651600002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6abe87f6436516000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6abe87f6436516000025", "content_type_id"=>"527f6abe87f6436516000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f6abe87f6436516000020", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000025", "_original_id"=>"527f6abe87f643651600002a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f643651600002b", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527f6abe87f6436516000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000025", "_original_id"=>"527f6abe87f643651600002a", "_keywords"=>["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.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020", "_id"=>{"$ne"=>"527f6abe87f643651600002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6abe87f6436516000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f643651600002c", "parent_ids"=>["527f6abe87f6436516000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f643651600002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f643651600002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f643651600002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f643651600002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f643651600002d", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527f6abe87f6436516000020", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f643651600002c", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2000ms) 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.6542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020", "_id"=>{"$ne"=>"527f6abe87f643651600002e"}, "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"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020"}, "$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"=>"527f6abe87f6436516000022"}]}]}, "$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"=>"527f6abe87f643651600002e", "parent_ids"=>["527f6abe87f6436516000022"], "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"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f643651600002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3207ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f643651600002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f643651600002e"]}} 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.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "$or"=>[{"slug.en"=>"seems-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"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020", "_id"=>{"$ne"=>"527f6abe87f643651600002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020"}, "$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"=>"527f6abe87f6436516000022"}]}]}, "$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"=>"527f6abe87f643651600002f", "parent_ids"=>["527f6abe87f6436516000022"], "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"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f643651600002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4327ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f643651600002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f643651600002f"]}} 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.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020", "_id"=>{"$ne"=>"527f6abe87f6436516000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000022", "site_id"=>"527f6abe87f6436516000020"}, "$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"=>"527f6abe87f6436516000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"527f6abe87f6436516000030", "parent_ids"=>["527f6abe87f6436516000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f6abe87f6436516000020", "parent_id"=>"527f6abe87f6436516000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6abe87f6436516000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3612ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000030"}, "$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_models documents=[{"_id"=>"527f6abe87f6436516000031", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527f6abe87f6436516000020", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000030", "_keywords"=>["en:search"]}] flags=[] (0.1206ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6abe87f6436516000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3228ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f6abe87f6436516000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:15:10 UTC}} flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000022"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5608ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527f6abe87f6436516000023"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6abe87f6436516000020", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1009ms) 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} (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6abe87f6436516000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:15:10 UTC, "updated_at"=>2013-11-10 11:15:10 UTC, "memberships"=>[{"_id"=>"527f6abe87f6436516000033", "role"=>"admin", "account_id"=>"527f6abe87f643651600001f"}]}] flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000032", "_id"=>{"$ne"=>"527f6abe87f6436516000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"527f6abe87f6436516000034", "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"=>"527f6abe87f6436516000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000032", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000034"]}}, "$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"=>"527f6abe87f6436516000034"}, "$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"=>["527f6abe87f6436516000034"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000034"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abe87f6436516000035", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6abe87f6436516000032", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000034", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6abe87f6436516000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000032", "_id"=>{"$ne"=>"527f6abe87f6436516000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527f6abe87f6436516000036", "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"=>"527f6abe87f6436516000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000032", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000036"]}}, "$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"=>"527f6abe87f6436516000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000036"]}} 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_pages selector={"site_id"=>"527f6abe87f6436516000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"527f6abe87f6436516000032", "_id"=>{"$ne"=>"527f6abe87f6436516000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"527f6abe87f6436516000032"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6abe87f6436516000037", "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"=>"527f6abe87f6436516000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000032", "template_dependencies.en"=>{"$in"=>["527f6abe87f6436516000037"]}}, "$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"=>"527f6abe87f6436516000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6abe87f6436516000037"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000037"}, "$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_models documents=[{"_id"=>"527f6abe87f6436516000038", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527f6abe87f6436516000032", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6abe87f6436516000037", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6abe87f6436516000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6abe87f6436516000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6abe87f6436516000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6abe87f643651600003a", "updated_at"=>2013-11-10 11:15:10 UTC, "created_at"=>2013-11-10 11:15:10 UTC, "entries_custom_fields"=>[{"_id"=>"527f6abe87f643651600003a", "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.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6abe87f643651600003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000039"]}} 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"=>"527f6abe87f6436516000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6abe87f6436516000039"]}}} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6abe87f643651600003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6abe87f6436516000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6abe87f6436516000039", "content_type_id"=>"527f6abe87f6436516000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f6abe87f6436516000032", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:11 UTC, "created_at"=>2013-11-10 11:15:11 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000039", "_original_id"=>"527f6abe87f643651600003b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6abf87f643651600003c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527f6abe87f6436516000032", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6abe87f6436516000039", "_original_id"=>"527f6abe87f643651600003b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1171ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:15:11 +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.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "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 5.0ms (Views: 0.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-10 12:15:11 +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.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527f6abe87f6436516000020", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4842ms) Rendered text template (0.0ms) Completed 200 OK in 12.0ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-11-10 12:15:11 +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.8540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "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.9291ms) Rendered text template (0.0ms) Completed 200 OK in 7.6ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-10 12:15:11 +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 (3.0639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8621ms) Rendered text template (0.0ms) Completed 200 OK in 8.7ms (Views: 0.6ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-10 12:15:11 +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.7617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6abe87f6436516000020", "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.8419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"527f6abe87f6436516000020", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) Rendered text template (0.0ms) Completed 200 OK in 7.6ms (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.9921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (4.0388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8512ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6838ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6790ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8912ms) 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.5369ms) 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.5691ms) 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.7179ms) 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.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f6ac587f643a545000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"07fb4a1a4db499f80fb1c5b05f4ef24fb272cf2e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"KY3nXkkhqpzixgz64NwG", "api_key"=>"76b1faa9f02979e776f1b7a815e6ba3c2f6a5d4d", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.1769ms) 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.9081ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6ac587f643a545000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:15:17 UTC, "updated_at"=>2013-11-10 11:15:17 UTC, "memberships"=>[{"_id"=>"527f6ac587f643a545000003", "role"=>"admin", "account_id"=>"527f6ac587f643a545000001"}]}] flags=[] (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000002", "_id"=>{"$ne"=>"527f6ac587f643a545000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac587f643a545000004", "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"=>"527f6ac587f643a545000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000004"}, "$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"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a545000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6812ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a545000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6ac587f643a545000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000002", "_id"=>{"$ne"=>"527f6ac587f643a545000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527f6ac587f643a545000006", "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"=>"527f6ac587f643a545000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4003ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a545000006"]}} 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"=>"527f6ac587f643a545000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6ac587f643a545000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6ac587f643a545000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6ac587f643a545000008", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC, "entries_custom_fields"=>[{"_id"=>"527f6ac587f643a545000008", "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.2041ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6ac587f643a545000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f6ac587f643a545000009", "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", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}}} flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ac587f643a54500000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a545000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ac587f643a545000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a545000007"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ac587f643a54500000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ac587f643a545000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ac587f643a545000007", "content_type_id"=>"527f6ac587f643a545000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f6ac587f643a545000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6ac587f643a545000007", "_original_id"=>"527f6ac587f643a54500000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a54500000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527f6ac587f643a545000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6ac587f643a545000007", "_original_id"=>"527f6ac587f643a54500000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ac587f643a54500000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a545000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ac587f643a545000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a545000007"]}}} (0.4103ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a545000007"]}}} (0.3450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a545000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ac587f643a54500000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ac587f643a545000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ac587f643a545000007", "content_type_id"=>"527f6ac587f643a545000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f6ac587f643a545000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.1574ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6ac587f643a545000007", "_original_id"=>"527f6ac587f643a54500000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a54500000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527f6ac587f643a545000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6ac587f643a545000007", "_original_id"=>"527f6ac587f643a54500000c", "_keywords"=>["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.6373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002", "_id"=>{"$ne"=>"527f6ac587f643a54500000e"}, "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"=>"527f6ac587f643a545000004"}]}]}, "$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"=>"527f6ac587f643a54500000e", "parent_ids"=>["527f6ac587f643a545000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a54500000e"]}}, "$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"=>"527f6ac587f643a54500000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a54500000e"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a54500000e"}, "$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_models documents=[{"_id"=>"527f6ac587f643a54500000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527f6ac587f643a545000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a54500000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (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.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002", "_id"=>{"$ne"=>"527f6ac587f643a545000010"}, "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"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002"}, "$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"=>"527f6ac587f643a545000004"}]}]}, "$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"=>"527f6ac587f643a545000010", "parent_ids"=>["527f6ac587f643a545000004"], "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"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000010"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a545000010"]}} 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_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"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "$or"=>[{"slug.en"=>"seems-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"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002", "_id"=>{"$ne"=>"527f6ac587f643a545000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7517ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6ac587f643a545000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac587f643a545000011", "parent_ids"=>["527f6ac587f643a545000004"], "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"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.3483ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000011"]}}, "$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"=>"527f6ac587f643a545000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a545000011"]}} 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.5999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002", "_id"=>{"$ne"=>"527f6ac587f643a545000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac587f643a545000004", "site_id"=>"527f6ac587f643a545000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6ac587f643a545000004"}]}]}, "$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"=>"527f6ac587f643a545000012", "parent_ids"=>["527f6ac587f643a545000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f6ac587f643a545000002", "parent_id"=>"527f6ac587f643a545000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000012"]}}, "$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"=>"527f6ac587f643a545000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3753ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a545000012"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a545000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527f6ac587f643a545000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000012", "_keywords"=>["en:search"]}] flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "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_sites selector={"$query"=>{"_id"=>"527f6ac587f643a545000002"}, "$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=locomotive_pages selector={"_id"=>"527f6ac587f643a545000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:15:17 UTC}} flags=[] (0.1309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000004"]}}, "$orderby"=>{"position"=>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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000004"}, "$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=active_search_mongoid_models selector={"_id"=>"527f6ac587f643a545000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6ac587f643a545000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1481ms) 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.4928ms) 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.3042ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6ac587f643a545000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:15:17 UTC, "updated_at"=>2013-11-10 11:15:17 UTC, "memberships"=>[{"_id"=>"527f6ac587f643a545000015", "role"=>"admin", "account_id"=>"527f6ac587f643a545000001"}]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000014", "_id"=>{"$ne"=>"527f6ac587f643a545000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527f6ac587f643a545000016", "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"=>"527f6ac587f643a545000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000014", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000016"]}}, "$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"=>"527f6ac587f643a545000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac587f643a545000016"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a545000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6ac587f643a545000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac587f643a545000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000014", "_id"=>{"$ne"=>"527f6ac587f643a545000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7193ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac587f643a545000018", "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"=>"527f6ac587f643a545000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000014", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000018"]}}, "$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"=>"527f6ac587f643a545000018"}, "$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"=>["527f6ac587f643a545000018"]}} 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={"site_id"=>"527f6ac587f643a545000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000014", "_id"=>{"$ne"=>"527f6ac587f643a545000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac587f643a545000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac587f643a545000019", "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"=>"527f6ac587f643a545000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000014", "template_dependencies.en"=>{"$in"=>["527f6ac587f643a545000019"]}}, "$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"=>"527f6ac587f643a545000019"}, "$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"=>["527f6ac587f643a545000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a54500001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527f6ac587f643a545000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac587f643a545000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2346ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6ac587f643a545000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6ac587f643a54500001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6ac587f643a545000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6ac587f643a54500001c", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC, "entries_custom_fields"=>[{"_id"=>"527f6ac587f643a54500001c", "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.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ac587f643a54500001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a54500001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ac587f643a54500001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3810ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac587f643a54500001b"]}}} (0.4163ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ac587f643a54500001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ac587f643a54500001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ac587f643a54500001b", "content_type_id"=>"527f6ac587f643a54500001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f6ac587f643a545000014", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:17 UTC, "created_at"=>2013-11-10 11:15:17 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6ac587f643a54500001b", "_original_id"=>"527f6ac587f643a54500001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3603ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac587f643a54500001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527f6ac587f643a545000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6ac587f643a54500001b", "_original_id"=>"527f6ac587f643a54500001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.2160ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-10 12:15: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.7300ms) 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.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527f6ac587f643a545000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5841ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.9ms) Completed 200 OK in 43.5ms (Views: 36.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-10 12:15: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 2013-11-10 12:15:19 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (9ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-10 12:15:19 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-10 12:15:19 +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.7317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527f6ac587f643a545000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7081ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527f6ac587f643a545000001"} update={"$set"=>{"remember_created_at"=>2013-11-10 11:15:19 UTC, "updated_at"=>2013-11-10 11:15:19 UTC}} flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527f6ac587f643a545000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-10 11:15:19 UTC, "current_sign_in_at"=>2013-11-10 11:15:19 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-10 11:15:19 UTC}} flags=[] (0.1531ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 24.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-10 12:15:19 +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.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527f6ac587f643a545000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["527f6ac587f643a545000001"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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, "target_klass_name"=>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.8947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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, "target_klass_name"=>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.1883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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.7002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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.4692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527f6ac587f643a545000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7372ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (23.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (5.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (13.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (52.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"527f6ac587f643a545000001", :role=>:admin}}}} (0.5989ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_head.html.haml (13.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"527f6ac587f643a545000001"}} (0.5989ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527f6ac587f643a545000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7012ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (4.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (24.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 134.7ms (Views: 115.4ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-10 12:15:19 +0100 Served asset /locomotive.css - 200 OK (40ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-10 12:15:19 +0100 Served asset /locomotive.js - 200 OK (123ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-10 12:15:20 +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 2013-11-10 12:15:20 +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 2013-11-10 12:15:20 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-11-10 12:15:20 +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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527f6ac587f643a545000001"}, "$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"=>["527f6ac587f643a545000001"]}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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, "target_klass_name"=>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.1930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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.7403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac587f643a545000002"}, "$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.6223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527f6ac587f643a545000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8559ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (15.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6ac587f643a545000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6950ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_select_templates.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/custom_fields/_form.html.haml (67.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6ac587f643a545000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/_form.html.haml (88.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_form_actions.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (181.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"527f6ac587f643a545000001", :role=>:admin}}}} (0.6857ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527f6ac587f643a545000001"}} (0.4103ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527f6ac587f643a545000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7069ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (8.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 218.0ms (Views: 203.8ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-10 12:15:20 +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.6559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3103ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.9670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7999ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0180ms) 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.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.6258ms) 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"=>"527f6ac887f643a545000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b8a07dafa6d2424c578f51d60bda18870c0d21bd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"amzfuhTxo47qPELDxzKv", "api_key"=>"d5a1dcb80a42692a568f976b76586fe2dc8bbada", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 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.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f6ac887f643a545000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 11:15:17 UTC, "updated_at"=>2013-11-10 11:15:20 UTC, "memberships"=>[{"_id"=>"527f6ac887f643a545000022", "role"=>"admin", "account_id"=>"527f6ac887f643a545000020"}]}] flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000021", "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"=>"527f6ac887f643a545000021", "_id"=>{"$ne"=>"527f6ac887f643a545000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"527f6ac887f643a545000023", "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"=>"527f6ac887f643a545000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a545000023"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a545000024", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6ac887f643a545000021", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000023", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac887f643a545000021", "_id"=>{"$ne"=>"527f6ac887f643a545000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac887f643a545000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac887f643a545000025", "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"=>"527f6ac887f643a545000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.2422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000025"]}}, "$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"=>"527f6ac887f643a545000025"}, "$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"=>["527f6ac887f643a545000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6ac887f643a545000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6ac887f643a545000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6ac887f643a545000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6ac887f643a545000027", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC, "entries_custom_fields"=>[{"_id"=>"527f6ac887f643a545000027", "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.3021ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f6ac887f643a545000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f6ac887f643a545000028", "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", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}}} flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ac887f643a545000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a545000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ac887f643a545000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a545000026"]}}} (0.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ac887f643a545000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ac887f643a545000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ac887f643a545000026", "content_type_id"=>"527f6ac887f643a545000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f6ac887f643a545000021", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6ac887f643a545000026", "_original_id"=>"527f6ac887f643a545000029"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a54500002a", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527f6ac887f643a545000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6ac887f643a545000026", "_original_id"=>"527f6ac887f643a545000029", "_keywords"=>["findable", "entry"]}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ac887f643a54500002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a545000026"]}} 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"=>"527f6ac887f643a545000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a545000026"]}}} (0.4768ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a545000026"]}}} (0.2952ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a545000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ac887f643a54500002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ac887f643a545000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ac887f643a545000026", "content_type_id"=>"527f6ac887f643a545000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f6ac887f643a545000021", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6ac887f643a545000026", "_original_id"=>"527f6ac887f643a54500002b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a54500002c", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527f6ac887f643a545000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6ac887f643a545000026", "_original_id"=>"527f6ac887f643a54500002b", "_keywords"=>["hidden"]}] flags=[] (0.1080ms) 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.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "$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"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021", "_id"=>{"$ne"=>"527f6ac887f643a54500002d"}, "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"=>"527f6ac887f643a545000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac887f643a54500002d", "parent_ids"=>["527f6ac887f643a545000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a54500002d"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a54500002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a54500002d"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a54500002d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3107ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a54500002e", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527f6ac887f643a545000021", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a54500002d", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.7999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "$or"=>[{"slug.en"=>"unpublished-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"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021", "_id"=>{"$ne"=>"527f6ac887f643a54500002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"parent_id"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6ac887f643a545000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac887f643a54500002f", "parent_ids"=>["527f6ac887f643a545000023"], "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"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a54500002f"]}}, "$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"=>"527f6ac887f643a54500002f"}, "$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"=>["527f6ac887f643a54500002f"]}} 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.6192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021", "_id"=>{"$ne"=>"527f6ac887f643a545000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6ac887f643a545000023"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"527f6ac887f643a545000030", "parent_ids"=>["527f6ac887f643a545000023"], "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"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000030"]}}, "$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"=>"527f6ac887f643a545000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3877ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a545000030"]}} 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.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021", "_id"=>{"$ne"=>"527f6ac887f643a545000031"}, "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"=>"527f6ac887f643a545000023", "site_id"=>"527f6ac887f643a545000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f6ac887f643a545000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac887f643a545000031", "parent_ids"=>["527f6ac887f643a545000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f6ac887f643a545000021", "parent_id"=>"527f6ac887f643a545000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.4442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000031"]}}, "$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"=>"527f6ac887f643a545000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4532ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a545000031"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000031"}, "$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_models documents=[{"_id"=>"527f6ac887f643a545000032", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527f6ac887f643a545000021", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000031", "_keywords"=>["en:search"]}] flags=[] (0.1242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f6ac887f643a545000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4532ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f6ac887f643a545000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 11:15:20 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000023"]}}, "$orderby"=>{"position"=>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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5159ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527f6ac887f643a545000024"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6ac887f643a545000021", :fullpath=>{"en"=>"index"}}}} flags=[] (0.0968ms) 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.5970ms) 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"=>"527f6ac887f643a545000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 11:15:17 UTC, "updated_at"=>2013-11-10 11:15:20 UTC, "memberships"=>[{"_id"=>"527f6ac887f643a545000034", "role"=>"admin", "account_id"=>"527f6ac887f643a545000020"}]}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac887f643a545000033", "_id"=>{"$ne"=>"527f6ac887f643a545000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"527f6ac887f643a545000035", "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"=>"527f6ac887f643a545000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000033", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000035"]}}, "$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"=>"527f6ac887f643a545000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3483ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a545000035"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000035"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a545000036", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f6ac887f643a545000033", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000035", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f6ac887f643a545000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac887f643a545000033", "_id"=>{"$ne"=>"527f6ac887f643a545000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac887f643a545000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac887f643a545000037", "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"=>"527f6ac887f643a545000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000033", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000037"]}}, "$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"=>"527f6ac887f643a545000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a545000037"]}} 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={"site_id"=>"527f6ac887f643a545000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f6ac887f643a545000033", "_id"=>{"$ne"=>"527f6ac887f643a545000038"}, "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"=>nil, "site_id"=>"527f6ac887f643a545000033"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f6ac887f643a545000038", "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"=>"527f6ac887f643a545000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000033", "template_dependencies.en"=>{"$in"=>["527f6ac887f643a545000038"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f6ac887f643a545000038"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000038"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3448ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a545000039", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527f6ac887f643a545000033", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f6ac887f643a545000038", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6ac887f643a545000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f6ac887f643a54500003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f6ac887f643a545000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f6ac887f643a54500003b", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC, "entries_custom_fields"=>[{"_id"=>"527f6ac887f643a54500003b", "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.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f6ac887f643a54500003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a54500003a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f6ac887f643a54500003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f6ac887f643a54500003a"]}}} (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f6ac887f643a54500003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f6ac887f643a54500003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f6ac887f643a54500003a", "content_type_id"=>"527f6ac887f643a54500003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f6ac887f643a545000033", "_label_field_name"=>"name", "updated_at"=>2013-11-10 11:15:20 UTC, "created_at"=>2013-11-10 11:15:20 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f6ac887f643a54500003a", "_original_id"=>"527f6ac887f643a54500003c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4227ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f6ac887f643a54500003d", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527f6ac887f643a545000033", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f6ac887f643a54500003a", "_original_id"=>"527f6ac887f643a54500003c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1431ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-10 12:15: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 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.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527f6ac887f643a545000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4940ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (5.0ms) Completed 200 OK in 10.3ms (Views: 6.6ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-10 12:15: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.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527f6ac887f643a545000020"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527f6ac887f643a545000020"} update={"$set"=>{"remember_created_at"=>2013-11-10 11:15:21 UTC, "updated_at"=>2013-11-10 11:15:21 UTC}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527f6ac887f643a545000020"} update={"$set"=>{"last_sign_in_at"=>2013-11-10 11:15:21 UTC, "current_sign_in_at"=>2013-11-10 11:15:21 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-10 11:15:21 UTC}} flags=[] (0.1440ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 8.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-10 12:15: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.7322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527f6ac887f643a545000020"}, "$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_accounts selector={"_id"=>{"$in"=>["527f6ac887f643a545000020"]}} flags=[:slave_ok] limit=0 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"=>"527f6ac887f643a545000021"}, "$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, "target_klass_name"=>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.5543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021"}, "$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, "target_klass_name"=>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.1129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021"}, "$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.6888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021"}, "$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.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527f6ac887f643a545000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7081ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (13.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"527f6ac887f643a545000020", :role=>:admin}}}} (0.5770ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527f6ac887f643a545000020"}} (0.5438ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/global_actions/show.html.haml (1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"527f6ac887f643a545000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6592ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (8.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 57.1ms (Views: 38.6ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2013-11-10 12:15:21 +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.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527f6ac887f643a545000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["527f6ac887f643a545000020"]}} 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"=>{"site_id"=>"527f6ac887f643a545000021"}, "$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, "target_klass_name"=>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.1530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021"}, "$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.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021"}, "$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.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527f6ac887f643a545000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7350ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/menu/_contents.html.haml (13.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/content_assets/_picker.html.haml (5.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/theme_assets/_picker.html.haml (4.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_editable_elements.html.haml (8.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f6ac887f643a545000021", "parent_id"=>nil, "slug.en"=>{"$ne"=>"404"}, "$and"=>[{"_id"=>{"$ne"=>"527f6ac987f643adac00003e"}}]}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000023"}, "$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"=>"527f6ac887f643a54500002d"}, "$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"=>"527f6ac887f643a54500002f"}, "$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"=>"527f6ac887f643a545000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3207ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f6ac887f643a545000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f6ac887f643a545000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/_form.html.haml (101.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_form_actions.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (124.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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=>"527f6ac887f643a545000020", :role=>:admin}}}} (0.5031ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527f6ac887f643a545000020"}} (0.5870ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/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"=>"527f6ac887f643a545000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6452ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_site_picker.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_header.html.haml (6.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 156.9ms (Views: 143.7ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2013-11-10 12:15:21 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (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.7041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.3342ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1408ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (4.0891ms) 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 (7.5400ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5020ms) 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.8099ms) 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 (8.5888ms) 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 (7.7472ms) 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} (1.3990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"527f962387f64352ec000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5b2b6bd183c2bbba273dba75413b9510ba373a48", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"fqRt5FkjoRrmVauYEsiQ", "api_key"=>"228c1e58d661467caea0c586b77abc6d2613d01b", "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}] flags=[] (0.1469ms) 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} (22.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f962387f64352ec000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-10 14:20:19 UTC, "updated_at"=>2013-11-10 14:20:19 UTC, "memberships"=>[{"_id"=>"527f962387f64352ec000003", "role"=>"admin", "account_id"=>"527f962387f64352ec000001"}]}] flags=[] (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962387f64352ec000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (5.0631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f962387f64352ec000002", "_id"=>{"$ne"=>"527f962387f64352ec000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f962387f64352ec000004", "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"=>"527f962387f64352ec000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962387f64352ec000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962387f64352ec000004"]}}, "$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"=>["527f962387f64352ec000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f962387f64352ec000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.7730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962387f64352ec000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f962387f64352ec000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f962387f64352ec000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962387f64352ec000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f962387f64352ec000002", "_id"=>{"$ne"=>"527f962387f64352ec000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f962387f64352ec000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f962387f64352ec000006", "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"=>"527f962387f64352ec000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962387f64352ec000006"]}}, "$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"=>"527f962387f64352ec000006"}, "$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"=>["527f962387f64352ec000006"]}} 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_content_types selector={"site_id"=>"527f962387f64352ec000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f962387f64352ec000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f962387f64352ec000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f962387f64352ec000008", "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC, "entries_custom_fields"=>[{"_id"=>"527f962387f64352ec000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"527f962387f64352ec000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"527f962387f64352ec000009", "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", "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}}} flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f962387f64352ec00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f962387f64352ec000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.9687ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"527f962387f64352ec000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5612ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f962387f64352ec000007"]}}} (1.0293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f962387f64352ec00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f962387f64352ec000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f962387f64352ec000007", "content_type_id"=>"527f962387f64352ec000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"527f962387f64352ec000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f962387f64352ec000007", "_original_id"=>"527f962387f64352ec00000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.7342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962387f64352ec00000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"527f962387f64352ec000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f962387f64352ec000007", "_original_id"=>"527f962387f64352ec00000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f962387f64352ec00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry527f962387f64352ec000007"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"527f962387f64352ec000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3772ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f962387f64352ec000007"]}}} (0.3872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f962387f64352ec000007"]}}} (0.2978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f962387f64352ec000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (3.7811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f962387f64352ec00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry527f962387f64352ec000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f962387f64352ec000007", "content_type_id"=>"527f962387f64352ec000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"527f962387f64352ec000002", "_label_field_name"=>"name", "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}] flags=[] (0.1702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f962387f64352ec000007", "_original_id"=>"527f962387f64352ec00000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962387f64352ec00000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"527f962387f64352ec000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f962387f64352ec000007", "_original_id"=>"527f962387f64352ec00000c", "_keywords"=>["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.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002", "_id"=>{"$ne"=>"527f962387f64352ec00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f962387f64352ec000004"}]}]}, "$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"=>"527f962387f64352ec00000e", "parent_ids"=>["527f962387f64352ec000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:19 UTC, "created_at"=>2013-11-10 14:20:19 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962387f64352ec00000e"]}}, "$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"=>"527f962387f64352ec00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f962387f64352ec00000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f962387f64352ec00000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3183ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962387f64352ec00000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"527f962387f64352ec000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f962387f64352ec00000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.5658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002", "_id"=>{"$ne"=>"527f962387f64352ec000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f962387f64352ec000004"}]}]}, "$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"=>"527f962387f64352ec000010", "parent_ids"=>["527f962387f64352ec000004"], "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"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962387f64352ec000010"]}}, "$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"=>"527f962387f64352ec000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f962387f64352ec000010"]}} 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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002", "_id"=>{"$ne"=>"527f962487f64352ec000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"527f962387f64352ec000004"}]}]}, "$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"=>"527f962487f64352ec000011", "parent_ids"=>["527f962387f64352ec000004"], "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"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962487f64352ec000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962487f64352ec000011"}, "$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"=>["527f962487f64352ec000011"]}} 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.7038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002", "_id"=>{"$ne"=>"527f962487f64352ec000012"}, "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"=>"527f962387f64352ec000004", "site_id"=>"527f962387f64352ec000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"527f962387f64352ec000004"}]}]}, "$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"=>"527f962487f64352ec000012", "parent_ids"=>["527f962387f64352ec000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"527f962387f64352ec000002", "parent_id"=>"527f962387f64352ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962487f64352ec000012"]}}, "$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"=>"527f962487f64352ec000012"}, "$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"=>["527f962487f64352ec000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f962487f64352ec000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3521ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962487f64352ec000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"527f962387f64352ec000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f962487f64352ec000012", "_keywords"=>["en:search"]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"527f962387f64352ec000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2801ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"527f962387f64352ec000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-10 14:20:20 UTC}} flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002", "template_dependencies.en"=>{"$in"=>["527f962387f64352ec000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f962387f64352ec000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"527f962387f64352ec000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f962387f64352ec000002", :fullpath=>{"en"=>"index"}}}} 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.5493ms) 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.3350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"527f962487f64352ec000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-10 14:20:19 UTC, "updated_at"=>2013-11-10 14:20:20 UTC, "memberships"=>[{"_id"=>"527f962487f64352ec000015", "role"=>"admin", "account_id"=>"527f962387f64352ec000001"}]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962487f64352ec000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f962487f64352ec000014", "_id"=>{"$ne"=>"527f962487f64352ec000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f962487f64352ec000016", "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"=>"527f962487f64352ec000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962487f64352ec000014", "template_dependencies.en"=>{"$in"=>["527f962487f64352ec000016"]}}, "$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"=>"527f962487f64352ec000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3328ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["527f962487f64352ec000016"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f962487f64352ec000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3273ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962487f64352ec000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"527f962487f64352ec000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f962487f64352ec000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"527f962487f64352ec000014", "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"=>"527f962487f64352ec000014", "_id"=>{"$ne"=>"527f962487f64352ec000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"527f962487f64352ec000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"527f962487f64352ec000018", "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"=>"527f962487f64352ec000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962487f64352ec000014", "template_dependencies.en"=>{"$in"=>["527f962487f64352ec000018"]}}, "$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"=>"527f962487f64352ec000018"}, "$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"=>["527f962487f64352ec000018"]}} 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"=>"527f962487f64352ec000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"527f962487f64352ec000014", "_id"=>{"$ne"=>"527f962487f64352ec000019"}, "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"=>"527f962487f64352ec000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4733ms) 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.2697ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"527f962487f64352ec000019", "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"=>"527f962487f64352ec000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962487f64352ec000014", "template_dependencies.en"=>{"$in"=>["527f962487f64352ec000019"]}}, "$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"=>"527f962487f64352ec000019"}, "$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"=>["527f962487f64352ec000019"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"527f962487f64352ec000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962487f64352ec00001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"527f962487f64352ec000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"527f962487f64352ec000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f962487f64352ec000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"527f962487f64352ec00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"527f962487f64352ec000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"527f962487f64352ec00001c", "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC, "entries_custom_fields"=>[{"_id"=>"527f962487f64352ec00001c", "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.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"527f962487f64352ec00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry527f962487f64352ec00001b"]}} 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_content_entries selector={"content_type_id"=>"527f962487f64352ec00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry527f962487f64352ec00001b"]}}} (0.4647ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"527f962487f64352ec00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry527f962487f64352ec00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry527f962487f64352ec00001b", "content_type_id"=>"527f962487f64352ec00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"527f962487f64352ec000014", "_label_field_name"=>"name", "updated_at"=>2013-11-10 14:20:20 UTC, "created_at"=>2013-11-10 14:20:20 UTC}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry527f962487f64352ec00001b", "_original_id"=>"527f962487f64352ec00001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"527f962487f64352ec00001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"527f962487f64352ec000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry527f962487f64352ec00001b", "_original_id"=>"527f962487f64352ec00001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1187ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-10 15:20:21 +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.8209ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["527f962387f64352ec000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4640ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (22.9ms) Completed 200 OK in 47.6ms (Views: 40.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-10 15:20:21 +0100 Compiled locomotive/not_logged_in.js (128ms) (pid 90113) Served asset /locomotive/not_logged_in.js - 200 OK (138ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-11-10 15:20:21 +0100 Compiled locomotive/blueprint/screen.css (0ms) (pid 90113) Compiled locomotive/font-awesome.css (223ms) (pid 90113) Compiled locomotive/not_logged_in/installation.css (879ms) (pid 90113) Compiled locomotive/not_logged_in/layout.css (822ms) (pid 90113) Compiled locomotive/not_logged_in.css (1949ms) (pid 90113) Served asset /locomotive/not_logged_in.css - 200 OK (1963ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-10 15:20:23 +0100 Served asset /locomotive/background/body.png - 200 OK (3ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-10 15:20:23 +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.0719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["527f962387f64352ec000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527f962387f64352ec000001"} update={"$set"=>{"remember_created_at"=>2013-11-10 14:20:23 UTC, "updated_at"=>2013-11-10 14:20:23 UTC}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"527f962387f64352ec000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-10 14:20:23 UTC, "current_sign_in_at"=>2013-11-10 14:20:23 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-10 14:20:23 UTC}} flags=[] (0.1690ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 23.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-10 15:20:23 +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.8039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527f962387f64352ec000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["527f962387f64352ec000001"]}} 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"=>{"site_id"=>"527f962387f64352ec000002"}, "$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, "target_klass_name"=>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.3391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002"}, "$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, "target_klass_name"=>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_content_types selector={"$query"=>{"site_id"=>"527f962387f64352ec000002"}, "$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.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f962387f64352ec000002"}, "$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.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"527f962387f64352ec000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6289ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (23.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (45.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"527f962387f64352ec000001", :role=>:admin}}}} (0.6402ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (13.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"527f962387f64352ec000001"}} (0.5908ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"527f962387f64352ec000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6611ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (22.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 121.8ms (Views: 104.3ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-10 15:20:23 +0100 Compiled locomotive/jquery/ui.css (244ms) (pid 90113) Compiled locomotive/jquery.tagit.css (0ms) (pid 90113) Compiled select2/select2.css (248ms) (pid 90113) Compiled locomotive/toggle.css (295ms) (pid 90113) Compiled locomotive/liquid_mode.css (0ms) (pid 90113) Compiled locomotive/shared/_helpers.css (391ms) (pid 90113) Compiled locomotive/shared/_picker.css (627ms) (pid 90113) Compiled locomotive/shared/common.css (428ms) (pid 90113) Compiled locomotive/shared/content_locale_picker.css (709ms) (pid 90113) Compiled locomotive/shared/growl.css (75ms) (pid 90113) Compiled locomotive/backoffice/_box.css (1130ms) (pid 90113) Compiled locomotive/backoffice/_buttons.css (333ms) (pid 90113) Compiled locomotive/backoffice/application.css (2381ms) (pid 90113) Compiled locomotive/backoffice/codemirror_changes.css (397ms) (pid 90113) Compiled locomotive/backoffice/content_assets.css (1092ms) (pid 90113) Compiled locomotive/backoffice/datepicker.css (447ms) (pid 90113) Compiled locomotive/backoffice/dialog_changes.css (1148ms) (pid 90113) Compiled locomotive/backoffice/editable_elements.css (1916ms) (pid 90113) Compiled locomotive/backoffice/formtastic_changes.css (1326ms) (pid 90113) Compiled locomotive/backoffice/layout.css (1154ms) (pid 90113) Compiled locomotive/backoffice/menu/sub.css (193ms) (pid 90113) WARNING: This version of the transform module has been deprecated and will be removed. on line 3 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss from line 5 of /Users/didier/Documents/LocomotiveCMS/engine/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss Compiled locomotive/backoffice/menu/main.css (263ms) (pid 90113) Compiled locomotive/backoffice/menu/default.css (161ms) (pid 90113) Compiled locomotive/backoffice/menu.css (631ms) (pid 90113) Compiled locomotive/backoffice/menu/_colors.css (130ms) (pid 90113) Compiled locomotive/backoffice/menu/_helpers.css (2ms) (pid 90113) Compiled locomotive/backoffice/pagination.css (823ms) (pid 90113) Compiled locomotive/backoffice/sites_picker.css (715ms) (pid 90113) Compiled locomotive/backoffice/tagit_changes.css (345ms) (pid 90113) Compiled locomotive.css (17112ms) (pid 90113) Served asset /locomotive.css - 200 OK (17124ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-10 15:20:40 +0100 Compiled select2/select2.js (2ms) (pid 90113) Compiled locomotive/ICanHandlebarz.js (0ms) (pid 90113) Compiled locomotive/backbone.modelbinding.js (0ms) (pid 90113) Compiled locomotive/backbone.sync.js (0ms) (pid 90113) Compiled locomotive/cmd.js (0ms) (pid 90113) Compiled locomotive/cookies.js (0ms) (pid 90113) Compiled locomotive/datepicker_i18n.js (9ms) (pid 90113) Compiled locomotive/editable_field.js (0ms) (pid 90113) Compiled locomotive/form_submit_notification.js (0ms) (pid 90113) Compiled locomotive/growl.js (0ms) (pid 90113) Compiled locomotive/handlebars.js (1ms) (pid 90113) Compiled locomotive/jquery-ui-timepicker-addon.js (1ms) (pid 90113) Compiled locomotive/liquid_mode.js (0ms) (pid 90113) Compiled locomotive/menu_toggler.js (0ms) (pid 90113) Compiled locomotive/resize.js (0ms) (pid 90113) Compiled locomotive/slugify.js (0ms) (pid 90113) Compiled locomotive/smartupdater.js (0ms) (pid 90113) Compiled locomotive/subscribe.js (0ms) (pid 90113) Compiled locomotive/tag-it.min.js (0ms) (pid 90113) Compiled locomotive/toggle.js (0ms) (pid 90113) Compiled locomotive/vendor.js (93ms) (pid 90113) Compiled locomotive/utils/aloha_settings.js (91ms) (pid 90113) Compiled locomotive/utils/core_ext.js (0ms) (pid 90113) Compiled locomotive/utils/growl.js (0ms) (pid 90113) Compiled locomotive/utils/handlebar_helpers.js (68ms) (pid 90113) Compiled locomotive/utils/tinymce_settings.js (75ms) (pid 90113) Compiled locomotive/models/account.js (76ms) (pid 90113) Compiled locomotive/models/content_asset.js (77ms) (pid 90113) Compiled locomotive/models/content_entry.js (126ms) (pid 90113) Compiled locomotive/models/content_type.js (97ms) (pid 90113) Compiled locomotive/models/custom_field.js (99ms) (pid 90113) Compiled locomotive/models/custom_field_select_option.js (82ms) (pid 90113) Compiled locomotive/models/domain.js (65ms) (pid 90113) Compiled locomotive/models/editable_element.js (104ms) (pid 90113) Compiled locomotive/models/membership.js (80ms) (pid 90113) Compiled locomotive/models/page.js (89ms) (pid 90113) Compiled locomotive/models/site.js (106ms) (pid 90113) Compiled locomotive/models/snippet.js (72ms) (pid 90113) Compiled locomotive/models/theme_asset.js (73ms) (pid 90113) Compiled locomotive/models/translation.js (66ms) (pid 90113) Compiled locomotive/views/application_view.js (156ms) (pid 90113) Compiled locomotive/views/content_assets/picker_item_view.js (82ms) (pid 90113) Compiled locomotive/views/shared/asset_picker_view.js (156ms) (pid 90113) Compiled locomotive/views/content_assets/picker_view.js (275ms) (pid 90113) Compiled locomotive/views/shared/form_view.js (189ms) (pid 90113) Compiled locomotive/views/content_entries/_form_view.js (463ms) (pid 90113) Compiled locomotive/views/content_entries/_popup_form_view.js (133ms) (pid 90113) Compiled locomotive/views/content_entries/edit_view.js (75ms) (pid 90113) Compiled locomotive/views/content_entries/index_view.js (92ms) (pid 90113) Compiled locomotive/views/content_entries/new_view.js (72ms) (pid 90113) Compiled locomotive/views/content_types/_form_view.js (129ms) (pid 90113) Compiled locomotive/views/content_types/custom_field_entry_view.js (159ms) (pid 90113) Compiled locomotive/views/content_types/custom_fields_view.js (131ms) (pid 90113) Compiled locomotive/views/content_types/edit_view.js (79ms) (pid 90113) Compiled locomotive/views/content_types/new_view.js (74ms) (pid 90113) Compiled locomotive/views/content_types/select_options_view.js (118ms) (pid 90113) Compiled locomotive/views/sites/domains_view.js (119ms) (pid 90113) Compiled locomotive/views/current_site/edit_view.js (249ms) (pid 90113) Compiled locomotive/views/editable_elements/control_view.js (74ms) (pid 90113) Compiled locomotive/views/editable_elements/edit_all_view.js (123ms) (pid 90113) Compiled locomotive/views/editable_elements/file_view.js (115ms) (pid 90113) Compiled locomotive/views/editable_elements/text_view.js (98ms) (pid 90113) Compiled locomotive/views/inline_editor/application_view.js (155ms) (pid 90113) Compiled locomotive/views/inline_editor/toolbar_view.js (179ms) (pid 90113) Compiled locomotive/views/my_account/edit_view.js (83ms) (pid 90113) Compiled locomotive/views/pages/_form_view.js (202ms) (pid 90113) Compiled locomotive/views/pages/edit_view.js (89ms) (pid 90113) Compiled locomotive/views/pages/index_view.js (69ms) (pid 90113) Compiled locomotive/views/pages/list_view.js (88ms) (pid 90113) Compiled locomotive/views/pages/new_view.js (69ms) (pid 90113) Compiled locomotive/views/shared/fields/belongs_to_view.js (96ms) (pid 90113) Compiled locomotive/views/shared/fields/file_view.js (145ms) (pid 90113) Compiled locomotive/views/shared/fields/has_many_view.js (164ms) (pid 90113) Compiled locomotive/views/shared/fields/many_to_many_view.js (167ms) (pid 90113) Compiled locomotive/views/shared/fields/select_view.js (131ms) (pid 90113) Compiled locomotive/views/shared/list_item_view.js (79ms) (pid 90113) Compiled locomotive/views/shared/list_view.js (93ms) (pid 90113) Compiled locomotive/views/sites/domain_entry_view.js (78ms) (pid 90113) Compiled locomotive/views/sites/membership_entry_view.js (89ms) (pid 90113) Compiled locomotive/views/sites/memberships_view.js (88ms) (pid 90113) Compiled locomotive/views/sites/new_view.js (88ms) (pid 90113) Compiled locomotive/views/snippets/_form_view.js (111ms) (pid 90113) Compiled locomotive/views/snippets/edit_view.js (70ms) (pid 90113) Compiled locomotive/views/snippets/list_item_view.js (72ms) (pid 90113) Compiled locomotive/views/snippets/list_view.js (106ms) (pid 90113) Compiled locomotive/views/snippets/new_view.js (73ms) (pid 90113) Compiled locomotive/views/theme_assets/_form_view.js (147ms) (pid 90113) Compiled locomotive/views/theme_assets/edit_view.js (78ms) (pid 90113) Compiled locomotive/views/theme_assets/image_picker_view.js (101ms) (pid 90113) Compiled locomotive/views/theme_assets/index_view.js (138ms) (pid 90113) Compiled locomotive/views/theme_assets/list_item_view.js (69ms) (pid 90113) Compiled locomotive/views/theme_assets/list_view.js (77ms) (pid 90113) Compiled locomotive/views/theme_assets/new_view.js (78ms) (pid 90113) Compiled locomotive/views/translations/_form_view.js (79ms) (pid 90113) Compiled locomotive/views/translations/edit_view.js (71ms) (pid 90113) Compiled locomotive/views/translations/new_view.js (104ms) (pid 90113) Compiled locomotive/application.js (8132ms) (pid 90113) Compiled locomotive.js (8387ms) (pid 90113) Served asset /locomotive.js - 200 OK (8428ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-10 15:20:49 +0100 Served asset /locomotive/list/item-left.png - 200 OK (7ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2013-11-10 15:20:49 +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 2013-11-10 15:20:49 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (6ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2013-11-10 15:20:49 +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.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"527f962387f64352ec000001"}, "$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={"_id"=>{"$in"=>["527f962387f64352ec000001"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"527f962387f64352ec000002"}, "$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, "target_klass_name"=>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.5533ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f962387f64352ec000002"}, "$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.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"527f962387f64352ec000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"527f962387f64352ec000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8202ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (18.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_assets/_picker.html.haml (9.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/theme_assets/_picker.html.haml (7.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_editable_elements.html.haml (8.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"527f962387f64352ec000002"}, "$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, "target_klass_name"=>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.5559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"527f962387f64352ec000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1120ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (8.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_form.html.haml (168.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (3.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (207.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"527f962387f64352ec000001", :role=>:admin}}}} (0.5281ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (6.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"527f962387f64352ec000001"}} (0.4580ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"527f962387f64352ec000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (13.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 259.4ms (Views: 240.4ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2013-11-10 15:20:50 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (5ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-10 15:20:50 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (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.6609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (10.2220ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (14.5190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (6.7561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.8299ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (8.1882ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.8001ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0900ms) 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.5660ms) 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.5119ms) 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.8130ms) 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.4773ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5280f39587f64397c1000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"015ace149139f4e6bc6cdd9c3e712eabc7d147a0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"6Kj4pvBcRp6by92K8q8K", "api_key"=>"20d2ea7fa02906e2f857346e6440ea0fe74ab341", "updated_at"=>2013-11-11 15:11:17 UTC, "created_at"=>2013-11-11 15:11:17 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.9038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f39587f64397c1000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-11 15:11:16 UTC, "updated_at"=>2013-11-11 15:11:17 UTC, "memberships"=>[{"_id"=>"5280f39587f64397c1000003", "role"=>"admin", "account_id"=>"5280f39587f64397c1000001"}]}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39587f64397c1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39587f64397c1000002", "_id"=>{"$ne"=>"5280f39687f64397c1000004"}, "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"=>"5280f39687f64397c1000004", "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"=>"5280f39587f64397c1000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:18 UTC, "created_at"=>2013-11-11 15:11:18 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39687f64397c1000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39687f64397c1000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f39687f64397c1000004"]}} 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={"site_id"=>"5280f39587f64397c1000002", "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"=>"5280f39587f64397c1000002", "_id"=>{"$ne"=>"5280f39687f64397c1000005"}, "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"=>"5280f39587f64397c1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39687f64397c1000005", "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"=>"5280f39587f64397c1000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:18 UTC, "created_at"=>2013-11-11 15:11:18 UTC}] flags=[] (0.2136ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39687f64397c1000005"]}}, "$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"=>"5280f39687f64397c1000005"}, "$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"=>["5280f39687f64397c1000005"]}} 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"=>"5280f39587f64397c1000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f39687f64397c1000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f39587f64397c1000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f39687f64397c1000007", "updated_at"=>2013-11-11 15:11:18 UTC, "created_at"=>2013-11-11 15:11:18 UTC, "entries_custom_fields"=>[{"_id"=>"5280f39687f64397c1000007", "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.2317ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f39687f64397c1000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5280f39687f64397c1000008", "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", "updated_at"=>2013-11-11 15:11:18 UTC, "created_at"=>2013-11-11 15:11:18 UTC}}} flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f39687f64397c1000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39687f64397c1000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f39687f64397c1000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39687f64397c1000006"]}}} (0.5670ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f39687f64397c1000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f39687f64397c1000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f39687f64397c1000006", "content_type_id"=>"5280f39687f64397c1000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5280f39587f64397c1000002", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:18 UTC, "created_at"=>2013-11-11 15:11:18 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f39787f64397c100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39687f64397c1000006"]}} 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_content_entries selector={"content_type_id"=>"5280f39687f64397c1000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3591ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39687f64397c1000006"]}}} (0.3712ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39687f64397c1000006"]}}} (0.2780ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39687f64397c1000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f39787f64397c100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f39687f64397c1000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f39687f64397c1000006", "content_type_id"=>"5280f39687f64397c1000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5280f39587f64397c1000002", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:19 UTC, "created_at"=>2013-11-11 15:11:19 UTC}] flags=[] (0.2019ms) 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"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002", "_id"=>{"$ne"=>"5280f39887f64397c100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5280f39687f64397c1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39887f64397c100000b", "parent_ids"=>["5280f39687f64397c1000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:20 UTC, "created_at"=>2013-11-11 15:11:20 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39887f64397c100000b"]}}, "$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"=>"5280f39887f64397c100000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f39887f64397c100000b"]}} 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.7069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "$or"=>[{"slug.en"=>"unpublished-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"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002", "_id"=>{"$ne"=>"5280f39887f64397c100000c"}, "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"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f39687f64397c1000004"}]}]}, "$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"=>"5280f39887f64397c100000c", "parent_ids"=>["5280f39687f64397c1000004"], "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"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:20 UTC, "created_at"=>2013-11-11 15:11:20 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39887f64397c100000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39887f64397c100000c"}, "$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"=>["5280f39887f64397c100000c"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002", "_id"=>{"$ne"=>"5280f39887f64397c100000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002"}, "$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"=>"5280f39687f64397c1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39887f64397c100000d", "parent_ids"=>["5280f39687f64397c1000004"], "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"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:20 UTC, "created_at"=>2013-11-11 15:11:20 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39887f64397c100000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39887f64397c100000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f39887f64397c100000d"]}} 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.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002", "_id"=>{"$ne"=>"5280f39887f64397c100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39687f64397c1000004", "site_id"=>"5280f39587f64397c1000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f39687f64397c1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5193ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39887f64397c100000e", "parent_ids"=>["5280f39687f64397c1000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5280f39587f64397c1000002", "parent_id"=>"5280f39687f64397c1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:20 UTC, "created_at"=>2013-11-11 15:11:20 UTC}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39887f64397c100000e"]}}, "$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"=>"5280f39887f64397c100000e"}, "$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"=>["5280f39887f64397c100000e"]}} 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"=>{"site_id"=>"5280f39587f64397c1000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5280f39587f64397c1000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5280f39687f64397c1000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-11 15:11:21 UTC}} flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "template_dependencies.en"=>{"$in"=>["5280f39687f64397c1000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6251ms) 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.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f39a87f64397c100000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-11 15:11:16 UTC, "updated_at"=>2013-11-11 15:11:22 UTC, "memberships"=>[{"_id"=>"5280f39a87f64397c1000010", "role"=>"admin", "account_id"=>"5280f39587f64397c1000001"}]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39a87f64397c100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39a87f64397c100000f", "_id"=>{"$ne"=>"5280f39a87f64397c1000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39a87f64397c1000011", "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"=>"5280f39a87f64397c100000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:22 UTC, "created_at"=>2013-11-11 15:11:22 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39a87f64397c100000f", "template_dependencies.en"=>{"$in"=>["5280f39a87f64397c1000011"]}}, "$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"=>"5280f39a87f64397c1000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f39a87f64397c1000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1323ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39a87f64397c100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39a87f64397c100000f", "_id"=>{"$ne"=>"5280f39a87f64397c1000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39a87f64397c100000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39a87f64397c1000012", "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"=>"5280f39a87f64397c100000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:22 UTC, "created_at"=>2013-11-11 15:11:22 UTC}] flags=[] (0.3216ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39a87f64397c100000f", "template_dependencies.en"=>{"$in"=>["5280f39a87f64397c1000012"]}}, "$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"=>"5280f39a87f64397c1000012"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5280f39a87f64397c1000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39a87f64397c100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39a87f64397c100000f", "_id"=>{"$ne"=>"5280f39a87f64397c1000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39a87f64397c100000f"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39a87f64397c1000013", "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"=>"5280f39a87f64397c100000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:22 UTC, "created_at"=>2013-11-11 15:11:22 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39a87f64397c100000f", "template_dependencies.en"=>{"$in"=>["5280f39a87f64397c1000013"]}}, "$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"=>"5280f39a87f64397c1000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f39a87f64397c1000013"]}} 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_content_types selector={"site_id"=>"5280f39a87f64397c100000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5367ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f39b87f64397c1000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f39a87f64397c100000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f39b87f64397c1000015", "updated_at"=>2013-11-11 15:11:23 UTC, "created_at"=>2013-11-11 15:11:23 UTC, "entries_custom_fields"=>[{"_id"=>"5280f39b87f64397c1000015", "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.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f39b87f64397c1000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39b87f64397c1000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f39b87f64397c1000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39b87f64397c1000014"]}}} (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f39b87f64397c1000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f39b87f64397c1000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f39b87f64397c1000014", "content_type_id"=>"5280f39b87f64397c1000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5280f39a87f64397c100000f", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:23 UTC, "created_at"=>2013-11-11 15:11:23 UTC}] flags=[] (0.1640ms) Started GET "/" for 127.0.0.1 at 2013-11-11 16:11:24 +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.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "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 19.9ms (Views: 14.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-11 16:11:24 +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 (1.1110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "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.7761ms) Rendered text template (0.0ms) Completed 200 OK in 481.2ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-11-11 16:11:24 +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.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "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.6101ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2013-11-11 16:11:24 +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.8812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9871ms) Rendered text template (0.0ms) Completed 200 OK in 6.6ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-11 16:11:24 +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 (1.0562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39587f64397c1000002", "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.8850ms) Rendered text template (0.0ms) Completed 200 OK in 461.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.6509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.1071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.1293ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1620ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0972ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5790ms) 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.6490ms) 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.7701ms) 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.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5280f39e87f64397c1000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"673b5bdd1d07c5215e12e521f4a3ca080a89119a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"z1JJDGGQDosBPYswwkiT", "api_key"=>"5a35744d1edbb41973b918a7f9e9a03875798f63", "updated_at"=>2013-11-11 15:11:26 UTC, "created_at"=>2013-11-11 15:11:26 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.7341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f39e87f64397c1000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-11 15:11:16 UTC, "updated_at"=>2013-11-11 15:11:26 UTC, "memberships"=>[{"_id"=>"5280f39e87f64397c1000019", "role"=>"admin", "account_id"=>"5280f39e87f64397c1000017"}]}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39e87f64397c1000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39e87f64397c1000018", "_id"=>{"$ne"=>"5280f39e87f64397c100001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39e87f64397c100001a", "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"=>"5280f39e87f64397c1000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:26 UTC, "created_at"=>2013-11-11 15:11:26 UTC}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f39e87f64397c100001a"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39e87f64397c100001a"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5280f39e87f64397c100001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39e87f64397c1000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f39e87f64397c1000018", "_id"=>{"$ne"=>"5280f39f87f64397c100001b"}, "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"=>"5280f39e87f64397c1000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f39f87f64397c100001b", "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"=>"5280f39e87f64397c1000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:27 UTC, "created_at"=>2013-11-11 15:11:27 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f39f87f64397c100001b"]}}, "$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"=>"5280f39f87f64397c100001b"}, "$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"=>["5280f39f87f64397c100001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f39e87f64397c1000018", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5280f39f87f64397c100001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f39e87f64397c1000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f39f87f64397c100001d", "updated_at"=>2013-11-11 15:11:27 UTC, "created_at"=>2013-11-11 15:11:27 UTC, "entries_custom_fields"=>[{"_id"=>"5280f39f87f64397c100001d", "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.3579ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f39f87f64397c100001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5280f39f87f64397c100001e", "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", "updated_at"=>2013-11-11 15:11:27 UTC, "created_at"=>2013-11-11 15:11:27 UTC}}} flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f39f87f64397c100001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f39f87f64397c100001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4783ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f39f87f64397c100001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f39f87f64397c100001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f39f87f64397c100001c", "content_type_id"=>"5280f39f87f64397c100001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5280f39e87f64397c1000018", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:27 UTC, "created_at"=>2013-11-11 15:11:27 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3a087f64397c1000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}} 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"=>"5280f39f87f64397c100001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4218ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}}} (0.4439ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}}} (0.2472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3a087f64397c1000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f39f87f64397c100001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f39f87f64397c100001c", "content_type_id"=>"5280f39f87f64397c100001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5280f39e87f64397c1000018", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:28 UTC, "created_at"=>2013-11-11 15:11:28 UTC}] flags=[] (0.2100ms) 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"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "$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"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018", "_id"=>{"$ne"=>"5280f3a087f64397c1000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f39e87f64397c100001a"}]}]}, "$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"=>"5280f3a087f64397c1000021", "parent_ids"=>["5280f39e87f64397c100001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:28 UTC, "created_at"=>2013-11-11 15:11:28 UTC}] flags=[] (0.2372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f3a087f64397c1000021"]}}, "$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"=>"5280f3a087f64397c1000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.3801ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3a087f64397c1000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1912ms) 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"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "$or"=>[{"slug.en"=>"unpublished-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"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018", "_id"=>{"$ne"=>"5280f3a187f64397c1000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f39e87f64397c100001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5280f3a187f64397c1000022", "parent_ids"=>["5280f39e87f64397c100001a"], "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"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:29 UTC, "created_at"=>2013-11-11 15:11:29 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f3a187f64397c1000022"]}}, "$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"=>"5280f3a187f64397c1000022"}, "$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"=>["5280f3a187f64397c1000022"]}} 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={"$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"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "$or"=>[{"slug.en"=>"seems-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"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018", "_id"=>{"$ne"=>"5280f3a187f64397c1000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f39e87f64397c100001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3a187f64397c1000023", "parent_ids"=>["5280f39e87f64397c100001a"], "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"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:29 UTC, "created_at"=>2013-11-11 15:11:29 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f3a187f64397c1000023"]}}, "$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"=>"5280f3a187f64397c1000023"}, "$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"=>["5280f3a187f64397c1000023"]}} 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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018", "_id"=>{"$ne"=>"5280f3a187f64397c1000024"}, "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"=>"5280f39e87f64397c100001a", "site_id"=>"5280f39e87f64397c1000018"}, "$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"=>"5280f39e87f64397c100001a"}]}]}, "$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"=>"5280f3a187f64397c1000024", "parent_ids"=>["5280f39e87f64397c100001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5280f39e87f64397c1000018", "parent_id"=>"5280f39e87f64397c100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:29 UTC, "created_at"=>2013-11-11 15:11:29 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f3a187f64397c1000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3a187f64397c1000024"}, "$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"=>["5280f3a187f64397c1000024"]}} 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"=>{"site_id"=>"5280f39e87f64397c1000018", "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_sites selector={"$query"=>{"_id"=>"5280f39e87f64397c1000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3421ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5280f39e87f64397c100001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-11 15:11:30 UTC}} flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "template_dependencies.en"=>{"$in"=>["5280f39e87f64397c100001a"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_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"=>"5280f3a287f64397c1000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-11 15:11:16 UTC, "updated_at"=>2013-11-11 15:11:30 UTC, "memberships"=>[{"_id"=>"5280f3a287f64397c1000026", "role"=>"admin", "account_id"=>"5280f39e87f64397c1000017"}]}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3a287f64397c1000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3a287f64397c1000025", "_id"=>{"$ne"=>"5280f3a287f64397c1000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5280f3a287f64397c1000027", "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"=>"5280f3a287f64397c1000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:30 UTC, "created_at"=>2013-11-11 15:11:30 UTC}] flags=[] (0.2413ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3a287f64397c1000025", "template_dependencies.en"=>{"$in"=>["5280f3a287f64397c1000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3a287f64397c1000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7751ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3a287f64397c1000027"]}} 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"=>"5280f3a287f64397c1000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5280f3a287f64397c1000025", "_id"=>{"$ne"=>"5280f3a387f64397c1000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3a287f64397c1000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5280f3a387f64397c1000028", "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"=>"5280f3a287f64397c1000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:31 UTC, "created_at"=>2013-11-11 15:11:31 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3a287f64397c1000025", "template_dependencies.en"=>{"$in"=>["5280f3a387f64397c1000028"]}}, "$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"=>"5280f3a387f64397c1000028"}, "$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"=>["5280f3a387f64397c1000028"]}} 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"=>"5280f3a287f64397c1000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5280f3a287f64397c1000025", "_id"=>{"$ne"=>"5280f3a387f64397c1000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3a287f64397c1000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5112ms) 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.2680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3a387f64397c1000029", "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"=>"5280f3a287f64397c1000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:31 UTC, "created_at"=>2013-11-11 15:11:31 UTC}] flags=[] (0.1826ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3a287f64397c1000025", "template_dependencies.en"=>{"$in"=>["5280f3a387f64397c1000029"]}}, "$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"=>"5280f3a387f64397c1000029"}, "$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"=>["5280f3a387f64397c1000029"]}} 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"=>"5280f3a287f64397c1000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3a487f64397c100002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3a287f64397c1000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3a487f64397c100002b", "updated_at"=>2013-11-11 15:11:32 UTC, "created_at"=>2013-11-11 15:11:32 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3a487f64397c100002b", "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.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3a487f64397c100002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3a487f64397c100002a"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5280f3a487f64397c100002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3a487f64397c100002a"]}}} (0.4942ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3a487f64397c100002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3a487f64397c100002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3a487f64397c100002a", "content_type_id"=>"5280f3a487f64397c100002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5280f3a287f64397c1000025", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:32 UTC, "created_at"=>2013-11-11 15:11:32 UTC}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f39f87f64397c100001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}} 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_content_entries selector={"_id"=>{"$ne"=>"5280f3a087f64397c1000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}} 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"=>"5280f39f87f64397c100001c"} update={"$set"=>{"updated_at"=>2013-11-11 15:11:32 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1001ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f39f87f64397c100001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1032ms) Started GET "/" for 127.0.0.1 at 2013-11-11 16:11: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.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 5.0ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-11 16:11: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.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "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.6421ms) Rendered text template (0.0ms) Completed 200 OK in 474.7ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f39f87f64397c100001c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f39f87f64397c100001c", "updated_at"=>{"$lt"=>2013-11-11 15:11:32 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5280f39f87f64397c100001c"]}} 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_sites selector={"$query"=>{"_id"=>"5280f39e87f64397c1000018"}, "$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_content_types selector={"$query"=>{"_id"=>"5280f39f87f64397c100001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5280f39f87f64397c100001f"} update={"$set"=>{"updated_at"=>2013-11-11 15:11:33 UTC}} flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5280f39e87f64397c1000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5280f39f87f64397c100001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"5280f3a087f64397c1000020"} update={"$set"=>{"updated_at"=>2013-11-11 15:11:34 UTC}} flags=[] (0.1390ms) Started GET "/en/" for 127.0.0.1 at 2013-11-11 16:11:34 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-11 16:11:34 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) 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 2013-11-11 16:11:34 +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.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f39e87f64397c1000018", "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.6578ms) Rendered text template (0.0ms) Completed 200 OK in 476.5ms (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.6289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9360ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0200ms) 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.5622ms) 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.5960ms) 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.7350ms) 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.4578ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5280f3ac87f643aa79000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"532bb1968c4d9732935ba15e5eb656b350e3d5cc", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"B1sWUwvZEbA8YwLHP8fA", "api_key"=>"9b5f5b45ff531a79a54b544cf7021e383cdadf9b", "updated_at"=>2013-11-11 15:11:40 UTC, "created_at"=>2013-11-11 15:11:40 UTC}] flags=[] (0.3829ms) 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.8452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3ac87f643aa79000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-11 15:11:40 UTC, "updated_at"=>2013-11-11 15:11:40 UTC, "memberships"=>[{"_id"=>"5280f3ac87f643aa79000003", "role"=>"admin", "account_id"=>"5280f3ac87f643aa79000001"}]}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ac87f643aa79000002", "_id"=>{"$ne"=>"5280f3ac87f643aa79000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ac87f643aa79000004", "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"=>"5280f3ac87f643aa79000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:40 UTC, "created_at"=>2013-11-11 15:11:40 UTC}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ac87f643aa79000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4086ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ac87f643aa79000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ac87f643aa79000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ac87f643aa79000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ac87f643aa79000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3ac87f643aa79000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ac87f643aa79000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ac87f643aa79000002", "_id"=>{"$ne"=>"5280f3ac87f643aa79000006"}, "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"=>"5280f3ac87f643aa79000002"}, "$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"=>"5280f3ac87f643aa79000006", "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"=>"5280f3ac87f643aa79000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:40 UTC, "created_at"=>2013-11-11 15:11:40 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ac87f643aa79000006"]}}, "$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"=>"5280f3ac87f643aa79000006"}, "$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"=>["5280f3ac87f643aa79000006"]}} 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"=>"5280f3ac87f643aa79000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3ac87f643aa79000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3ac87f643aa79000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3ad87f643aa79000008", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3ad87f643aa79000008", "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.2272ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f3ac87f643aa79000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5280f3ad87f643aa79000009", "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", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}}} flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa7900000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ac87f643aa79000007"]}} 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_entries selector={"content_type_id"=>"5280f3ac87f643aa79000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ac87f643aa79000007"]}}} (0.3991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3ad87f643aa7900000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3ac87f643aa79000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3ac87f643aa79000007", "content_type_id"=>"5280f3ac87f643aa79000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5280f3ac87f643aa79000002", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ac87f643aa79000007", "_original_id"=>"5280f3ad87f643aa7900000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa7900000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5280f3ac87f643aa79000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3ac87f643aa79000007", "_original_id"=>"5280f3ad87f643aa7900000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa7900000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ac87f643aa79000007"]}} 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"=>"5280f3ac87f643aa79000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ac87f643aa79000007"]}}} (0.4160ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ac87f643aa79000007"]}}} (0.2890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ac87f643aa79000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3ad87f643aa7900000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3ac87f643aa79000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3ac87f643aa79000007", "content_type_id"=>"5280f3ac87f643aa79000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5280f3ac87f643aa79000002", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ac87f643aa79000007", "_original_id"=>"5280f3ad87f643aa7900000c"}, "$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_models documents=[{"_id"=>"5280f3ad87f643aa7900000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5280f3ac87f643aa79000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3ac87f643aa79000007", "_original_id"=>"5280f3ad87f643aa7900000c", "_keywords"=>["hidden"]}] flags=[] (0.1349ms) 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.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002", "_id"=>{"$ne"=>"5280f3ad87f643aa7900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3ac87f643aa79000004"}]}]}, "$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"=>"5280f3ad87f643aa7900000e", "parent_ids"=>["5280f3ac87f643aa79000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa7900000e"]}}, "$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"=>"5280f3ad87f643aa7900000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa7900000e"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa7900000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3347ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa7900000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5280f3ac87f643aa79000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa7900000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1588ms) 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.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002", "_id"=>{"$ne"=>"5280f3ad87f643aa79000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3ac87f643aa79000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000010", "parent_ids"=>["5280f3ac87f643aa79000004"], "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"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000010"]}}, "$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"=>"5280f3ad87f643aa79000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000010"]}} 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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002", "_id"=>{"$ne"=>"5280f3ad87f643aa79000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002"}, "$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"=>"5280f3ac87f643aa79000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000011", "parent_ids"=>["5280f3ac87f643aa79000004"], "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"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000011"]}}, "$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"=>"5280f3ad87f643aa79000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000011"]}} 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.5558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002", "_id"=>{"$ne"=>"5280f3ad87f643aa79000012"}, "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"=>"5280f3ac87f643aa79000004", "site_id"=>"5280f3ac87f643aa79000002"}, "$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"=>"5280f3ac87f643aa79000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000012", "parent_ids"=>["5280f3ac87f643aa79000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5280f3ac87f643aa79000002", "parent_id"=>"5280f3ac87f643aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000012"}, "$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"=>["5280f3ad87f643aa79000012"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5280f3ac87f643aa79000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000012", "_keywords"=>["en:search"]}] flags=[] (0.1607ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5280f3ac87f643aa79000002"}, "$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"=>"5280f3ac87f643aa79000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-11 15:11:41 UTC}} flags=[] (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "template_dependencies.en"=>{"$in"=>["5280f3ac87f643aa79000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ac87f643aa79000004"}, "$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=active_search_mongoid_models selector={"_id"=>"5280f3ac87f643aa79000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3ac87f643aa79000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1180ms) 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.6011ms) 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.3312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3ad87f643aa79000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-11 15:11:40 UTC, "updated_at"=>2013-11-11 15:11:41 UTC, "memberships"=>[{"_id"=>"5280f3ad87f643aa79000015", "role"=>"admin", "account_id"=>"5280f3ac87f643aa79000001"}]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000014", "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"=>"5280f3ad87f643aa79000014", "_id"=>{"$ne"=>"5280f3ad87f643aa79000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5280f3ad87f643aa79000016", "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"=>"5280f3ad87f643aa79000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.3073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000014", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5280f3ad87f643aa79000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2899ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3ad87f643aa79000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000014", "_id"=>{"$ne"=>"5280f3ad87f643aa79000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000018", "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"=>"5280f3ad87f643aa79000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.3903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000014", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000014", "_id"=>{"$ne"=>"5280f3ad87f643aa79000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000019", "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"=>"5280f3ad87f643aa79000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000014", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000019"]}}, "$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"=>"5280f3ad87f643aa79000019"}, "$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"=>["5280f3ad87f643aa79000019"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000019"}, "$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_models documents=[{"_id"=>"5280f3ad87f643aa7900001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5280f3ad87f643aa79000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3ad87f643aa79000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3ad87f643aa7900001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3ad87f643aa79000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3ad87f643aa7900001c", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3ad87f643aa7900001c", "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.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa7900001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa7900001b"]}} 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"=>"5280f3ad87f643aa7900001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3951ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa7900001b"]}}} (0.5391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3ad87f643aa7900001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3ad87f643aa7900001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3ad87f643aa7900001b", "content_type_id"=>"5280f3ad87f643aa7900001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5280f3ad87f643aa79000014", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa7900001b", "_original_id"=>"5280f3ad87f643aa7900001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa7900001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5280f3ad87f643aa79000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa7900001b", "_original_id"=>"5280f3ad87f643aa7900001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1769ms) Started GET "/" for 127.0.0.1 at 2013-11-11 16:11: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.6602ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) Rendered text template (0.0ms) Completed 200 OK in 12.9ms (Views: 7.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-11 16:11: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.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "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.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5280f3ac87f643aa79000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) Rendered text template (0.0ms) Completed 200 OK in 15.0ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-11-11 16:11:41 +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.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "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.5949ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-11 16:11: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.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4.0ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-11 16:11:41 +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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ac87f643aa79000002", "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.7229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5280f3ac87f643aa79000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5069ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (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.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2932ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.1489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3418ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.6398ms) 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.5050ms) 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_accounts selector={"email"=>"admin@locomotiveapp.org"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5280f3ad87f643aa7900001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8d4275f2b4f42bf0a80d14ff8ffda7330cc969e2", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RpLHczT91VVst3HAqD8E", "api_key"=>"b1bccefedc2f1a3ad80861c75f548e593362b5b0", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1450ms) 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.4842ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3ad87f643aa79000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-11 15:11:40 UTC, "updated_at"=>2013-11-11 15:11:41 UTC, "memberships"=>[{"_id"=>"5280f3ad87f643aa79000021", "role"=>"admin", "account_id"=>"5280f3ad87f643aa7900001f"}]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000020", "_id"=>{"$ne"=>"5280f3ad87f643aa79000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4563ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000022", "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"=>"5280f3ad87f643aa79000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000022"}, "$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"=>["5280f3ad87f643aa79000022"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000022"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000023", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3ad87f643aa79000020", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000022", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000020", "_id"=>{"$ne"=>"5280f3ad87f643aa79000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5280f3ad87f643aa79000024", "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"=>"5280f3ad87f643aa79000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000024"]}} 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"=>"5280f3ad87f643aa79000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7608ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3ad87f643aa79000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3ad87f643aa79000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3ad87f643aa79000026", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3ad87f643aa79000026", "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.1810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f3ad87f643aa79000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5280f3ad87f643aa79000027", "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", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}}} flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa79000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f3ad87f643aa79000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}}} (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3ad87f643aa79000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3ad87f643aa79000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "content_type_id"=>"5280f3ad87f643aa79000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5280f3ad87f643aa79000020", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "_original_id"=>"5280f3ad87f643aa79000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000029", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5280f3ad87f643aa79000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "_original_id"=>"5280f3ad87f643aa79000028", "_keywords"=>["findable", "entry"]}] flags=[] (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa7900002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}} 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"=>"5280f3ad87f643aa79000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3510ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}}} (0.3412ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}}} (0.2759ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3ad87f643aa7900002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3ad87f643aa79000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "content_type_id"=>"5280f3ad87f643aa79000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5280f3ad87f643aa79000020", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "_original_id"=>"5280f3ad87f643aa7900002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa7900002b", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5280f3ad87f643aa79000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "_original_id"=>"5280f3ad87f643aa7900002a", "_keywords"=>["hidden"]}] flags=[] (0.1149ms) 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"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020", "_id"=>{"$ne"=>"5280f3ad87f643aa7900002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3ad87f643aa79000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa7900002c", "parent_ids"=>["5280f3ad87f643aa79000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa7900002c"]}}, "$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"=>"5280f3ad87f643aa7900002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa7900002c"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa7900002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa7900002d", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5280f3ad87f643aa79000020", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa7900002c", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.5667ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020", "_id"=>{"$ne"=>"5280f3ad87f643aa7900002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3ad87f643aa79000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa7900002e", "parent_ids"=>["5280f3ad87f643aa79000022"], "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"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa7900002e"]}}, "$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"=>"5280f3ad87f643aa7900002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa7900002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) 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.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020", "_id"=>{"$ne"=>"5280f3ad87f643aa7900002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3ad87f643aa79000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6218ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa7900002f", "parent_ids"=>["5280f3ad87f643aa79000022"], "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"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa7900002f"]}}, "$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"=>"5280f3ad87f643aa7900002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa7900002f"]}} 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.6540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020", "_id"=>{"$ne"=>"5280f3ad87f643aa79000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000022", "site_id"=>"5280f3ad87f643aa79000020"}, "$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"=>"5280f3ad87f643aa79000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000030", "parent_ids"=>["5280f3ad87f643aa79000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5280f3ad87f643aa79000020", "parent_id"=>"5280f3ad87f643aa79000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000030"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4144ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000031", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5280f3ad87f643aa79000020", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000030", "_keywords"=>["en:search"]}] flags=[] (0.1254ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5280f3ad87f643aa79000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5280f3ad87f643aa79000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-11 15:11:41 UTC}} flags=[] (0.1583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000022"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5280f3ad87f643aa79000023"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3ad87f643aa79000020", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1209ms) 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.6220ms) 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.3409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3ad87f643aa79000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-11 15:11:40 UTC, "updated_at"=>2013-11-11 15:11:41 UTC, "memberships"=>[{"_id"=>"5280f3ad87f643aa79000033", "role"=>"admin", "account_id"=>"5280f3ad87f643aa7900001f"}]}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000032", "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"=>"5280f3ad87f643aa79000032", "_id"=>{"$ne"=>"5280f3ad87f643aa79000034"}, "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"=>"5280f3ad87f643aa79000034", "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"=>"5280f3ad87f643aa79000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000032", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"5280f3ad87f643aa79000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000034"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000034"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000035", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3ad87f643aa79000032", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000034", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1674ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3ad87f643aa79000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000032", "_id"=>{"$ne"=>"5280f3ad87f643aa79000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3ad87f643aa79000036", "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"=>"5280f3ad87f643aa79000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000032", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000036"]}}, "$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"=>"5280f3ad87f643aa79000036"}, "$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"=>["5280f3ad87f643aa79000036"]}} 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"=>"5280f3ad87f643aa79000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000032", "_id"=>{"$ne"=>"5280f3ad87f643aa79000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3ad87f643aa79000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$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"=>"5280f3ad87f643aa79000037", "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"=>"5280f3ad87f643aa79000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000032", "template_dependencies.en"=>{"$in"=>["5280f3ad87f643aa79000037"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5280f3ad87f643aa79000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9809ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3ad87f643aa79000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa79000038", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5280f3ad87f643aa79000032", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3ad87f643aa79000037", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3ad87f643aa79000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3ad87f643aa79000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3ad87f643aa79000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3ad87f643aa7900003a", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3ad87f643aa7900003a", "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.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa7900003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000039"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f3ad87f643aa79000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000039"]}}} (0.4423ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3ad87f643aa7900003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3ad87f643aa79000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000039", "content_type_id"=>"5280f3ad87f643aa79000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5280f3ad87f643aa79000032", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:41 UTC, "created_at"=>2013-11-11 15:11:41 UTC}] flags=[] (0.1588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000039", "_original_id"=>"5280f3ad87f643aa7900003b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3ad87f643aa7900003c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5280f3ad87f643aa79000032", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000039", "_original_id"=>"5280f3ad87f643aa7900003b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa79000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3ad87f643aa7900002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f3ad87f643aa79000025"} update={"$set"=>{"updated_at"=>2013-11-11 15:11:41 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f3ad87f643aa79000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1001ms) Started GET "/" for 127.0.0.1 at 2013-11-11 16:11: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.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6130ms) 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 2013-11-11 16:11:41 +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.7002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5280f3ad87f643aa79000020", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4249ms) 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"=>"5280f3ad87f643aa79000025"} 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"=>"5280f3ad87f643aa79000025", "updated_at"=>{"$lt"=>2013-11-11 15:11:41 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3ad87f643aa79000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5280f3ad87f643aa79000020"}, "$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_content_types selector={"$query"=>{"_id"=>"5280f3ad87f643aa79000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5280f3ad87f643aa79000028"} update={"$set"=>{"updated_at"=>2013-11-11 15:11:41 UTC}} flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "_original_id"=>"5280f3ad87f643aa79000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5713ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5280f3ad87f643aa79000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5280f3ad87f643aa79000020", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1197ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5280f3ad87f643aa79000020"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"5280f3ad87f643aa79000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5280f3ad87f643aa7900002a"} update={"$set"=>{"updated_at"=>2013-11-11 15:11:41 UTC}} flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3ad87f643aa79000025", "_original_id"=>"5280f3ad87f643aa7900002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5280f3ad87f643aa7900002b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5280f3ad87f643aa79000020", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1268ms) Started GET "/en/" for 127.0.0.1 at 2013-11-11 16:11:41 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-11 16:11:41 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7319ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-11 16:11:41 +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.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3ad87f643aa79000020", "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.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5280f3ad87f643aa79000020", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4551ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (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.5772ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4091ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3910ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1957ms) 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.7250ms) 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.5398ms) 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.7651ms) 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.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5280f3b387f643f9f1000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c563a9821fbddf22292216b2e053ad2cd31dd788", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"wpxEq18oz5nVdpkzAs4K", "api_key"=>"c37a73441c12dd5e992c119854762f74d5a39299", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1531ms) 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.0328ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3b387f643f9f1000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-11 15:11:47 UTC, "updated_at"=>2013-11-11 15:11:47 UTC, "memberships"=>[{"_id"=>"5280f3b387f643f9f1000003", "role"=>"admin", "account_id"=>"5280f3b387f643f9f1000001"}]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3b387f643f9f1000002", "_id"=>{"$ne"=>"5280f3b387f643f9f1000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3b387f643f9f1000004", "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"=>"5280f3b387f643f9f1000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.5193ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3b387f643f9f1000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4637ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f1000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3b387f643f9f1000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3b387f643f9f1000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5280f3b387f643f9f1000002", "_id"=>{"$ne"=>"5280f3b387f643f9f1000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3b387f643f9f1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3b387f643f9f1000006", "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"=>"5280f3b387f643f9f1000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000006"]}}, "$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"=>"5280f3b387f643f9f1000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f1000006"]}} 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_content_types selector={"site_id"=>"5280f3b387f643f9f1000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3b387f643f9f1000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3b387f643f9f1000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3b387f643f9f1000008", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3b387f643f9f1000008", "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.2260ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f3b387f643f9f1000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5280f3b387f643f9f1000009", "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", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}}} flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3b387f643f9f100000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f3b387f643f9f1000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f1000007"]}}} (0.4661ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3b387f643f9f100000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3b387f643f9f1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3b387f643f9f1000007", "content_type_id"=>"5280f3b387f643f9f1000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5280f3b387f643f9f1000002", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3b387f643f9f1000007", "_original_id"=>"5280f3b387f643f9f100000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.6302ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3b387f643f9f100000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5280f3b387f643f9f1000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3b387f643f9f1000007", "_original_id"=>"5280f3b387f643f9f100000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3b387f643f9f100000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f3b387f643f9f1000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f1000007"]}}} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f1000007"]}}} (0.3231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f1000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3b387f643f9f100000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3b387f643f9f1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3b387f643f9f1000007", "content_type_id"=>"5280f3b387f643f9f1000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5280f3b387f643f9f1000002", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3b387f643f9f1000007", "_original_id"=>"5280f3b387f643f9f100000c"}, "$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_models documents=[{"_id"=>"5280f3b387f643f9f100000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5280f3b387f643f9f1000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3b387f643f9f1000007", "_original_id"=>"5280f3b387f643f9f100000c", "_keywords"=>["hidden"]}] flags=[] (0.1409ms) 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.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002", "_id"=>{"$ne"=>"5280f3b387f643f9f100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3b387f643f9f1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3b387f643f9f100000e", "parent_ids"=>["5280f3b387f643f9f1000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f100000e"]}}, "$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"=>"5280f3b387f643f9f100000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f100000e"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f100000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3b387f643f9f100000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5280f3b387f643f9f1000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f100000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2210ms) 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.6406ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002", "_id"=>{"$ne"=>"5280f3b387f643f9f1000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3b387f643f9f1000004"}]}]}, "$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"=>"5280f3b387f643f9f1000010", "parent_ids"=>["5280f3b387f643f9f1000004"], "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"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000010"]}}, "$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"=>"5280f3b387f643f9f1000010"}, "$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"=>["5280f3b387f643f9f1000010"]}} 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={"$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"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002", "_id"=>{"$ne"=>"5280f3b387f643f9f1000011"}, "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"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3b387f643f9f1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5280f3b387f643f9f1000011", "parent_ids"=>["5280f3b387f643f9f1000004"], "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"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000011"]}}, "$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"=>"5280f3b387f643f9f1000011"}, "$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"=>["5280f3b387f643f9f1000011"]}} 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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002", "_id"=>{"$ne"=>"5280f3b387f643f9f1000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3b387f643f9f1000004", "site_id"=>"5280f3b387f643f9f1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3b387f643f9f1000004"}]}]}, "$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"=>"5280f3b387f643f9f1000012", "parent_ids"=>["5280f3b387f643f9f1000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5280f3b387f643f9f1000002", "parent_id"=>"5280f3b387f643f9f1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000012"]}}, "$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"=>"5280f3b387f643f9f1000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f1000012"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000012"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"5280f3b387f643f9f1000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5280f3b387f643f9f1000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000012", "_keywords"=>["en:search"]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5280f3b387f643f9f1000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5817ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5280f3b387f643f9f1000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-11 15:11:47 UTC}} flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7398ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5280f3b387f643f9f1000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3b387f643f9f1000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1540ms) 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.3550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3b387f643f9f1000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-11 15:11:47 UTC, "updated_at"=>2013-11-11 15:11:47 UTC, "memberships"=>[{"_id"=>"5280f3b387f643f9f1000015", "role"=>"admin", "account_id"=>"5280f3b387f643f9f1000001"}]}] flags=[] (0.1593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3b387f643f9f1000014", "_id"=>{"$ne"=>"5280f3b387f643f9f1000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5280f3b387f643f9f1000016", "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"=>"5280f3b387f643f9f1000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000014", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000016"]}}, "$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"=>"5280f3b387f643f9f1000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f1000016"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000016"}, "$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_models documents=[{"_id"=>"5280f3b387f643f9f1000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3b387f643f9f1000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3b387f643f9f1000014", "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"=>"5280f3b387f643f9f1000014", "_id"=>{"$ne"=>"5280f3b387f643f9f1000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3b387f643f9f1000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5280f3b387f643f9f1000018", "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"=>"5280f3b387f643f9f1000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000014", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000018"]}}, "$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"=>"5280f3b387f643f9f1000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f1000018"]}} 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"=>"5280f3b387f643f9f1000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3b387f643f9f1000014", "_id"=>{"$ne"=>"5280f3b387f643f9f1000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7854ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3b387f643f9f1000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3b387f643f9f1000019", "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"=>"5280f3b387f643f9f1000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000014", "template_dependencies.en"=>{"$in"=>["5280f3b387f643f9f1000019"]}}, "$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"=>"5280f3b387f643f9f1000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3b387f643f9f1000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3b387f643f9f100001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5280f3b387f643f9f1000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3b387f643f9f1000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3b387f643f9f1000014", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5280f3b387f643f9f100001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3b387f643f9f1000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3b387f643f9f100001c", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3b387f643f9f100001c", "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.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3b387f643f9f100001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f100001b"]}} 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"=>"5280f3b387f643f9f100001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3b387f643f9f100001b"]}}} (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3b387f643f9f100001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3b387f643f9f100001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3b387f643f9f100001b", "content_type_id"=>"5280f3b387f643f9f100001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5280f3b387f643f9f1000014", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:11:47 UTC, "created_at"=>2013-11-11 15:11:47 UTC}] flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3b387f643f9f100001b", "_original_id"=>"5280f3b387f643f9f100001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3b387f643f9f100001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5280f3b387f643f9f1000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3b387f643f9f100001b", "_original_id"=>"5280f3b387f643f9f100001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1898ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-11 16:11: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} (1.0881ms) 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.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5280f3b387f643f9f1000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7119ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (25.5ms) Completed 200 OK in 50.3ms (Views: 43.2ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-11 16:11:49 +0100 Compiled locomotive/not_logged_in.js (147ms) (pid 1376) Served asset /locomotive/not_logged_in.js - 200 OK (160ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-11-11 16:11:49 +0100 Compiled locomotive/blueprint/screen.css (0ms) (pid 1376) Compiled locomotive/font-awesome.css (232ms) (pid 1376) Compiled locomotive/not_logged_in/installation.css (970ms) (pid 1376) Compiled locomotive/not_logged_in/layout.css (892ms) (pid 1376) Compiled locomotive/not_logged_in.css (2120ms) (pid 1376) Served asset /locomotive/not_logged_in.css - 200 OK (2133ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-11 16:11:51 +0100 Served asset /locomotive/background/body.png - 200 OK (6ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-11 16:11:51 +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.8738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5280f3b387f643f9f1000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5867ms) 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.6452ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5280f3b387f643f9f1000001"} update={"$set"=>{"remember_created_at"=>2013-11-11 15:11:51 UTC, "updated_at"=>2013-11-11 15:11:51 UTC}} flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5280f3b387f643f9f1000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-11 15:11:51 UTC, "current_sign_in_at"=>2013-11-11 15:11:51 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-11 15:11:51 UTC}} flags=[] (0.2582ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 24.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-11 16:11:51 +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.7000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5280f3b387f643f9f1000001"}, "$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={"_id"=>{"$in"=>["5280f3b387f643f9f1000001"]}} 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"=>"5280f3b387f643f9f1000002"}, "$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, "target_klass_name"=>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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002"}, "$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, "target_klass_name"=>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.1060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002"}, "$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.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002"}, "$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.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5280f3b387f643f9f1000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6380ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (23.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (9.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (46.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5280f3b387f643f9f1000001", :role=>:admin}}}} (0.6661ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5280f3b387f643f9f1000001"}} (0.6061ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5280f3b387f643f9f1000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6750ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (4.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (23.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 127.3ms (Views: 108.1ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-11 16:11:51 +0100 Compiled locomotive/jquery/ui.css (348ms) (pid 1376) Compiled locomotive/jquery.tagit.css (0ms) (pid 1376) Compiled select2/select2.css (182ms) (pid 1376) Compiled locomotive/toggle.css (362ms) (pid 1376) Compiled locomotive/liquid_mode.css (0ms) (pid 1376) Compiled locomotive/shared/_helpers.css (351ms) (pid 1376) Compiled locomotive/shared/_picker.css (767ms) (pid 1376) Compiled locomotive/shared/common.css (476ms) (pid 1376) Compiled locomotive/shared/content_locale_picker.css (809ms) (pid 1376) Compiled locomotive/shared/growl.css (85ms) (pid 1376) Compiled locomotive/backoffice/_box.css (1289ms) (pid 1376) Compiled locomotive/backoffice/_buttons.css (466ms) (pid 1376) Compiled locomotive/backoffice/application.css (2907ms) (pid 1376) Compiled locomotive/backoffice/codemirror_changes.css (667ms) (pid 1376) Compiled locomotive/backoffice/content_assets.css (2086ms) (pid 1376) Compiled locomotive/backoffice/datepicker.css (692ms) (pid 1376) Compiled locomotive/backoffice/dialog_changes.css (1860ms) (pid 1376) Compiled locomotive/backoffice/editable_elements.css (2997ms) (pid 1376) Compiled locomotive/backoffice/formtastic_changes.css (1735ms) (pid 1376) Compiled locomotive/backoffice/layout.css (1438ms) (pid 1376) Compiled locomotive/backoffice/menu/sub.css (235ms) (pid 1376) WARNING: This version of the transform module has been deprecated and will be removed. on line 3 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-0.12.2/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss from line 5 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss Compiled locomotive/backoffice/menu/main.css (269ms) (pid 1376) Compiled locomotive/backoffice/menu/default.css (200ms) (pid 1376) Compiled locomotive/backoffice/menu.css (719ms) (pid 1376) Compiled locomotive/backoffice/menu/_colors.css (235ms) (pid 1376) Compiled locomotive/backoffice/menu/_helpers.css (4ms) (pid 1376) Compiled locomotive/backoffice/pagination.css (1028ms) (pid 1376) Compiled locomotive/backoffice/sites_picker.css (763ms) (pid 1376) Compiled locomotive/backoffice/tagit_changes.css (648ms) (pid 1376) Compiled locomotive.css (23056ms) (pid 1376) Served asset /locomotive.css - 200 OK (23071ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-11 16:12:14 +0100 Compiled select2/select2.js (2ms) (pid 1376) Compiled locomotive/ICanHandlebarz.js (0ms) (pid 1376) Compiled locomotive/backbone.modelbinding.js (0ms) (pid 1376) Compiled locomotive/backbone.sync.js (0ms) (pid 1376) Compiled locomotive/cmd.js (0ms) (pid 1376) Compiled locomotive/cookies.js (0ms) (pid 1376) Compiled locomotive/datepicker_i18n.js (10ms) (pid 1376) Compiled locomotive/editable_field.js (0ms) (pid 1376) Compiled locomotive/form_submit_notification.js (0ms) (pid 1376) Compiled locomotive/growl.js (0ms) (pid 1376) Compiled locomotive/handlebars.js (1ms) (pid 1376) Compiled locomotive/jquery-ui-timepicker-addon.js (1ms) (pid 1376) Compiled locomotive/liquid_mode.js (0ms) (pid 1376) Compiled locomotive/menu_toggler.js (0ms) (pid 1376) Compiled locomotive/resize.js (0ms) (pid 1376) Compiled locomotive/slugify.js (0ms) (pid 1376) Compiled locomotive/smartupdater.js (0ms) (pid 1376) Compiled locomotive/subscribe.js (0ms) (pid 1376) Compiled locomotive/tag-it.min.js (0ms) (pid 1376) Compiled locomotive/toggle.js (0ms) (pid 1376) Compiled locomotive/vendor.js (120ms) (pid 1376) Compiled locomotive/utils/aloha_settings.js (121ms) (pid 1376) Compiled locomotive/utils/core_ext.js (0ms) (pid 1376) Compiled locomotive/utils/growl.js (0ms) (pid 1376) Compiled locomotive/utils/handlebar_helpers.js (91ms) (pid 1376) Compiled locomotive/utils/tinymce_settings.js (109ms) (pid 1376) Compiled locomotive/models/account.js (74ms) (pid 1376) Compiled locomotive/models/content_asset.js (77ms) (pid 1376) Compiled locomotive/models/content_entry.js (145ms) (pid 1376) Compiled locomotive/models/content_type.js (161ms) (pid 1376) Compiled locomotive/models/custom_field.js (112ms) (pid 1376) Compiled locomotive/models/custom_field_select_option.js (143ms) (pid 1376) Compiled locomotive/models/domain.js (96ms) (pid 1376) Compiled locomotive/models/editable_element.js (130ms) (pid 1376) Compiled locomotive/models/membership.js (87ms) (pid 1376) Compiled locomotive/models/page.js (99ms) (pid 1376) Compiled locomotive/models/site.js (111ms) (pid 1376) Compiled locomotive/models/snippet.js (91ms) (pid 1376) Compiled locomotive/models/theme_asset.js (78ms) (pid 1376) Compiled locomotive/models/translation.js (96ms) (pid 1376) Compiled locomotive/views/application_view.js (175ms) (pid 1376) Compiled locomotive/views/content_assets/picker_item_view.js (162ms) (pid 1376) Compiled locomotive/views/shared/asset_picker_view.js (142ms) (pid 1376) Compiled locomotive/views/content_assets/picker_view.js (274ms) (pid 1376) Compiled locomotive/views/shared/form_view.js (199ms) (pid 1376) Compiled locomotive/views/content_entries/_form_view.js (500ms) (pid 1376) Compiled locomotive/views/content_entries/_popup_form_view.js (148ms) (pid 1376) Compiled locomotive/views/content_entries/edit_view.js (81ms) (pid 1376) Compiled locomotive/views/content_entries/index_view.js (96ms) (pid 1376) Compiled locomotive/views/content_entries/new_view.js (79ms) (pid 1376) Compiled locomotive/views/content_types/_form_view.js (129ms) (pid 1376) Compiled locomotive/views/content_types/custom_field_entry_view.js (168ms) (pid 1376) Compiled locomotive/views/content_types/custom_fields_view.js (145ms) (pid 1376) Compiled locomotive/views/content_types/edit_view.js (88ms) (pid 1376) Compiled locomotive/views/content_types/new_view.js (87ms) (pid 1376) Compiled locomotive/views/content_types/select_options_view.js (153ms) (pid 1376) Compiled locomotive/views/sites/domains_view.js (131ms) (pid 1376) Compiled locomotive/views/current_site/edit_view.js (276ms) (pid 1376) Compiled locomotive/views/editable_elements/control_view.js (90ms) (pid 1376) Compiled locomotive/views/editable_elements/edit_all_view.js (133ms) (pid 1376) Compiled locomotive/views/editable_elements/file_view.js (134ms) (pid 1376) Compiled locomotive/views/editable_elements/text_view.js (103ms) (pid 1376) Compiled locomotive/views/inline_editor/application_view.js (172ms) (pid 1376) Compiled locomotive/views/inline_editor/toolbar_view.js (195ms) (pid 1376) Compiled locomotive/views/my_account/edit_view.js (102ms) (pid 1376) Compiled locomotive/views/pages/_form_view.js (239ms) (pid 1376) Compiled locomotive/views/pages/edit_view.js (101ms) (pid 1376) Compiled locomotive/views/pages/index_view.js (78ms) (pid 1376) Compiled locomotive/views/pages/list_view.js (96ms) (pid 1376) Compiled locomotive/views/pages/new_view.js (73ms) (pid 1376) Compiled locomotive/views/shared/fields/belongs_to_view.js (111ms) (pid 1376) Compiled locomotive/views/shared/fields/file_view.js (169ms) (pid 1376) Compiled locomotive/views/shared/fields/has_many_view.js (185ms) (pid 1376) Compiled locomotive/views/shared/fields/many_to_many_view.js (201ms) (pid 1376) Compiled locomotive/views/shared/fields/select_view.js (145ms) (pid 1376) Compiled locomotive/views/shared/list_item_view.js (93ms) (pid 1376) Compiled locomotive/views/shared/list_view.js (100ms) (pid 1376) Compiled locomotive/views/sites/domain_entry_view.js (87ms) (pid 1376) Compiled locomotive/views/sites/membership_entry_view.js (89ms) (pid 1376) Compiled locomotive/views/sites/memberships_view.js (97ms) (pid 1376) Compiled locomotive/views/sites/new_view.js (96ms) (pid 1376) Compiled locomotive/views/snippets/_form_view.js (117ms) (pid 1376) Compiled locomotive/views/snippets/edit_view.js (70ms) (pid 1376) Compiled locomotive/views/snippets/list_item_view.js (98ms) (pid 1376) Compiled locomotive/views/snippets/list_view.js (111ms) (pid 1376) Compiled locomotive/views/snippets/new_view.js (109ms) (pid 1376) Compiled locomotive/views/theme_assets/_form_view.js (236ms) (pid 1376) Compiled locomotive/views/theme_assets/edit_view.js (122ms) (pid 1376) Compiled locomotive/views/theme_assets/image_picker_view.js (156ms) (pid 1376) Compiled locomotive/views/theme_assets/index_view.js (171ms) (pid 1376) Compiled locomotive/views/theme_assets/list_item_view.js (76ms) (pid 1376) Compiled locomotive/views/theme_assets/list_view.js (82ms) (pid 1376) Compiled locomotive/views/theme_assets/new_view.js (84ms) (pid 1376) Compiled locomotive/views/translations/_form_view.js (87ms) (pid 1376) Compiled locomotive/views/translations/edit_view.js (73ms) (pid 1376) Compiled locomotive/views/translations/new_view.js (74ms) (pid 1376) Compiled locomotive/application.js (9477ms) (pid 1376) Compiled locomotive.js (9706ms) (pid 1376) Served asset /locomotive.js - 200 OK (9739ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-11 16:12:24 +0100 Served asset /locomotive/list/item-left.png - 200 OK (6ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2013-11-11 16:12:24 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (7ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2013-11-11 16:12:24 +0100 Served asset /locomotive/nocoffee.png - 200 OK (4ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-11-11 16:12:24 +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.9091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5280f3b387f643f9f1000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5280f3b387f643f9f1000001"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"5280f3b387f643f9f1000002"}, "$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, "target_klass_name"=>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.4379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002"}, "$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.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3b387f643f9f1000002"}, "$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.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5280f3b387f643f9f1000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7720ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (19.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3b387f643f9f1000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6142ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (7.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_select_templates.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_form.html.haml (85.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3b387f643f9f1000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5460ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/_form.html.haml (116.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (152.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5280f3b387f643f9f1000001", :role=>:admin}}}} (0.8461ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (8.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5280f3b387f643f9f1000001"}} (0.4330ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/global_actions/show.html.haml (1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5280f3b387f643f9f1000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6008ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (9.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (1.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 199.2ms (Views: 182.0ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-11 16:12:25 +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 (0.6881ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2631ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1761ms) 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.5481ms) 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.6459ms) 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.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5280f3d987f643f9f1000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7669d22348a01434f32ca78ca3731a91412930b4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"NJaKrpKdDQJvJVWmCLzC", "api_key"=>"cdcef9f5381f5ab1f58a44ce2a29b67b92f37f5f", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.1538ms) 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.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3d987f643f9f1000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-11 15:11:47 UTC, "updated_at"=>2013-11-11 15:12:25 UTC, "memberships"=>[{"_id"=>"5280f3d987f643f9f1000022", "role"=>"admin", "account_id"=>"5280f3d987f643f9f1000020"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000021", "_id"=>{"$ne"=>"5280f3d987f643f9f1000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5280f3d987f643f9f1000023", "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"=>"5280f3d987f643f9f1000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000023"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f1000023"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3d987f643f9f1000024", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3d987f643f9f1000021", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000023", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000021", "_id"=>{"$ne"=>"5280f3d987f643f9f1000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3d987f643f9f1000025", "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"=>"5280f3d987f643f9f1000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.3238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5280f3d987f643f9f1000025"}, "$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"=>["5280f3d987f643f9f1000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3d987f643f9f1000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3d987f643f9f1000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3d987f643f9f1000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3d987f643f9f1000027", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3d987f643f9f1000027", "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.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5280f3d987f643f9f1000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5280f3d987f643f9f1000028", "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", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}}} flags=[] (0.2613ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3d987f643f9f1000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f1000026"]}} 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"=>"5280f3d987f643f9f1000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f1000026"]}}} (0.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3d987f643f9f1000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3d987f643f9f1000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3d987f643f9f1000026", "content_type_id"=>"5280f3d987f643f9f1000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5280f3d987f643f9f1000021", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.3002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3d987f643f9f1000026", "_original_id"=>"5280f3d987f643f9f1000029"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3d987f643f9f100002a", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5280f3d987f643f9f1000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3d987f643f9f1000026", "_original_id"=>"5280f3d987f643f9f1000029", "_keywords"=>["findable", "entry"]}] flags=[] (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3d987f643f9f100002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f1000026"]}} 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"=>"5280f3d987f643f9f1000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f1000026"]}}} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f1000026"]}}} (0.3667ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f1000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3d987f643f9f100002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3d987f643f9f1000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3d987f643f9f1000026", "content_type_id"=>"5280f3d987f643f9f1000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5280f3d987f643f9f1000021", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3d987f643f9f1000026", "_original_id"=>"5280f3d987f643f9f100002b"}, "$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_models documents=[{"_id"=>"5280f3d987f643f9f100002c", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5280f3d987f643f9f1000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3d987f643f9f1000026", "_original_id"=>"5280f3d987f643f9f100002b", "_keywords"=>["hidden"]}] flags=[] (0.1242ms) 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.8309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021", "_id"=>{"$ne"=>"5280f3d987f643f9f100002d"}, "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"=>"5280f3d987f643f9f1000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3d987f643f9f100002d", "parent_ids"=>["5280f3d987f643f9f1000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.2959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f100002d"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f100002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f100002d"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f100002d"}, "$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_models documents=[{"_id"=>"5280f3d987f643f9f100002e", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5280f3d987f643f9f1000021", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f100002d", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1862ms) 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"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021", "_id"=>{"$ne"=>"5280f3d987f643f9f100002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3d987f643f9f1000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5963ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3d987f643f9f100002f", "parent_ids"=>["5280f3d987f643f9f1000023"], "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"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f100002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f100002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3903ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f100002f"]}} 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.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6096ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021", "_id"=>{"$ne"=>"5280f3d987f643f9f1000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3d987f643f9f1000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3d987f643f9f1000030", "parent_ids"=>["5280f3d987f643f9f1000023"], "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"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000030"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f1000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1812ms) 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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021", "_id"=>{"$ne"=>"5280f3d987f643f9f1000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000023", "site_id"=>"5280f3d987f643f9f1000021"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5280f3d987f643f9f1000023"}]}]}, "$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"=>"5280f3d987f643f9f1000031", "parent_ids"=>["5280f3d987f643f9f1000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5280f3d987f643f9f1000021", "parent_id"=>"5280f3d987f643f9f1000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000031"]}}, "$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"=>"5280f3d987f643f9f1000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f1000031"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000031"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3d987f643f9f1000032", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5280f3d987f643f9f1000021", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000031", "_keywords"=>["en:search"]}] flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5280f3d987f643f9f1000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5280f3d987f643f9f1000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-11 15:12:25 UTC}} flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5280f3d987f643f9f1000024"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3d987f643f9f1000021", :fullpath=>{"en"=>"index"}}}} 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.5240ms) 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.3812ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5280f3d987f643f9f1000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-11 15:11:47 UTC, "updated_at"=>2013-11-11 15:12:25 UTC, "memberships"=>[{"_id"=>"5280f3d987f643f9f1000034", "role"=>"admin", "account_id"=>"5280f3d987f643f9f1000020"}]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5280f3d987f643f9f1000033", "_id"=>{"$ne"=>"5280f3d987f643f9f1000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5280f3d987f643f9f1000035", "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"=>"5280f3d987f643f9f1000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000033", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000035"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4842ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f1000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000035"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3d987f643f9f1000036", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5280f3d987f643f9f1000033", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000035", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000033", "_id"=>{"$ne"=>"5280f3d987f643f9f1000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5280f3d987f643f9f1000037", "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"=>"5280f3d987f643f9f1000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000033", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000037"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3428ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f1000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5280f3d987f643f9f1000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000033", "_id"=>{"$ne"=>"5280f3d987f643f9f1000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5280f3d987f643f9f1000033"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5280f3d987f643f9f1000038", "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"=>"5280f3d987f643f9f1000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000033", "template_dependencies.en"=>{"$in"=>["5280f3d987f643f9f1000038"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5280f3d987f643f9f1000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5280f3d987f643f9f1000038"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000038"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3d987f643f9f1000039", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5280f3d987f643f9f1000033", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5280f3d987f643f9f1000038", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.4089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5280f3d987f643f9f1000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5280f3d987f643f9f100003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5280f3d987f643f9f1000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5280f3d987f643f9f100003b", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC, "entries_custom_fields"=>[{"_id"=>"5280f3d987f643f9f100003b", "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.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5280f3d987f643f9f100003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f100003a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5280f3d987f643f9f100003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5280f3d987f643f9f100003a"]}}} (0.9201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5280f3d987f643f9f100003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5280f3d987f643f9f100003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5280f3d987f643f9f100003a", "content_type_id"=>"5280f3d987f643f9f100003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5280f3d987f643f9f1000033", "_label_field_name"=>"name", "updated_at"=>2013-11-11 15:12:25 UTC, "created_at"=>2013-11-11 15:12:25 UTC}] flags=[] (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5280f3d987f643f9f100003a", "_original_id"=>"5280f3d987f643f9f100003c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1437ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5280f3d987f643f9f100003d", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5280f3d987f643f9f1000033", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5280f3d987f643f9f100003a", "_original_id"=>"5280f3d987f643f9f100003c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.3138ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-11 16:12: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 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.8762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5280f3d987f643f9f1000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7679ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (6.7ms) Completed 200 OK in 15.7ms (Views: 10.0ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-11 16:12: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.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5280f3d987f643f9f1000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4239ms) 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.4570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5280f3d987f643f9f1000020"} update={"$set"=>{"remember_created_at"=>2013-11-11 15:12:25 UTC, "updated_at"=>2013-11-11 15:12:25 UTC}} flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5280f3d987f643f9f1000020"} update={"$set"=>{"last_sign_in_at"=>2013-11-11 15:12:25 UTC, "current_sign_in_at"=>2013-11-11 15:12:25 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-11 15:12:25 UTC}} flags=[] (0.1400ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 9.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-11 16:12:25 +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.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5280f3d987f643f9f1000020"}, "$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_accounts selector={"_id"=>{"$in"=>["5280f3d987f643f9f1000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4697ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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, "target_klass_name"=>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.3170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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, "target_klass_name"=>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.7331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5280f3d987f643f9f1000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.0991ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (17.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (4.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (27.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5280f3d987f643f9f1000020", :role=>:admin}}}} (0.5820ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (4.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5280f3d987f643f9f1000020"}} (0.4528ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5280f3d987f643f9f1000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5929ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (7.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 58.7ms (Views: 42.9ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2013-11-11 16:12:25 +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.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5280f3d987f643f9f1000020"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["5280f3d987f643f9f1000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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, "target_klass_name"=>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.0672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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.4041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5280f3d987f643f9f1000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8729ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (13.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_assets/_picker.html.haml (5.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/theme_assets/_picker.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_editable_elements.html.haml (8.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5280f3d987f643f9f1000021"}, "$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, "target_klass_name"=>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_content_types selector={"site_id"=>"5280f3d987f643f9f1000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7319ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_form.html.haml (114.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (138.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5280f3d987f643f9f1000020", :role=>:admin}}}} (0.5324ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5280f3d987f643f9f1000020"}} (0.4878ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5280f3d987f643f9f1000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (6.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 176.1ms (Views: 157.9ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2013-11-11 16:12:26 +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.5450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.6111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4573ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5140ms) 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 (49.2899ms) 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 (24.3549ms) 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 (7.5850ms) 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.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f0272475806ff6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7a634076722aff9d5dca499b20af4fda54a3c571", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"QSKAGi4eWcXjJGboppca", "api_key"=>"f3477360429d001ab6ff71205475f14ff4cfde58", "updated_at"=>2013-11-27 13:14:15 UTC, "created_at"=>2013-11-27 13:14:15 UTC}] flags=[] (0.1941ms) 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} (42.5642ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f0272475806ff6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:14:14 UTC, "updated_at"=>2013-11-27 13:14:15 UTC, "memberships"=>[{"_id"=>"5295f0272475806ff6000003", "role"=>"admin", "account_id"=>"5295f0272475806ff6000001"}]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0272475806ff6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (25.3062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f0272475806ff6000002", "_id"=>{"$ne"=>"5295f0272475806ff6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0272475806ff6000004", "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"=>"5295f0272475806ff6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:15 UTC, "created_at"=>2013-11-27 13:14:15 UTC}] flags=[] (0.8447ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0272475806ff6000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.8260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f0272475806ff6000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f0272475806ff6000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0272475806ff6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f0272475806ff6000002", "_id"=>{"$ne"=>"5295f0282475806ff6000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"5295f0272475806ff6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0282475806ff6000005", "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"=>"5295f0272475806ff6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:16 UTC, "created_at"=>2013-11-27 13:14:16 UTC}] flags=[] (0.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f0282475806ff6000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5295f0282475806ff6000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4620ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f0282475806ff6000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f0272475806ff6000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f0282475806ff6000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f0272475806ff6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f0282475806ff6000007", "updated_at"=>2013-11-27 13:14:16 UTC, "created_at"=>2013-11-27 13:14:16 UTC, "entries_custom_fields"=>[{"_id"=>"5295f0282475806ff6000007", "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.2418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f0282475806ff6000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f0282475806ff6000008", "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", "updated_at"=>2013-11-27 13:14:16 UTC, "created_at"=>2013-11-27 13:14:16 UTC}}} flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f0282475806ff6000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f0282475806ff6000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.5588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f0282475806ff6000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f0282475806ff6000006"]}}} (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f0282475806ff6000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f0282475806ff6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f0282475806ff6000006", "content_type_id"=>"5295f0282475806ff6000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f0272475806ff6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:16 UTC, "created_at"=>2013-11-27 13:14:16 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f0292475806ff600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f0282475806ff6000006"]}} 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"=>"5295f0282475806ff6000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f0282475806ff6000006"]}}} (0.6022ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f0282475806ff6000006"]}}} (0.8011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f0282475806ff6000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (7.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f0292475806ff600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f0282475806ff6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f0282475806ff6000006", "content_type_id"=>"5295f0282475806ff6000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f0272475806ff6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:17 UTC, "created_at"=>2013-11-27 13:14:17 UTC}] flags=[] (0.3603ms) 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.8562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002", "_id"=>{"$ne"=>"5295f0292475806ff600000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f0272475806ff6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0292475806ff600000b", "parent_ids"=>["5295f0272475806ff6000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:17 UTC, "created_at"=>2013-11-27 13:14:17 UTC}] flags=[] (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f0292475806ff600000b"]}}, "$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"=>"5295f0292475806ff600000b"}, "$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"=>["5295f0292475806ff600000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2072ms) 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.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002", "_id"=>{"$ne"=>"5295f02a2475806ff600000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3587ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f0272475806ff6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f02a2475806ff600000c", "parent_ids"=>["5295f0272475806ff6000004"], "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"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:18 UTC, "created_at"=>2013-11-27 13:14:18 UTC}] flags=[] (0.4144ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f02a2475806ff600000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f02a2475806ff600000c"}, "$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"=>["5295f02a2475806ff600000c"]}} 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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002", "_id"=>{"$ne"=>"5295f02a2475806ff600000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002"}, "$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"=>"5295f0272475806ff6000004"}]}]}, "$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"=>"5295f02a2475806ff600000d", "parent_ids"=>["5295f0272475806ff6000004"], "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"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:18 UTC, "created_at"=>2013-11-27 13:14:18 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f02a2475806ff600000d"]}}, "$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"=>"5295f02a2475806ff600000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f02a2475806ff600000d"]}} 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.6528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002", "_id"=>{"$ne"=>"5295f02a2475806ff600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0272475806ff6000004", "site_id"=>"5295f0272475806ff6000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f0272475806ff6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f02a2475806ff600000e", "parent_ids"=>["5295f0272475806ff6000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f0272475806ff6000002", "parent_id"=>"5295f0272475806ff6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:18 UTC, "created_at"=>2013-11-27 13:14:18 UTC}] flags=[] (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f02a2475806ff600000e"]}}, "$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"=>"5295f02a2475806ff600000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f02a2475806ff600000e"]}} 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"=>{"site_id"=>"5295f0272475806ff6000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f0272475806ff6000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4160ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f0272475806ff6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:14:19 UTC}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "template_dependencies.en"=>{"$in"=>["5295f0272475806ff6000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3903ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f02b2475806ff600000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:14:14 UTC, "updated_at"=>2013-11-27 13:14:19 UTC, "memberships"=>[{"_id"=>"5295f02b2475806ff6000010", "role"=>"admin", "account_id"=>"5295f0272475806ff6000001"}]}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f02b2475806ff600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f02b2475806ff600000f", "_id"=>{"$ne"=>"5295f02b2475806ff6000011"}, "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"=>"5295f02b2475806ff6000011", "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"=>"5295f02b2475806ff600000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:19 UTC, "created_at"=>2013-11-27 13:14:19 UTC}] flags=[] (0.3006ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02b2475806ff600000f", "template_dependencies.en"=>{"$in"=>["5295f02b2475806ff6000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f02b2475806ff6000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f02b2475806ff6000011"]}} 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"=>"5295f02b2475806ff600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5295f02b2475806ff600000f", "_id"=>{"$ne"=>"5295f02c2475806ff6000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f02b2475806ff600000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5295f02c2475806ff6000012", "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"=>"5295f02b2475806ff600000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:20 UTC, "created_at"=>2013-11-27 13:14:20 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02b2475806ff600000f", "template_dependencies.en"=>{"$in"=>["5295f02c2475806ff6000012"]}}, "$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"=>"5295f02c2475806ff6000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f02c2475806ff6000012"]}} 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"=>"5295f02b2475806ff600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f02b2475806ff600000f", "_id"=>{"$ne"=>"5295f02c2475806ff6000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f02b2475806ff600000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4818ms) 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.2420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f02c2475806ff6000013", "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"=>"5295f02b2475806ff600000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:20 UTC, "created_at"=>2013-11-27 13:14:20 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02b2475806ff600000f", "template_dependencies.en"=>{"$in"=>["5295f02c2475806ff6000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"5295f02c2475806ff6000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f02c2475806ff6000013"]}} 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_content_types selector={"site_id"=>"5295f02b2475806ff600000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f02d2475806ff6000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f02b2475806ff600000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f02d2475806ff6000015", "updated_at"=>2013-11-27 13:14:21 UTC, "created_at"=>2013-11-27 13:14:21 UTC, "entries_custom_fields"=>[{"_id"=>"5295f02d2475806ff6000015", "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.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f02d2475806ff6000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f02d2475806ff6000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f02d2475806ff6000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f02d2475806ff6000014"]}}} (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f02d2475806ff6000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f02d2475806ff6000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f02d2475806ff6000014", "content_type_id"=>"5295f02d2475806ff6000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f02b2475806ff600000f", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:21 UTC, "created_at"=>2013-11-27 13:14:21 UTC}] flags=[] (0.2828ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:14:21 +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 (1.5061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.6588ms) Rendered text template (0.0ms) Completed 200 OK in 21.4ms (Views: 10.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-27 14:14:21 +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.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "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.7329ms) Rendered text template (0.0ms) Completed 200 OK in 519.5ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-11-27 14:14:22 +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.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "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.6382ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:14:22 +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.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5803ms) Rendered text template (0.0ms) Completed 200 OK in 3.8ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-27 14:14:22 +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.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0272475806ff6000002", "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.6051ms) Rendered text template (0.0ms) Completed 200 OK in 475.3ms (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.6769ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (15.7251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (8.7130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (8.0011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (7.4320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.5642ms) 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.4358ms) 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.9060ms) 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.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f02f2475806ff6000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b3c0fc051ad9c5975c27e247027610eaf688931b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"wCPzSBpxy5cPmgP3Hzbu", "api_key"=>"49d472674cd9791655673b41543dd6d94c6248dd", "updated_at"=>2013-11-27 13:14:23 UTC, "created_at"=>2013-11-27 13:14:23 UTC}] flags=[] (0.1910ms) 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.3309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f02f2475806ff6000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:14:14 UTC, "updated_at"=>2013-11-27 13:14:23 UTC, "memberships"=>[{"_id"=>"5295f02f2475806ff6000019", "role"=>"admin", "account_id"=>"5295f02f2475806ff6000017"}]}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f02f2475806ff6000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f02f2475806ff6000018", "_id"=>{"$ne"=>"5295f02f2475806ff600001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f02f2475806ff600001a", "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"=>"5295f02f2475806ff6000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:23 UTC, "created_at"=>2013-11-27 13:14:23 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f02f2475806ff600001a"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5295f02f2475806ff600001a"}, "$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"=>["5295f02f2475806ff600001a"]}} 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"=>"5295f02f2475806ff6000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f02f2475806ff6000018", "_id"=>{"$ne"=>"5295f02f2475806ff600001b"}, "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"=>"5295f02f2475806ff6000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5097ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f02f2475806ff600001b", "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"=>"5295f02f2475806ff6000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:23 UTC, "created_at"=>2013-11-27 13:14:23 UTC}] flags=[] (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f02f2475806ff600001b"]}}, "$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"=>"5295f02f2475806ff600001b"}, "$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"=>["5295f02f2475806ff600001b"]}} 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"=>"5295f02f2475806ff6000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7348ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f02f2475806ff600001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f02f2475806ff6000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f02f2475806ff600001d", "updated_at"=>2013-11-27 13:14:23 UTC, "created_at"=>2013-11-27 13:14:23 UTC, "entries_custom_fields"=>[{"_id"=>"5295f02f2475806ff600001d", "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.2749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f02f2475806ff600001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f02f2475806ff600001e", "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", "updated_at"=>2013-11-27 13:14:23 UTC, "created_at"=>2013-11-27 13:14:23 UTC}}} flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f02f2475806ff600001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f02f2475806ff600001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4218ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}}} (0.3769ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f02f2475806ff600001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f02f2475806ff600001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f02f2475806ff600001c", "content_type_id"=>"5295f02f2475806ff600001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f02f2475806ff6000018", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:23 UTC, "created_at"=>2013-11-27 13:14:23 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f0302475806ff6000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}} 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"=>"5295f02f2475806ff600001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5307ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}}} (0.4301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}}} (0.4280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f0302475806ff6000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f02f2475806ff600001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f02f2475806ff600001c", "content_type_id"=>"5295f02f2475806ff600001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f02f2475806ff6000018", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:24 UTC, "created_at"=>2013-11-27 13:14:24 UTC}] flags=[] (0.2549ms) 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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018", "_id"=>{"$ne"=>"5295f0312475806ff6000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f02f2475806ff600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0312475806ff6000021", "parent_ids"=>["5295f02f2475806ff600001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:25 UTC, "created_at"=>2013-11-27 13:14:25 UTC}] flags=[] (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f0312475806ff6000021"]}}, "$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"=>"5295f0312475806ff6000021"}, "$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"=>["5295f0312475806ff6000021"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018", "_id"=>{"$ne"=>"5295f0312475806ff6000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018"}, "$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"=>"5295f02f2475806ff600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0312475806ff6000022", "parent_ids"=>["5295f02f2475806ff600001a"], "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"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:25 UTC, "created_at"=>2013-11-27 13:14:25 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f0312475806ff6000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0312475806ff6000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f0312475806ff6000022"]}} 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={"$query"=>{"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_pages selector={"site_id"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018", "_id"=>{"$ne"=>"5295f0312475806ff6000023"}, "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"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f02f2475806ff600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0312475806ff6000023", "parent_ids"=>["5295f02f2475806ff600001a"], "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"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:25 UTC, "created_at"=>2013-11-27 13:14:25 UTC}] flags=[] (0.2623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f0312475806ff6000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0312475806ff6000023"}, "$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"=>["5295f0312475806ff6000023"]}} 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.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "$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"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018", "_id"=>{"$ne"=>"5295f0312475806ff6000024"}, "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"=>"5295f02f2475806ff600001a", "site_id"=>"5295f02f2475806ff6000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f02f2475806ff600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5295f0312475806ff6000024", "parent_ids"=>["5295f02f2475806ff600001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f02f2475806ff6000018", "parent_id"=>"5295f02f2475806ff600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:25 UTC, "created_at"=>2013-11-27 13:14:25 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f0312475806ff6000024"]}}, "$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"=>"5295f0312475806ff6000024"}, "$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"=>["5295f0312475806ff6000024"]}} 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"=>"5295f02f2475806ff6000018", "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"=>"5295f02f2475806ff6000018"}, "$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"=>"5295f02f2475806ff600001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:14:26 UTC}} flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "template_dependencies.en"=>{"$in"=>["5295f02f2475806ff600001a"]}}, "$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.6859ms) 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.4029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f0332475806ff6000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:14:14 UTC, "updated_at"=>2013-11-27 13:14:27 UTC, "memberships"=>[{"_id"=>"5295f0332475806ff6000026", "role"=>"admin", "account_id"=>"5295f02f2475806ff6000017"}]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0332475806ff6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5295f0332475806ff6000025", "_id"=>{"$ne"=>"5295f0332475806ff6000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0332475806ff6000027", "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"=>"5295f0332475806ff6000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:27 UTC, "created_at"=>2013-11-27 13:14:27 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0332475806ff6000025", "template_dependencies.en"=>{"$in"=>["5295f0332475806ff6000027"]}}, "$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"=>"5295f0332475806ff6000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f0332475806ff6000027"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0332475806ff6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f0332475806ff6000025", "_id"=>{"$ne"=>"5295f0332475806ff6000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f0332475806ff6000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0332475806ff6000028", "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"=>"5295f0332475806ff6000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:27 UTC, "created_at"=>2013-11-27 13:14:27 UTC}] flags=[] (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0332475806ff6000025", "template_dependencies.en"=>{"$in"=>["5295f0332475806ff6000028"]}}, "$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"=>"5295f0332475806ff6000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f0332475806ff6000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f0332475806ff6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f0332475806ff6000025", "_id"=>{"$ne"=>"5295f0332475806ff6000029"}, "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"=>{"parent_id"=>nil, "site_id"=>"5295f0332475806ff6000025"}, "$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.2580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f0332475806ff6000029", "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"=>"5295f0332475806ff6000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:27 UTC, "created_at"=>2013-11-27 13:14:27 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f0332475806ff6000025", "template_dependencies.en"=>{"$in"=>["5295f0332475806ff6000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f0332475806ff6000029"}, "$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"=>["5295f0332475806ff6000029"]}} 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"=>"5295f0332475806ff6000025", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5295f0342475806ff600002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f0332475806ff6000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f0342475806ff600002b", "updated_at"=>2013-11-27 13:14:28 UTC, "created_at"=>2013-11-27 13:14:28 UTC, "entries_custom_fields"=>[{"_id"=>"5295f0342475806ff600002b", "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"=>"5295f0342475806ff600002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f0342475806ff600002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f0342475806ff600002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f0342475806ff600002a"]}}} (0.6139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f0342475806ff600002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f0342475806ff600002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f0342475806ff600002a", "content_type_id"=>"5295f0342475806ff600002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f0332475806ff6000025", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:28 UTC, "created_at"=>2013-11-27 13:14:28 UTC}] flags=[] (0.2313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f02f2475806ff600001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}} 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_content_entries selector={"_id"=>{"$ne"=>"5295f0302475806ff6000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1662ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f02f2475806ff600001c"} update={"$set"=>{"updated_at"=>2013-11-27 13:14:29 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1080ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f02f2475806ff600001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1450ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14: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.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14: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.8430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "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.6781ms) Rendered text template (0.0ms) Completed 200 OK in 460.7ms (Views: 0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f02f2475806ff600001c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.9831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f02f2475806ff600001c", "updated_at"=>{"$lt"=>2013-11-27 13:14:29 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5295f02f2475806ff600001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.3442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f02f2475806ff6000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5295f02f2475806ff600001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9651ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5295f02f2475806ff600001f"} update={"$set"=>{"updated_at"=>2013-11-27 13:14:29 UTC}} flags=[] (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f02f2475806ff6000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5295f02f2475806ff600001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5295f0302475806ff6000020"} update={"$set"=>{"updated_at"=>2013-11-27 13:14:30 UTC}} flags=[] (0.5438ms) Started GET "/en/" for 127.0.0.1 at 2013-11-27 14:14:30 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-27 14:14:30 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14:14: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.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f02f2475806ff6000018", "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 465.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.6239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0543ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0140ms) 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_content_types selector={} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5391ms) 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.6070ms) 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.8368ms) 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.4728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f03d2475803734000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b87f53c1119fb1f8250396029d3110a572499344", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xXhimXWxqpkvKP9tVEzh", "api_key"=>"f44c770b4855776cff9935df858ae27267851db8", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1557ms) 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.7162ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f03d2475803734000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:14:37 UTC, "updated_at"=>2013-11-27 13:14:37 UTC, "memberships"=>[{"_id"=>"5295f03d2475803734000003", "role"=>"admin", "account_id"=>"5295f03d2475803734000001"}]}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03d2475803734000002", "_id"=>{"$ne"=>"5295f03d2475803734000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03d2475803734000004", "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"=>"5295f03d2475803734000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000004"}, "$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"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03d2475803734000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d2475803734000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f03d2475803734000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5295f03d2475803734000002", "_id"=>{"$ne"=>"5295f03d2475803734000006"}, "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"=>"5295f03d2475803734000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03d2475803734000006", "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"=>"5295f03d2475803734000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000006"}, "$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"=>["5295f03d2475803734000006"]}} 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"=>"5295f03d2475803734000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f03d2475803734000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f03d2475803734000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f03d2475803734000008", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC, "entries_custom_fields"=>[{"_id"=>"5295f03d2475803734000008", "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.3331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f03d2475803734000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f03d2475803734000009", "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", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}}} flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f03d247580373400000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f03d2475803734000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}}} (0.4044ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f03d247580373400000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f03d2475803734000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "content_type_id"=>"5295f03d2475803734000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f03d2475803734000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "_original_id"=>"5295f03d247580373400000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.8651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d247580373400000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f03d2475803734000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "_original_id"=>"5295f03d247580373400000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f03d247580373400000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}} 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"=>"5295f03d2475803734000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3991ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}}} (0.3800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}}} (0.2959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f03d247580373400000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f03d2475803734000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "content_type_id"=>"5295f03d2475803734000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f03d2475803734000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "_original_id"=>"5295f03d247580373400000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d247580373400000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f03d2475803734000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "_original_id"=>"5295f03d247580373400000c", "_keywords"=>["hidden"]}] flags=[] (0.1211ms) 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"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002", "_id"=>{"$ne"=>"5295f03d247580373400000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03d2475803734000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03d247580373400000e", "parent_ids"=>["5295f03d2475803734000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d247580373400000e"]}}, "$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"=>"5295f03d247580373400000e"}, "$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"=>["5295f03d247580373400000e"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d247580373400000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d247580373400000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f03d2475803734000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d247580373400000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1340ms) 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"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002", "_id"=>{"$ne"=>"5295f03d2475803734000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03d2475803734000004"}]}]}, "$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"=>"5295f03d2475803734000010", "parent_ids"=>["5295f03d2475803734000004"], "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"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.2792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000010"}, "$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"=>["5295f03d2475803734000010"]}} 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.5403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002", "_id"=>{"$ne"=>"5295f03d2475803734000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03d2475803734000004"}]}]}, "$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"=>"5295f03d2475803734000011", "parent_ids"=>["5295f03d2475803734000004"], "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"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000011"]}}, "$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"=>"5295f03d2475803734000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03d2475803734000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "$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"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002", "_id"=>{"$ne"=>"5295f03d2475803734000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000004", "site_id"=>"5295f03d2475803734000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03d2475803734000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03d2475803734000012", "parent_ids"=>["5295f03d2475803734000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f03d2475803734000002", "parent_id"=>"5295f03d2475803734000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000012"]}}, "$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"=>"5295f03d2475803734000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03d2475803734000012"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d2475803734000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f03d2475803734000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000012", "_keywords"=>["en:search"]}] flags=[] (0.1223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "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_sites selector={"$query"=>{"_id"=>"5295f03d2475803734000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f03d2475803734000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:14:37 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000004"}, "$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=active_search_mongoid_models selector={"_id"=>"5295f03d2475803734000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f03d2475803734000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1278ms) 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.5031ms) 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.2980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f03d2475803734000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:14:37 UTC, "updated_at"=>2013-11-27 13:14:37 UTC, "memberships"=>[{"_id"=>"5295f03d2475803734000015", "role"=>"admin", "account_id"=>"5295f03d2475803734000001"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03d2475803734000014", "_id"=>{"$ne"=>"5295f03d2475803734000016"}, "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"=>"5295f03d2475803734000016", "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"=>"5295f03d2475803734000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000014", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000016"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"5295f03d2475803734000016"}, "$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"=>["5295f03d2475803734000016"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d2475803734000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f03d2475803734000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03d2475803734000014", "_id"=>{"$ne"=>"5295f03d2475803734000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03d2475803734000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5295f03d2475803734000018", "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"=>"5295f03d2475803734000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000014", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6027ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6082ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03d2475803734000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03d2475803734000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03d2475803734000014", "_id"=>{"$ne"=>"5295f03d2475803734000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5295f03d2475803734000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03d2475803734000019", "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"=>"5295f03d2475803734000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000014", "template_dependencies.en"=>{"$in"=>["5295f03d2475803734000019"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03d2475803734000019"}, "$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"=>["5295f03d2475803734000019"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d247580373400001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f03d2475803734000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03d2475803734000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f03d2475803734000014", "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"=>"5295f03d247580373400001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f03d2475803734000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f03d247580373400001c", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC, "entries_custom_fields"=>[{"_id"=>"5295f03d247580373400001c", "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.2053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f03d247580373400001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d247580373400001b"]}} 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"=>"5295f03d247580373400001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4489ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d247580373400001b"]}}} (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f03d247580373400001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f03d247580373400001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f03d247580373400001b", "content_type_id"=>"5295f03d247580373400001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f03d2475803734000014", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:37 UTC, "created_at"=>2013-11-27 13:14:37 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03d247580373400001b", "_original_id"=>"5295f03d247580373400001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03d247580373400001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f03d2475803734000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f03d247580373400001b", "_original_id"=>"5295f03d247580373400001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f03d247580373400000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}} flags=[:slave_ok] limit=0 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={"_id"=>{"$ne"=>"5295f03d247580373400000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f03d2475803734000007"} update={"$set"=>{"updated_at"=>2013-11-27 13:14:37 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f03d2475803734000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1180ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:14:37 +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.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6151ms) Rendered text template (0.0ms) Completed 200 OK in 12.3ms (Views: 7.1ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14:14:37 +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.8142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "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.6962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f03d2475803734000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) Rendered text template (0.0ms) Completed 200 OK in 7.1ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f03d2475803734000007"} 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_content_entries selector={"content_type_id"=>"5295f03d2475803734000007", "updated_at"=>{"$lt"=>2013-11-27 13:14:37 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03d2475803734000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f03d2475803734000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5295f03d2475803734000007"}, "$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_content_entries selector={"_id"=>"5295f03d247580373400000a"} update={"$set"=>{"updated_at"=>2013-11-27 13:14:38 UTC}} flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "_original_id"=>"5295f03d247580373400000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f03d247580373400000b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f03d2475803734000002", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f03d2475803734000002"}, "$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_content_types selector={"$query"=>{"_id"=>"5295f03d2475803734000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6547ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5295f03d247580373400000c"} update={"$set"=>{"updated_at"=>2013-11-27 13:14:38 UTC}} flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03d2475803734000007", "_original_id"=>"5295f03d247580373400000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5376ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f03d247580373400000d"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f03d2475803734000002", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1171ms) Started GET "/en/" for 127.0.0.1 at 2013-11-27 14:14:38 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-27 14:14:38 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) 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 2013-11-27 14:14: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.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03d2475803734000002", "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.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f03d2475803734000002", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5262ms) Rendered text template (0.0ms) Completed 200 OK in 9.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.7718ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3492ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2379ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (3.6290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9851ms) 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.3309ms) 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.6359ms) 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.3109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f03e247580373400001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"08de209feb030172aa24d240fb0258544774c410", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ndXxD1StmzmuyEt4QaLt", "api_key"=>"8aa1b9f307b3d1e675b6491894e282d1088a7aa6", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1020ms) 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.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f03e2475803734000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:14:37 UTC, "updated_at"=>2013-11-27 13:14:38 UTC, "memberships"=>[{"_id"=>"5295f03e2475803734000021", "role"=>"admin", "account_id"=>"5295f03e247580373400001f"}]}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03e2475803734000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03e2475803734000020", "_id"=>{"$ne"=>"5295f03e2475803734000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4077ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e2475803734000022", "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"=>"5295f03e2475803734000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03e2475803734000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3872ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e2475803734000022"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2942ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03e2475803734000023", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f03e2475803734000020", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000022", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03e2475803734000020", "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"=>"5295f03e2475803734000020", "_id"=>{"$ne"=>"5295f03e2475803734000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03e2475803734000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e2475803734000024", "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"=>"5295f03e2475803734000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000024"]}}, "$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"=>"5295f03e2475803734000024"}, "$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"=>["5295f03e2475803734000024"]}} 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"=>"5295f03e2475803734000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f03e2475803734000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f03e2475803734000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f03e2475803734000026", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC, "entries_custom_fields"=>[{"_id"=>"5295f03e2475803734000026", "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.2639ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f03e2475803734000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f03e2475803734000027", "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", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}}} flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f03e2475803734000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f03e2475803734000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6092ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000025"]}}} (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f03e2475803734000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f03e2475803734000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f03e2475803734000025", "content_type_id"=>"5295f03e2475803734000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f03e2475803734000020", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03e2475803734000025", "_original_id"=>"5295f03e2475803734000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03e2475803734000029", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f03e2475803734000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f03e2475803734000025", "_original_id"=>"5295f03e2475803734000028", "_keywords"=>["findable", "entry"]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f03e247580373400002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000025"]}} 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"=>"5295f03e2475803734000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4013ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000025"]}}} (0.3939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000025"]}}} (0.2851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f03e247580373400002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f03e2475803734000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f03e2475803734000025", "content_type_id"=>"5295f03e2475803734000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f03e2475803734000020", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03e2475803734000025", "_original_id"=>"5295f03e247580373400002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03e247580373400002b", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f03e2475803734000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f03e2475803734000025", "_original_id"=>"5295f03e247580373400002a", "_keywords"=>["hidden"]}] flags=[] (0.1390ms) 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"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020", "_id"=>{"$ne"=>"5295f03e247580373400002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03e2475803734000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e247580373400002c", "parent_ids"=>["5295f03e2475803734000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e247580373400002c"]}}, "$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"=>"5295f03e247580373400002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e247580373400002c"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e247580373400002c"}, "$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_models documents=[{"_id"=>"5295f03e247580373400002d", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f03e2475803734000020", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e247580373400002c", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (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.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "$or"=>[{"slug.en"=>"unpublished-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"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020", "_id"=>{"$ne"=>"5295f03e247580373400002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03e2475803734000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e247580373400002e", "parent_ids"=>["5295f03e2475803734000022"], "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"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e247580373400002e"]}}, "$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"=>"5295f03e247580373400002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e247580373400002e"]}} 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=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"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020", "_id"=>{"$ne"=>"5295f03e247580373400002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03e2475803734000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e247580373400002f", "parent_ids"=>["5295f03e2475803734000022"], "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"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e247580373400002f"]}}, "$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"=>"5295f03e247580373400002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e247580373400002f"]}} 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.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "$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"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020", "_id"=>{"$ne"=>"5295f03e2475803734000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f03e2475803734000022", "site_id"=>"5295f03e2475803734000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f03e2475803734000022"}]}]}, "$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"=>"5295f03e2475803734000030", "parent_ids"=>["5295f03e2475803734000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f03e2475803734000020", "parent_id"=>"5295f03e2475803734000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000030"]}}, "$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"=>"5295f03e2475803734000030"}, "$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"=>["5295f03e2475803734000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03e2475803734000031", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f03e2475803734000020", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000030", "_keywords"=>["en:search"]}] flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f03e2475803734000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f03e2475803734000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:14:38 UTC}} flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000022"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f03e2475803734000023"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f03e2475803734000020", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1180ms) 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.4940ms) 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"=>"5295f03e2475803734000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:14:37 UTC, "updated_at"=>2013-11-27 13:14:38 UTC, "memberships"=>[{"_id"=>"5295f03e2475803734000033", "role"=>"admin", "account_id"=>"5295f03e247580373400001f"}]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03e2475803734000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03e2475803734000032", "_id"=>{"$ne"=>"5295f03e2475803734000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4463ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e2475803734000034", "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"=>"5295f03e2475803734000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000032", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000034"]}}, "$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"=>"5295f03e2475803734000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e2475803734000034"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000034"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4017ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03e2475803734000035", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f03e2475803734000032", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000034", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f03e2475803734000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03e2475803734000032", "_id"=>{"$ne"=>"5295f03e2475803734000036"}, "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"=>{"parent_id"=>nil, "site_id"=>"5295f03e2475803734000032"}, "$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"=>"5295f03e2475803734000036", "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"=>"5295f03e2475803734000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000032", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000036"]}}, "$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"=>"5295f03e2475803734000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e2475803734000036"]}} 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"=>"5295f03e2475803734000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5295f03e2475803734000032", "_id"=>{"$ne"=>"5295f03e2475803734000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f03e2475803734000032"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f03e2475803734000037", "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"=>"5295f03e2475803734000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000032", "template_dependencies.en"=>{"$in"=>["5295f03e2475803734000037"]}}, "$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"=>"5295f03e2475803734000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f03e2475803734000037"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000037"}, "$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_models documents=[{"_id"=>"5295f03e2475803734000038", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f03e2475803734000032", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f03e2475803734000037", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f03e2475803734000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f03e2475803734000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f03e2475803734000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f03e247580373400003a", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC, "entries_custom_fields"=>[{"_id"=>"5295f03e247580373400003a", "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"=>"5295f03e247580373400003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000039"]}} 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"=>"5295f03e2475803734000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f03e2475803734000039"]}}} (0.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f03e247580373400003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f03e2475803734000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f03e2475803734000039", "content_type_id"=>"5295f03e2475803734000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f03e2475803734000032", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:38 UTC, "created_at"=>2013-11-27 13:14:38 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f03e2475803734000039", "_original_id"=>"5295f03e247580373400003b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f03e247580373400003c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f03e2475803734000032", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f03e2475803734000039", "_original_id"=>"5295f03e247580373400003b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1242ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:14: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.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7820ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-27 14:14:38 +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.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "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.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f03e2475803734000020", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) Rendered text template (0.0ms) Completed 200 OK in 12.7ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2013-11-27 14:14:38 +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.7002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "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.6862ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:14: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.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5538ms) 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 2013-11-27 14:14:38 +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.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f03e2475803734000020", "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.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f03e2475803734000020", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) 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.5250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5720ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4668ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4528ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (2.3959ms) 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.9370ms) 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.4911ms) 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.9191ms) 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.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f044247580f0c6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2caccc2e5eb2014c45b05322cb83baa1fed00293", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"tFPFFYz5yjxwAKoqQybd", "api_key"=>"717b28b93e56be91860fb53493c2997c2d1c98d9", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.2692ms) 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.8903ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f044247580f0c6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:14:44 UTC, "updated_at"=>2013-11-27 13:14:44 UTC, "memberships"=>[{"_id"=>"5295f044247580f0c6000003", "role"=>"admin", "account_id"=>"5295f044247580f0c6000001"}]}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f044247580f0c6000002", "_id"=>{"$ne"=>"5295f044247580f0c6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5295f044247580f0c6000004", "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"=>"5295f044247580f0c6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c6000004"}, "$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"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000004"]}}, "$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"=>["5295f044247580f0c6000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6118ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f044247580f0c6000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f044247580f0c6000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f044247580f0c6000002", "_id"=>{"$ne"=>"5295f044247580f0c6000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f044247580f0c6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5295f044247580f0c6000006", "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"=>"5295f044247580f0c6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000006"]}}, "$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"=>"5295f044247580f0c6000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f044247580f0c6000006"]}} 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"=>"5295f044247580f0c6000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f044247580f0c6000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f044247580f0c6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f044247580f0c6000008", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC, "entries_custom_fields"=>[{"_id"=>"5295f044247580f0c6000008", "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.2561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f044247580f0c6000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f044247580f0c6000009", "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", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}}} flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f044247580f0c600000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c6000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f044247580f0c6000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c6000007"]}}} (0.3588ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f044247580f0c600000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f044247580f0c6000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f044247580f0c6000007", "content_type_id"=>"5295f044247580f0c6000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f044247580f0c6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f044247580f0c6000007", "_original_id"=>"5295f044247580f0c600000a"}, "$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_models documents=[{"_id"=>"5295f044247580f0c600000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f044247580f0c6000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f044247580f0c6000007", "_original_id"=>"5295f044247580f0c600000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f044247580f0c600000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c6000007"]}} 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_content_entries selector={"content_type_id"=>"5295f044247580f0c6000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3438ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c6000007"]}}} (0.3488ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c6000007"]}}} (0.3290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c6000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f044247580f0c600000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f044247580f0c6000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f044247580f0c6000007", "content_type_id"=>"5295f044247580f0c6000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f044247580f0c6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1616ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f044247580f0c6000007", "_original_id"=>"5295f044247580f0c600000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f044247580f0c600000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f044247580f0c6000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f044247580f0c6000007", "_original_id"=>"5295f044247580f0c600000c", "_keywords"=>["hidden"]}] flags=[] (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.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002", "_id"=>{"$ne"=>"5295f044247580f0c600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f044247580f0c6000004"}]}]}, "$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"=>"5295f044247580f0c600000e", "parent_ids"=>["5295f044247580f0c6000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c600000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c600000e"}, "$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"=>["5295f044247580f0c600000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c600000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f044247580f0c600000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f044247580f0c6000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c600000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002", "_id"=>{"$ne"=>"5295f044247580f0c6000010"}, "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"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f044247580f0c6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f044247580f0c6000010", "parent_ids"=>["5295f044247580f0c6000004"], "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"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000010"]}}, "$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"=>"5295f044247580f0c6000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3662ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f044247580f0c6000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "$or"=>[{"slug.en"=>"seems-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"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002", "_id"=>{"$ne"=>"5295f044247580f0c6000011"}, "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"=>{"parent_id"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f044247580f0c6000004"}]}]}, "$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"=>"5295f044247580f0c6000011", "parent_ids"=>["5295f044247580f0c6000004"], "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"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000011"]}}, "$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"=>"5295f044247580f0c6000011"}, "$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"=>["5295f044247580f0c6000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.5078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002", "_id"=>{"$ne"=>"5295f044247580f0c6000012"}, "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"=>"5295f044247580f0c6000004", "site_id"=>"5295f044247580f0c6000002"}, "$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"=>"5295f044247580f0c6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f044247580f0c6000012", "parent_ids"=>["5295f044247580f0c6000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f044247580f0c6000002", "parent_id"=>"5295f044247580f0c6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c6000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f044247580f0c6000012"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3397ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f044247580f0c6000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f044247580f0c6000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000012", "_keywords"=>["en:search"]}] flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5295f044247580f0c6000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3247ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f044247580f0c6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:14:44 UTC}} flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5357ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f044247580f0c6000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f044247580f0c6000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1364ms) 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.5949ms) 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.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f044247580f0c6000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:14:44 UTC, "updated_at"=>2013-11-27 13:14:44 UTC, "memberships"=>[{"_id"=>"5295f044247580f0c6000015", "role"=>"admin", "account_id"=>"5295f044247580f0c6000001"}]}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5295f044247580f0c6000014", "_id"=>{"$ne"=>"5295f044247580f0c6000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f044247580f0c6000016", "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"=>"5295f044247580f0c6000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000014", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c6000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f044247580f0c6000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f044247580f0c6000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f044247580f0c6000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f044247580f0c6000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f044247580f0c6000014", "_id"=>{"$ne"=>"5295f044247580f0c6000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f044247580f0c6000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f044247580f0c6000018", "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"=>"5295f044247580f0c6000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000014", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000018"]}}, "$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"=>"5295f044247580f0c6000018"}, "$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"=>["5295f044247580f0c6000018"]}} 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_pages selector={"site_id"=>"5295f044247580f0c6000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5295f044247580f0c6000014", "_id"=>{"$ne"=>"5295f044247580f0c6000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f044247580f0c6000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4451ms) 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.2570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f044247580f0c6000019", "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"=>"5295f044247580f0c6000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000014", "template_dependencies.en"=>{"$in"=>["5295f044247580f0c6000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f044247580f0c6000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3328ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f044247580f0c6000019"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f044247580f0c600001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f044247580f0c6000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f044247580f0c6000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f044247580f0c6000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f044247580f0c600001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f044247580f0c6000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f044247580f0c600001c", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC, "entries_custom_fields"=>[{"_id"=>"5295f044247580f0c600001c", "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.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f044247580f0c600001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c600001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f044247580f0c600001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f044247580f0c600001b"]}}} (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f044247580f0c600001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f044247580f0c600001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f044247580f0c600001b", "content_type_id"=>"5295f044247580f0c600001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f044247580f0c6000014", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:44 UTC, "created_at"=>2013-11-27 13:14:44 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f044247580f0c600001b", "_original_id"=>"5295f044247580f0c600001d"}, "$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_models documents=[{"_id"=>"5295f044247580f0c600001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f044247580f0c6000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f044247580f0c600001b", "_original_id"=>"5295f044247580f0c600001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1161ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-27 14:14: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.8230ms) 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.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5295f044247580f0c6000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4020ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.3ms) Completed 200 OK in 41.5ms (Views: 35.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-27 14:14:46 +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 2013-11-27 14:14:46 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-27 14:14:46 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-27 14:14: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.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5295f044247580f0c6000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f044247580f0c6000001"} update={"$set"=>{"remember_created_at"=>2013-11-27 13:14:46 UTC, "updated_at"=>2013-11-27 13:14:46 UTC}} flags=[] (0.2828ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f044247580f0c6000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-27 13:14:46 UTC, "current_sign_in_at"=>2013-11-27 13:14:46 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-27 13:14:46 UTC}} flags=[] (0.1769ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 26.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-27 14:14: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.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f044247580f0c6000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5295f044247580f0c6000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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, "target_klass_name"=>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.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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, "target_klass_name"=>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.1079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5295f044247580f0c6000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7598ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (21.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (10.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (47.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f044247580f0c6000001", :role=>:admin}}}} (0.6728ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5295f044247580f0c6000001"}} (0.5178ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f044247580f0c6000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5751ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (3.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (22.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (1.8ms) Completed 200 OK in 127.9ms (Views: 111.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-27 14:14:46 +0100 Served asset /locomotive.css - 200 OK (69ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-27 14:14:46 +0100 Served asset /locomotive.js - 200 OK (214ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-27 14:14: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 2013-11-27 14:14:47 +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 2013-11-27 14:14:47 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-11-27 14:14:47 +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.7589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f044247580f0c6000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5295f044247580f0c6000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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, "target_klass_name"=>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_content_types selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f044247580f0c6000002"}, "$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"=>"5295f044247580f0c6000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6390ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (13.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f044247580f0c6000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6588ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_select_templates.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_form.html.haml (58.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f044247580f0c6000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/_form.html.haml (77.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (100.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f044247580f0c6000001", :role=>:admin}}}} (0.5579ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f044247580f0c6000001"}} (0.4380ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f044247580f0c6000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5050ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (6.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 131.0ms (Views: 118.6ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-27 14:14:47 +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.6132ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8531ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9079ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9532ms) 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 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.6719ms) 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.3469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f047247580f0c6000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"76489c87ef1adb5d2f88a65c83af47c542341c9d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"UK8o6DsNrb3woi8hajPr", "api_key"=>"cadad1e5911e2deb0561ca4b9ce7dd9f8fe5b6da", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.1469ms) 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.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f047247580f0c6000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:14:44 UTC, "updated_at"=>2013-11-27 13:14:47 UTC, "memberships"=>[{"_id"=>"5295f047247580f0c6000022", "role"=>"admin", "account_id"=>"5295f047247580f0c6000020"}]}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f047247580f0c6000021", "_id"=>{"$ne"=>"5295f047247580f0c6000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c6000023", "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"=>"5295f047247580f0c6000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000023"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c6000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f047247580f0c6000023"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000023"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"5295f047247580f0c6000024", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f047247580f0c6000021", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000023", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f047247580f0c6000021", "_id"=>{"$ne"=>"5295f047247580f0c6000025"}, "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"=>"5295f047247580f0c6000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6206ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c6000025", "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"=>"5295f047247580f0c6000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c6000025"}, "$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"=>["5295f047247580f0c6000025"]}} 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"=>"5295f047247580f0c6000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7792ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f047247580f0c6000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f047247580f0c6000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f047247580f0c6000027", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC, "entries_custom_fields"=>[{"_id"=>"5295f047247580f0c6000027", "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.1969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f047247580f0c6000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f047247580f0c6000028", "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", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}}} flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f047247580f0c6000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c6000026"]}} 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_content_entries selector={"content_type_id"=>"5295f047247580f0c6000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6158ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c6000026"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f047247580f0c6000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f047247580f0c6000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f047247580f0c6000026", "content_type_id"=>"5295f047247580f0c6000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f047247580f0c6000021", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f047247580f0c6000026", "_original_id"=>"5295f047247580f0c6000029"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f047247580f0c600002a", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f047247580f0c6000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f047247580f0c6000026", "_original_id"=>"5295f047247580f0c6000029", "_keywords"=>["findable", "entry"]}] flags=[] (0.1287ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f047247580f0c600002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c6000026"]}} 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"=>"5295f047247580f0c6000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c6000026"]}}} (0.4089ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c6000026"]}}} (0.3080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c6000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f047247580f0c600002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f047247580f0c6000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f047247580f0c6000026", "content_type_id"=>"5295f047247580f0c6000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f047247580f0c6000021", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f047247580f0c6000026", "_original_id"=>"5295f047247580f0c600002b"}, "$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_models documents=[{"_id"=>"5295f047247580f0c600002c", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f047247580f0c6000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f047247580f0c6000026", "_original_id"=>"5295f047247580f0c600002b", "_keywords"=>["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.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021", "_id"=>{"$ne"=>"5295f047247580f0c600002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f047247580f0c6000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c600002d", "parent_ids"=>["5295f047247580f0c6000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c600002d"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c600002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3347ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f047247580f0c600002d"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c600002d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4377ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f047247580f0c600002e", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f047247580f0c6000021", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c600002d", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1740ms) 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.8299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021", "_id"=>{"$ne"=>"5295f047247580f0c600002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6297ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f047247580f0c6000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7343ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c600002f", "parent_ids"=>["5295f047247580f0c6000023"], "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"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c600002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f047247580f0c600002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f047247580f0c600002f"]}} 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.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021", "_id"=>{"$ne"=>"5295f047247580f0c6000030"}, "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"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f047247580f0c6000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c6000030", "parent_ids"=>["5295f047247580f0c6000023"], "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"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000030"]}}, "$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"=>"5295f047247580f0c6000030"}, "$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"=>["5295f047247580f0c6000030"]}} 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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "$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"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021", "_id"=>{"$ne"=>"5295f047247580f0c6000031"}, "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"=>"5295f047247580f0c6000023", "site_id"=>"5295f047247580f0c6000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f047247580f0c6000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5357ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c6000031", "parent_ids"=>["5295f047247580f0c6000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f047247580f0c6000021", "parent_id"=>"5295f047247580f0c6000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000031"]}}, "$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"=>"5295f047247580f0c6000031"}, "$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"=>["5295f047247580f0c6000031"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000031"}, "$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_models documents=[{"_id"=>"5295f047247580f0c6000032", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f047247580f0c6000021", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000031", "_keywords"=>["en:search"]}] flags=[] (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f047247580f0c6000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3860ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f047247580f0c6000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:14:47 UTC}} flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000023"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5760ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f047247580f0c6000024"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f047247580f0c6000021", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1092ms) 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.5162ms) 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.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f047247580f0c6000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:14:44 UTC, "updated_at"=>2013-11-27 13:14:47 UTC, "memberships"=>[{"_id"=>"5295f047247580f0c6000034", "role"=>"admin", "account_id"=>"5295f047247580f0c6000020"}]}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f047247580f0c6000033", "_id"=>{"$ne"=>"5295f047247580f0c6000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f047247580f0c6000035", "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"=>"5295f047247580f0c6000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000033", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000035"]}}, "$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"=>"5295f047247580f0c6000035"}, "$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"=>["5295f047247580f0c6000035"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000035"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f047247580f0c6000036", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f047247580f0c6000033", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000035", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5295f047247580f0c6000033", "_id"=>{"$ne"=>"5295f047247580f0c6000037"}, "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"=>nil, "site_id"=>"5295f047247580f0c6000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5143ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c6000037", "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"=>"5295f047247580f0c6000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.3192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000033", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000037"]}}, "$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"=>{"parent_id"=>"5295f047247580f0c6000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4969ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f047247580f0c6000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f047247580f0c6000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f047247580f0c6000033", "_id"=>{"$ne"=>"5295f047247580f0c6000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f047247580f0c6000033"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f047247580f0c6000038", "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"=>"5295f047247580f0c6000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000033", "template_dependencies.en"=>{"$in"=>["5295f047247580f0c6000038"]}}, "$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"=>"5295f047247580f0c6000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f047247580f0c6000038"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000038"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f047247580f0c6000039", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f047247580f0c6000033", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f047247580f0c6000038", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f047247580f0c6000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f047247580f0c600003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f047247580f0c6000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f047247580f0c600003b", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC, "entries_custom_fields"=>[{"_id"=>"5295f047247580f0c600003b", "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.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f047247580f0c600003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c600003a"]}} 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"=>"5295f047247580f0c600003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4177ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f047247580f0c600003a"]}}} (0.4263ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f047247580f0c600003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f047247580f0c600003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f047247580f0c600003a", "content_type_id"=>"5295f047247580f0c600003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f047247580f0c6000033", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:14:47 UTC, "created_at"=>2013-11-27 13:14:47 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f047247580f0c600003a", "_original_id"=>"5295f047247580f0c600003c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f047247580f0c600003d", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f047247580f0c6000033", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f047247580f0c600003a", "_original_id"=>"5295f047247580f0c600003c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1211ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-27 14:14: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 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"=>["5295f047247580f0c6000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (4.4ms) Completed 200 OK in 9.4ms (Views: 6.1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-27 14:14: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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5295f047247580f0c6000020"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f047247580f0c6000020"} update={"$set"=>{"remember_created_at"=>2013-11-27 13:14:47 UTC, "updated_at"=>2013-11-27 13:14:47 UTC}} flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f047247580f0c6000020"} update={"$set"=>{"last_sign_in_at"=>2013-11-27 13:14:47 UTC, "current_sign_in_at"=>2013-11-27 13:14:47 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-27 13:14:47 UTC}} flags=[] (0.1740ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 9.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-27 14:14: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.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f047247580f0c6000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5295f047247580f0c6000020"]}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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, "target_klass_name"=>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.1220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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, "target_klass_name"=>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} (0.9742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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.4530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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_entries selector={"$query"=>{"content_type_id"=>"5295f047247580f0c6000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7949ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (13.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (6.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f047247580f0c6000020", :role=>:admin}}}} (0.5009ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (3.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5295f047247580f0c6000020"}} (0.4091ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f047247580f0c6000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 50.7ms (Views: 35.9ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2013-11-27 14:14:48 +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.6068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f047247580f0c6000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5295f047247580f0c6000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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, "target_klass_name"=>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} (0.9890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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.4673ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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.3908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5295f047247580f0c6000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8340ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (12.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_assets/_picker.html.haml (4.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/theme_assets/_picker.html.haml (4.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_editable_elements.html.haml (5.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f047247580f0c6000021"}, "$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, "target_klass_name"=>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.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f047247580f0c6000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_form.html.haml (91.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (113.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f047247580f0c6000020", :role=>:admin}}}} (0.5760ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (4.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5295f047247580f0c6000020"}} (0.5271ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f047247580f0c6000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5410ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 146.1ms (Views: 133.2ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2013-11-27 14:14:48 +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.6318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4718ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4351ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4518ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3898ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4048ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4129ms) 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.6900ms) 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.6671ms) 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.7749ms) 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.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f1282475800ed6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"eddc305d9890c1a5edc3a3a5f6cf5c44f0d8017c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7d84aVDiHoWHPWrizhee", "api_key"=>"38d54dad21c1626e5f32c8dde953077cffbfde48", "updated_at"=>2013-11-27 13:18:32 UTC, "created_at"=>2013-11-27 13:18:32 UTC}] flags=[] (0.1450ms) 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.8171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f1282475800ed6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:18:31 UTC, "updated_at"=>2013-11-27 13:18:32 UTC, "memberships"=>[{"_id"=>"5295f1282475800ed6000003", "role"=>"admin", "account_id"=>"5295f1282475800ed6000001"}]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1282475800ed6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f1282475800ed6000002", "_id"=>{"$ne"=>"5295f1292475800ed6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f1292475800ed6000004", "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"=>"5295f1282475800ed6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:33 UTC, "created_at"=>2013-11-27 13:18:33 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1292475800ed6000004"}, "$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"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f1292475800ed6000004"]}}, "$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"=>["5295f1292475800ed6000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1282475800ed6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f1282475800ed6000002", "_id"=>{"$ne"=>"5295f1292475800ed6000005"}, "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"=>"5295f1282475800ed6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f1292475800ed6000005", "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"=>"5295f1282475800ed6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:33 UTC, "created_at"=>2013-11-27 13:18:33 UTC}] flags=[] (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f1292475800ed6000005"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1292475800ed6000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1292475800ed6000005"]}} 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"=>"5295f1282475800ed6000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f1292475800ed6000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f1282475800ed6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f1292475800ed6000007", "updated_at"=>2013-11-27 13:18:33 UTC, "created_at"=>2013-11-27 13:18:33 UTC, "entries_custom_fields"=>[{"_id"=>"5295f1292475800ed6000007", "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.3200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f1292475800ed6000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f1292475800ed6000008", "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", "updated_at"=>2013-11-27 13:18:33 UTC, "created_at"=>2013-11-27 13:18:33 UTC}}} flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f1292475800ed6000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1292475800ed6000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f1292475800ed6000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4542ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1292475800ed6000006"]}}} (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f1292475800ed6000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f1292475800ed6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f1292475800ed6000006", "content_type_id"=>"5295f1292475800ed6000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f1282475800ed6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:33 UTC, "created_at"=>2013-11-27 13:18:33 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f12a2475800ed600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1292475800ed6000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f1292475800ed6000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1292475800ed6000006"]}}} (0.3798ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1292475800ed6000006"]}}} (0.3080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1292475800ed6000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f12a2475800ed600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f1292475800ed6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f1292475800ed6000006", "content_type_id"=>"5295f1292475800ed6000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f1282475800ed6000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:34 UTC, "created_at"=>2013-11-27 13:18:34 UTC}] flags=[] (0.2580ms) 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.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002", "_id"=>{"$ne"=>"5295f12b2475800ed600000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5295f1292475800ed6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8037ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f12b2475800ed600000b", "parent_ids"=>["5295f1292475800ed6000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:35 UTC, "created_at"=>2013-11-27 13:18:35 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f12b2475800ed600000b"]}}, "$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"=>"5295f12b2475800ed600000b"}, "$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"=>["5295f12b2475800ed600000b"]}} 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={"$query"=>{"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_pages selector={"site_id"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002", "_id"=>{"$ne"=>"5295f12b2475800ed600000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f1292475800ed6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f12b2475800ed600000c", "parent_ids"=>["5295f1292475800ed6000004"], "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"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:35 UTC, "created_at"=>2013-11-27 13:18:35 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f12b2475800ed600000c"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5295f12b2475800ed600000c"}, "$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"=>["5295f12b2475800ed600000c"]}} 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.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002", "_id"=>{"$ne"=>"5295f12b2475800ed600000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002"}, "$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"=>"5295f1292475800ed6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f12b2475800ed600000d", "parent_ids"=>["5295f1292475800ed6000004"], "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"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:35 UTC, "created_at"=>2013-11-27 13:18:35 UTC}] flags=[] (0.2861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f12b2475800ed600000d"]}}, "$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"=>"5295f12b2475800ed600000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3538ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f12b2475800ed600000d"]}} 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.6137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002", "_id"=>{"$ne"=>"5295f12b2475800ed600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1292475800ed6000004", "site_id"=>"5295f1282475800ed6000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f1292475800ed6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5295f12b2475800ed600000e", "parent_ids"=>["5295f1292475800ed6000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f1282475800ed6000002", "parent_id"=>"5295f1292475800ed6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:35 UTC, "created_at"=>2013-11-27 13:18:35 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f12b2475800ed600000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f12b2475800ed600000e"}, "$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"=>["5295f12b2475800ed600000e"]}} 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"=>{"site_id"=>"5295f1282475800ed6000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f1282475800ed6000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.2283ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f1292475800ed6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:18:36 UTC}} flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "template_dependencies.en"=>{"$in"=>["5295f1292475800ed6000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3340ms) 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.8059ms) 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.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f12d2475800ed600000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:18:31 UTC, "updated_at"=>2013-11-27 13:18:37 UTC, "memberships"=>[{"_id"=>"5295f12d2475800ed6000010", "role"=>"admin", "account_id"=>"5295f1282475800ed6000001"}]}] flags=[] (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f12d2475800ed600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f12d2475800ed600000f", "_id"=>{"$ne"=>"5295f12d2475800ed6000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f12d2475800ed6000011", "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"=>"5295f12d2475800ed600000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:37 UTC, "created_at"=>2013-11-27 13:18:37 UTC}] flags=[] (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f12d2475800ed600000f", "template_dependencies.en"=>{"$in"=>["5295f12d2475800ed6000011"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"5295f12d2475800ed6000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f12d2475800ed6000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f12d2475800ed600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5295f12d2475800ed600000f", "_id"=>{"$ne"=>"5295f12d2475800ed6000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f12d2475800ed600000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f12d2475800ed6000012", "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"=>"5295f12d2475800ed600000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:37 UTC, "created_at"=>2013-11-27 13:18:37 UTC}] flags=[] (0.2992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f12d2475800ed600000f", "template_dependencies.en"=>{"$in"=>["5295f12d2475800ed6000012"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5295f12d2475800ed6000012"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5295f12d2475800ed6000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f12d2475800ed600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5295f12d2475800ed600000f", "_id"=>{"$ne"=>"5295f12d2475800ed6000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f12d2475800ed600000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6242ms) 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"=>"5295f12d2475800ed6000013", "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"=>"5295f12d2475800ed600000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:37 UTC, "created_at"=>2013-11-27 13:18:37 UTC}] flags=[] (0.3939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f12d2475800ed600000f", "template_dependencies.en"=>{"$in"=>["5295f12d2475800ed6000013"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5295f12d2475800ed6000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f12d2475800ed6000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f12d2475800ed600000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f12e2475800ed6000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f12d2475800ed600000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f12e2475800ed6000015", "updated_at"=>2013-11-27 13:18:38 UTC, "created_at"=>2013-11-27 13:18:38 UTC, "entries_custom_fields"=>[{"_id"=>"5295f12e2475800ed6000015", "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.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f12e2475800ed6000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f12e2475800ed6000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f12e2475800ed6000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f12e2475800ed6000014"]}}} (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f12e2475800ed6000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f12e2475800ed6000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f12e2475800ed6000014", "content_type_id"=>"5295f12e2475800ed6000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f12d2475800ed600000f", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:38 UTC, "created_at"=>2013-11-27 13:18:38 UTC}] flags=[] (0.1719ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:18:39 +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.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7348ms) Rendered text template (0.0ms) Completed 200 OK in 16.8ms (Views: 10.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-27 14:18:39 +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.7331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "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.7310ms) Rendered text template (0.0ms) Completed 200 OK in 483.6ms (Views: 0.8ms) Started GET "/findable" for 127.0.0.1 at 2013-11-27 14:18:39 +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.7079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "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.6292ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:18:39 +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.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "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 3.8ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-27 14:18:39 +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.5722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1282475800ed6000002", "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.7429ms) Rendered text template (0.0ms) Completed 200 OK in 470.5ms (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.6502ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3232ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4248ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6987ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.6983ms) 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.6063ms) 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.8471ms) 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.4179ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f1302475800ed6000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"14a0535d14e1822421823c8416ffe4ca5f962f20", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"FxJ1egS2sQCBvFgGhWoL", "api_key"=>"5a13d4ec7f2b1381717d62eaa55fe2114153db7a", "updated_at"=>2013-11-27 13:18:40 UTC, "created_at"=>2013-11-27 13:18:40 UTC}] flags=[] (0.1249ms) 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.9441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f1302475800ed6000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:18:31 UTC, "updated_at"=>2013-11-27 13:18:40 UTC, "memberships"=>[{"_id"=>"5295f1302475800ed6000019", "role"=>"admin", "account_id"=>"5295f1302475800ed6000017"}]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1302475800ed6000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f1302475800ed6000018", "_id"=>{"$ne"=>"5295f1302475800ed600001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5295f1302475800ed600001a", "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"=>"5295f1302475800ed6000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:40 UTC, "created_at"=>2013-11-27 13:18:40 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1302475800ed600001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5608ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1302475800ed600001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1302475800ed6000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f1302475800ed6000018", "_id"=>{"$ne"=>"5295f1312475800ed600001b"}, "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"=>"5295f1302475800ed6000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5295f1312475800ed600001b", "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"=>"5295f1302475800ed6000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:41 UTC, "created_at"=>2013-11-27 13:18:41 UTC}] flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1312475800ed600001b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5295f1312475800ed600001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1312475800ed600001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f1302475800ed6000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f1312475800ed600001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f1302475800ed6000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f1312475800ed600001d", "updated_at"=>2013-11-27 13:18:41 UTC, "created_at"=>2013-11-27 13:18:41 UTC, "entries_custom_fields"=>[{"_id"=>"5295f1312475800ed600001d", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f1312475800ed600001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f1312475800ed600001e", "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", "updated_at"=>2013-11-27 13:18:41 UTC, "created_at"=>2013-11-27 13:18:41 UTC}}} flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f1312475800ed600001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}} 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_content_entries selector={"content_type_id"=>"5295f1312475800ed600001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4287ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}}} (0.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f1312475800ed600001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f1312475800ed600001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f1312475800ed600001c", "content_type_id"=>"5295f1312475800ed600001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f1302475800ed6000018", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:41 UTC, "created_at"=>2013-11-27 13:18:41 UTC}] flags=[] (0.1826ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f1322475800ed6000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f1312475800ed600001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}}} (0.3400ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}}} (0.2561ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f1322475800ed6000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f1312475800ed600001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f1312475800ed600001c", "content_type_id"=>"5295f1312475800ed600001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f1302475800ed6000018", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:42 UTC, "created_at"=>2013-11-27 13:18:42 UTC}] flags=[] (0.1731ms) 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.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018", "_id"=>{"$ne"=>"5295f1322475800ed6000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f1302475800ed600001a"}]}]}, "$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"=>"5295f1322475800ed6000021", "parent_ids"=>["5295f1302475800ed600001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:42 UTC, "created_at"=>2013-11-27 13:18:42 UTC}] flags=[] (0.3052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1322475800ed6000021"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5295f1322475800ed6000021"}, "$orderby"=>{"position"=>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=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1322475800ed6000021"]}} 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.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018", "_id"=>{"$ne"=>"5295f1332475800ed6000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f1302475800ed600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f1332475800ed6000022", "parent_ids"=>["5295f1302475800ed600001a"], "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"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:43 UTC, "created_at"=>2013-11-27 13:18:43 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1332475800ed6000022"]}}, "$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"=>"5295f1332475800ed6000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1332475800ed6000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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 (1.0149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5643ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018", "_id"=>{"$ne"=>"5295f1332475800ed6000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f1302475800ed600001a"}]}]}, "$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"=>"5295f1332475800ed6000023", "parent_ids"=>["5295f1302475800ed600001a"], "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"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:43 UTC, "created_at"=>2013-11-27 13:18:43 UTC}] flags=[] (0.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1332475800ed6000023"]}}, "$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"=>"5295f1332475800ed6000023"}, "$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"=>["5295f1332475800ed6000023"]}} 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=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"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018", "_id"=>{"$ne"=>"5295f1332475800ed6000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1302475800ed600001a", "site_id"=>"5295f1302475800ed6000018"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f1302475800ed600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7272ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f1332475800ed6000024", "parent_ids"=>["5295f1302475800ed600001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f1302475800ed6000018", "parent_id"=>"5295f1302475800ed600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:43 UTC, "created_at"=>2013-11-27 13:18:43 UTC}] flags=[] (0.3042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1332475800ed6000024"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5295f1332475800ed6000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1332475800ed6000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f1302475800ed6000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f1302475800ed600001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:18:43 UTC}} flags=[] (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "template_dependencies.en"=>{"$in"=>["5295f1302475800ed600001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) 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.7000ms) 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.5550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f1342475800ed6000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:18:31 UTC, "updated_at"=>2013-11-27 13:18:44 UTC, "memberships"=>[{"_id"=>"5295f1342475800ed6000026", "role"=>"admin", "account_id"=>"5295f1302475800ed6000017"}]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1342475800ed6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f1342475800ed6000025", "_id"=>{"$ne"=>"5295f1342475800ed6000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5295f1342475800ed6000027", "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"=>"5295f1342475800ed6000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:44 UTC, "created_at"=>2013-11-27 13:18:44 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1342475800ed6000025", "template_dependencies.en"=>{"$in"=>["5295f1342475800ed6000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1342475800ed6000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1342475800ed6000027"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1342475800ed6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5295f1342475800ed6000025", "_id"=>{"$ne"=>"5295f1352475800ed6000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f1342475800ed6000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7422ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f1352475800ed6000028", "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"=>"5295f1342475800ed6000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:45 UTC, "created_at"=>2013-11-27 13:18:45 UTC}] flags=[] (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1342475800ed6000025", "template_dependencies.en"=>{"$in"=>["5295f1352475800ed6000028"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1352475800ed6000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f1352475800ed6000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f1342475800ed6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5295f1342475800ed6000025", "_id"=>{"$ne"=>"5295f1352475800ed6000029"}, "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"=>"5295f1342475800ed6000025"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f1352475800ed6000029", "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"=>"5295f1342475800ed6000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:45 UTC, "created_at"=>2013-11-27 13:18:45 UTC}] flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1342475800ed6000025", "template_dependencies.en"=>{"$in"=>["5295f1352475800ed6000029"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f1352475800ed6000029"}, "$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"=>["5295f1352475800ed6000029"]}} 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_content_types selector={"site_id"=>"5295f1342475800ed6000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5493ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f1352475800ed600002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f1342475800ed6000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f1352475800ed600002b", "updated_at"=>2013-11-27 13:18:45 UTC, "created_at"=>2013-11-27 13:18:45 UTC, "entries_custom_fields"=>[{"_id"=>"5295f1352475800ed600002b", "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.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f1352475800ed600002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1352475800ed600002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f1352475800ed600002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1352475800ed600002a"]}}} (0.6061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f1352475800ed600002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f1352475800ed600002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f1352475800ed600002a", "content_type_id"=>"5295f1352475800ed600002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f1342475800ed6000025", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:45 UTC, "created_at"=>2013-11-27 13:18:45 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f1312475800ed600001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}} 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={"_id"=>{"$ne"=>"5295f1322475800ed6000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1690ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f1312475800ed600001c"} update={"$set"=>{"updated_at"=>2013-11-27 13:18:46 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f1312475800ed600001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1709ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:18:46 +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.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5679ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14:18:46 +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.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "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.5379ms) Rendered text template (0.0ms) Completed 200 OK in 454.2ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f1312475800ed600001c"} 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=locomotive_content_entries selector={"content_type_id"=>"5295f1312475800ed600001c", "updated_at"=>{"$lt"=>2013-11-27 13:18:46 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5295f1312475800ed600001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f1302475800ed6000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"$query"=>{"_id"=>"5295f1312475800ed600001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5295f1312475800ed600001f"} update={"$set"=>{"updated_at"=>2013-11-27 13:18:47 UTC}} flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f1302475800ed6000018"}, "$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"=>"5295f1312475800ed600001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5295f1322475800ed6000020"} update={"$set"=>{"updated_at"=>2013-11-27 13:18:47 UTC}} flags=[] (0.1459ms) Started GET "/en/" for 127.0.0.1 at 2013-11-27 14:18:48 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-27 14:18:48 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14:18: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.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f1302475800ed6000018", "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.7961ms) Rendered text template (0.0ms) Completed 200 OK in 455.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.6547ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8824ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0500ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0152ms) 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.7167ms) 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.5147ms) 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.6940ms) 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.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f13e247580e779000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"471cec63d9e56e3fb9e6b1bd3c7df920633d3e2d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9Yqn1gzsMRKHsqYoSJns", "api_key"=>"df7197e41e84511d64c7e8176fc82387013ea8b5", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1409ms) 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.8740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f13e247580e779000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:18:54 UTC, "updated_at"=>2013-11-27 13:18:54 UTC, "memberships"=>[{"_id"=>"5295f13e247580e779000003", "role"=>"admin", "account_id"=>"5295f13e247580e779000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000002", "_id"=>{"$ne"=>"5295f13e247580e779000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f13e247580e779000004", "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"=>"5295f13e247580e779000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.3660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000004"}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000004"]}}, "$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"=>["5295f13e247580e779000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e779000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f13e247580e779000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1533ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000002", "_id"=>{"$ne"=>"5295f13e247580e779000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13e247580e779000006", "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"=>"5295f13e247580e779000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000006"]}}, "$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"=>"5295f13e247580e779000006"}, "$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"=>["5295f13e247580e779000006"]}} 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"=>"5295f13e247580e779000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f13e247580e779000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f13e247580e779000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f13e247580e779000008", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC, "entries_custom_fields"=>[{"_id"=>"5295f13e247580e779000008", "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.2549ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f13e247580e779000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f13e247580e779000009", "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", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}}} flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13e247580e77900000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f13e247580e779000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000007"]}}} (0.4363ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f13e247580e77900000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f13e247580e779000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f13e247580e779000007", "content_type_id"=>"5295f13e247580e779000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f13e247580e779000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000007", "_original_id"=>"5295f13e247580e77900000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e77900000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f13e247580e779000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000007", "_original_id"=>"5295f13e247580e77900000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13e247580e77900000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000007"]}} 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"=>"5295f13e247580e779000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000007"]}}} (0.4241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000007"]}}} (0.3042ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5372ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f13e247580e77900000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f13e247580e779000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f13e247580e779000007", "content_type_id"=>"5295f13e247580e779000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f13e247580e779000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000007", "_original_id"=>"5295f13e247580e77900000c"}, "$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_models documents=[{"_id"=>"5295f13e247580e77900000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f13e247580e779000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000007", "_original_id"=>"5295f13e247580e77900000c", "_keywords"=>["hidden"]}] flags=[] (0.1149ms) 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.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002", "_id"=>{"$ne"=>"5295f13e247580e77900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f13e247580e779000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13e247580e77900000e", "parent_ids"=>["5295f13e247580e779000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e77900000e"]}}, "$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"=>"5295f13e247580e77900000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13e247580e77900000e"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e77900000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e77900000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f13e247580e779000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e77900000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1297ms) 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"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002", "_id"=>{"$ne"=>"5295f13e247580e779000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f13e247580e779000004"}]}]}, "$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"=>"5295f13e247580e779000010", "parent_ids"=>["5295f13e247580e779000004"], "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"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000010"]}}, "$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"=>"5295f13e247580e779000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13e247580e779000010"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002", "_id"=>{"$ne"=>"5295f13e247580e779000011"}, "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"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002"}, "$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"=>"5295f13e247580e779000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5295f13e247580e779000011", "parent_ids"=>["5295f13e247580e779000004"], "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"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000011"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13e247580e779000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002", "_id"=>{"$ne"=>"5295f13e247580e779000012"}, "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"=>"5295f13e247580e779000004", "site_id"=>"5295f13e247580e779000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f13e247580e779000004"}]}]}, "$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"=>"5295f13e247580e779000012", "parent_ids"=>["5295f13e247580e779000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f13e247580e779000002", "parent_id"=>"5295f13e247580e779000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000012"]}}, "$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"=>"5295f13e247580e779000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4640ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13e247580e779000012"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e779000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f13e247580e779000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000012", "_keywords"=>["en:search"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "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"=>"5295f13e247580e779000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f13e247580e779000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:18:54 UTC}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f13e247580e779000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f13e247580e779000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1979ms) 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.6049ms) 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.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f13e247580e779000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:18:54 UTC, "updated_at"=>2013-11-27 13:18:54 UTC, "memberships"=>[{"_id"=>"5295f13e247580e779000015", "role"=>"admin", "account_id"=>"5295f13e247580e779000001"}]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5295f13e247580e779000014", "_id"=>{"$ne"=>"5295f13e247580e779000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5295f13e247580e779000016", "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"=>"5295f13e247580e779000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000014", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000016"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000016"}, "$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"=>["5295f13e247580e779000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000016"}, "$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_models documents=[{"_id"=>"5295f13e247580e779000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f13e247580e779000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000014", "_id"=>{"$ne"=>"5295f13e247580e779000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4892ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13e247580e779000018", "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"=>"5295f13e247580e779000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000014", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000018"]}}, "$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"=>"5295f13e247580e779000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13e247580e779000018"]}} 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={"site_id"=>"5295f13e247580e779000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000014", "_id"=>{"$ne"=>"5295f13e247580e779000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6380ms) 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.3629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13e247580e779000019", "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"=>"5295f13e247580e779000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000014", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000019"]}}, "$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"=>"5295f13e247580e779000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13e247580e779000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e77900001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f13e247580e779000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f13e247580e779000014", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5295f13e247580e77900001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f13e247580e779000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f13e247580e77900001c", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC, "entries_custom_fields"=>[{"_id"=>"5295f13e247580e77900001c", "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.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13e247580e77900001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e77900001b"]}} 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=locomotive_content_entries selector={"content_type_id"=>"5295f13e247580e77900001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e77900001b"]}}} (0.4973ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f13e247580e77900001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f13e247580e77900001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f13e247580e77900001b", "content_type_id"=>"5295f13e247580e77900001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f13e247580e779000014", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e77900001b", "_original_id"=>"5295f13e247580e77900001d"}, "$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_models documents=[{"_id"=>"5295f13e247580e77900001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f13e247580e779000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f13e247580e77900001b", "_original_id"=>"5295f13e247580e77900001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1421ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:18:54 +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.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6323ms) Rendered text template (0.0ms) Completed 200 OK in 14.7ms (Views: 8.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-11-27 14:18:54 +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.6092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "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.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f13e247580e779000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) Rendered text template (0.0ms) Completed 200 OK in 13.8ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-11-27 14:18:54 +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.8321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "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.6731ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:18:54 +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.5698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-11-27 14:18:54 +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.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000002", "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.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f13e247580e779000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.6611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1268ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8719ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5422ms) 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.3331ms) 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.3619ms) 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"=>"5295f13e247580e77900001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8a950beb71c1290aad9255fc4699d0a8f498334b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"BsFSoLsmFJz4QGuehsvf", "api_key"=>"5a4b62eb5b664c5ed39b72994989b223f6857742", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1469ms) 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.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f13e247580e779000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:18:54 UTC, "updated_at"=>2013-11-27 13:18:54 UTC, "memberships"=>[{"_id"=>"5295f13e247580e779000021", "role"=>"admin", "account_id"=>"5295f13e247580e77900001f"}]}] flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5295f13e247580e779000020", "_id"=>{"$ne"=>"5295f13e247580e779000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f13e247580e779000022", "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"=>"5295f13e247580e779000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000022"]}}, "$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"=>"5295f13e247580e779000022"}, "$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"=>["5295f13e247580e779000022"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e779000023", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f13e247580e779000020", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000022", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000020", "_id"=>{"$ne"=>"5295f13e247580e779000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13e247580e779000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13e247580e779000024", "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"=>"5295f13e247580e779000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3357ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000024"}, "$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"=>["5295f13e247580e779000024"]}} 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"=>"5295f13e247580e779000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f13e247580e779000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f13e247580e779000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f13e247580e779000026", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC, "entries_custom_fields"=>[{"_id"=>"5295f13e247580e779000026", "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.2334ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f13e247580e779000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f13e247580e779000027", "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", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13e247580e779000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f13e247580e779000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4795ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}}} (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f13e247580e779000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f13e247580e779000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "content_type_id"=>"5295f13e247580e779000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f13e247580e779000020", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "_original_id"=>"5295f13e247580e779000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13e247580e779000029", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f13e247580e779000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "_original_id"=>"5295f13e247580e779000028", "_keywords"=>["findable", "entry"]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13e247580e77900002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}} 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"=>"5295f13e247580e779000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}}} (0.3614ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}}} (0.3831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f13e247580e77900002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f13e247580e779000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "content_type_id"=>"5295f13e247580e779000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f13e247580e779000020", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:54 UTC, "created_at"=>2013-11-27 13:18:54 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "_original_id"=>"5295f13e247580e77900002a"}, "$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_models documents=[{"_id"=>"5295f13f247580e77900002b", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f13e247580e779000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "_original_id"=>"5295f13e247580e77900002a", "_keywords"=>["hidden"]}] flags=[] (0.1521ms) 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.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "$or"=>[{"slug.en"=>"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"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020", "_id"=>{"$ne"=>"5295f13f247580e77900002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f13e247580e779000022"}]}]}, "$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"=>"5295f13f247580e77900002c", "parent_ids"=>["5295f13e247580e779000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.1884ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13f247580e77900002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13f247580e77900002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13f247580e77900002c"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e77900002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13f247580e77900002d", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f13e247580e779000020", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e77900002c", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "$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"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020", "_id"=>{"$ne"=>"5295f13f247580e77900002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f13e247580e779000022"}]}]}, "$orderby"=>{"depth"=>1}} 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=locomotive_pages documents=[{"_id"=>"5295f13f247580e77900002e", "parent_ids"=>["5295f13e247580e779000022"], "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"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13f247580e77900002e"]}}, "$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"=>"5295f13f247580e77900002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13f247580e77900002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020", "_id"=>{"$ne"=>"5295f13f247580e77900002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020"}, "$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"=>"5295f13e247580e779000022"}]}]}, "$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"=>"5295f13f247580e77900002f", "parent_ids"=>["5295f13e247580e779000022"], "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"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13f247580e77900002f"]}}, "$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"=>"5295f13f247580e77900002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13f247580e77900002f"]}} 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.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020", "_id"=>{"$ne"=>"5295f13f247580e779000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13e247580e779000022", "site_id"=>"5295f13e247580e779000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5295f13e247580e779000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5267ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13f247580e779000030", "parent_ids"=>["5295f13e247580e779000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f13e247580e779000020", "parent_id"=>"5295f13e247580e779000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13f247580e779000030"]}}, "$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"=>"5295f13f247580e779000030"}, "$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"=>["5295f13f247580e779000030"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e779000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13f247580e779000031", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f13e247580e779000020", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e779000030", "_keywords"=>["en:search"]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f13e247580e779000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f13e247580e779000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:18:55 UTC}} flags=[] (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "template_dependencies.en"=>{"$in"=>["5295f13e247580e779000022"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13e247580e779000022"}, "$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=active_search_mongoid_models selector={"_id"=>"5295f13e247580e779000023"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f13e247580e779000020", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1030ms) 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.4640ms) 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.3061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f13f247580e779000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:18:54 UTC, "updated_at"=>2013-11-27 13:18:55 UTC, "memberships"=>[{"_id"=>"5295f13f247580e779000033", "role"=>"admin", "account_id"=>"5295f13e247580e77900001f"}]}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13f247580e779000032", "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"=>"5295f13f247580e779000032", "_id"=>{"$ne"=>"5295f13f247580e779000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f13f247580e779000034", "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"=>"5295f13f247580e779000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13f247580e779000032", "template_dependencies.en"=>{"$in"=>["5295f13f247580e779000034"]}}, "$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"=>"5295f13f247580e779000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13f247580e779000034"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e779000034"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13f247580e779000035", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f13f247580e779000032", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e779000034", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f13f247580e779000032", "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"=>"5295f13f247580e779000032", "_id"=>{"$ne"=>"5295f13f247580e779000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f13f247580e779000032"}, "$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"=>"5295f13f247580e779000036", "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"=>"5295f13f247580e779000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13f247580e779000032", "template_dependencies.en"=>{"$in"=>["5295f13f247580e779000036"]}}, "$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"=>"5295f13f247580e779000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13f247580e779000036"]}} 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={"site_id"=>"5295f13f247580e779000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5295f13f247580e779000032", "_id"=>{"$ne"=>"5295f13f247580e779000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5295f13f247580e779000032"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f13f247580e779000037", "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"=>"5295f13f247580e779000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13f247580e779000032", "template_dependencies.en"=>{"$in"=>["5295f13f247580e779000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f13f247580e779000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f13f247580e779000037"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e779000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13f247580e779000038", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f13f247580e779000032", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f13f247580e779000037", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f13f247580e779000032", "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"=>"5295f13f247580e779000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f13f247580e779000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f13f247580e77900003a", "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC, "entries_custom_fields"=>[{"_id"=>"5295f13f247580e77900003a", "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.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13f247580e77900003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13f247580e779000039"]}} 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"=>"5295f13f247580e779000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13f247580e779000039"]}}} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f13f247580e77900003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f13f247580e779000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f13f247580e779000039", "content_type_id"=>"5295f13f247580e779000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f13f247580e779000032", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:18:55 UTC, "created_at"=>2013-11-27 13:18:55 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13f247580e779000039", "_original_id"=>"5295f13f247580e77900003b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f13f247580e77900003c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f13f247580e779000032", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f13f247580e779000039", "_original_id"=>"5295f13f247580e77900003b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f13e247580e779000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}} 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_entries selector={"_id"=>{"$ne"=>"5295f13e247580e77900002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1447ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f13e247580e779000025"} update={"$set"=>{"updated_at"=>2013-11-27 13:18:55 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f13e247580e779000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1502ms) Started GET "/" for 127.0.0.1 at 2013-11-27 14:18: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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9110ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14:18:55 +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.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "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.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f13e247580e779000020", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3538ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f13e247580e779000025"} 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"=>"5295f13e247580e779000025", "updated_at"=>{"$lt"=>2013-11-27 13:18:55 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5295f13e247580e779000025"]}} 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_sites selector={"$query"=>{"_id"=>"5295f13e247580e779000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5295f13e247580e779000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5295f13e247580e779000028"} update={"$set"=>{"updated_at"=>2013-11-27 13:18:55 UTC}} flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "_original_id"=>"5295f13e247580e779000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f13e247580e779000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f13e247580e779000020", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f13e247580e779000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5295f13e247580e779000025"}, "$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_content_entries selector={"_id"=>"5295f13e247580e77900002a"} update={"$set"=>{"updated_at"=>2013-11-27 13:18:55 UTC}} flags=[] (0.1247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f13e247580e779000025", "_original_id"=>"5295f13e247580e77900002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f13f247580e77900002b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f13e247580e779000020", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1132ms) Started GET "/en/" for 127.0.0.1 at 2013-11-27 14:18:55 +0100 Started GET "/en" for 127.0.0.1 at 2013-11-27 14:18:55 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7260ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-11-27 14:18:55 +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.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f13e247580e779000020", "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.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"5295f13e247580e779000020", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (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.6361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6862ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.5200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4480ms) 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.8109ms) 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.5412ms) 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.5469ms) 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.7527ms) 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.4227ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f144247580a3e3000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"00af0c6edd1d0e7b486756570f2a9cc4b21274bf", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"DSzA4pSEA4jhSx7q9z2o", "api_key"=>"2adb8d91e65e0aedb6d791b2a3f348e1ea7c6d48", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1402ms) 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.7553ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f144247580a3e3000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:19:00 UTC, "updated_at"=>2013-11-27 13:19:00 UTC, "memberships"=>[{"_id"=>"5295f144247580a3e3000003", "role"=>"admin", "account_id"=>"5295f144247580a3e3000001"}]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000002", "_id"=>{"$ne"=>"5295f144247580a3e3000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f144247580a3e3000004", "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"=>"5295f144247580a3e3000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.2928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f144247580a3e3000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000004"]}}, "$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"=>["5295f144247580a3e3000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f144247580a3e3000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f144247580a3e3000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000002", "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"=>"5295f144247580a3e3000002", "_id"=>{"$ne"=>"5295f144247580a3e3000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f144247580a3e3000006", "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"=>"5295f144247580a3e3000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000006"]}}, "$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"=>"5295f144247580a3e3000006"}, "$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"=>["5295f144247580a3e3000006"]}} 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"=>"5295f144247580a3e3000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0278ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f144247580a3e3000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f144247580a3e3000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f144247580a3e3000008", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC, "entries_custom_fields"=>[{"_id"=>"5295f144247580a3e3000008", "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.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f144247580a3e3000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f144247580a3e3000009", "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", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}}} flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f144247580a3e300000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e3000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9887ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f144247580a3e3000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4637ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e3000007"]}}} (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f144247580a3e300000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f144247580a3e3000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f144247580a3e3000007", "content_type_id"=>"5295f144247580a3e3000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f144247580a3e3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f144247580a3e3000007", "_original_id"=>"5295f144247580a3e300000a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f144247580a3e300000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f144247580a3e3000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f144247580a3e3000007", "_original_id"=>"5295f144247580a3e300000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f144247580a3e300000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e3000007"]}} 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"=>"5295f144247580a3e3000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e3000007"]}}} (0.4532ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e3000007"]}}} (0.2730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e3000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f144247580a3e300000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f144247580a3e3000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f144247580a3e3000007", "content_type_id"=>"5295f144247580a3e3000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f144247580a3e3000002", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f144247580a3e3000007", "_original_id"=>"5295f144247580a3e300000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f144247580a3e300000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f144247580a3e3000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f144247580a3e3000007", "_original_id"=>"5295f144247580a3e300000c", "_keywords"=>["hidden"]}] flags=[] (0.1550ms) 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.7563ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002", "_id"=>{"$ne"=>"5295f144247580a3e300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f144247580a3e3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5295f144247580a3e300000e", "parent_ids"=>["5295f144247580a3e3000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e300000e"]}}, "$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"=>"5295f144247580a3e300000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f144247580a3e300000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e300000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f144247580a3e300000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f144247580a3e3000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e300000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.2561ms) 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.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002", "_id"=>{"$ne"=>"5295f144247580a3e3000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002"}, "$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"=>"5295f144247580a3e3000004"}]}]}, "$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"=>"5295f144247580a3e3000010", "parent_ids"=>["5295f144247580a3e3000004"], "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"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000010"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5295f144247580a3e3000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f144247580a3e3000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.5147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002", "_id"=>{"$ne"=>"5295f144247580a3e3000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002"}, "$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"=>"5295f144247580a3e3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5295f144247580a3e3000011", "parent_ids"=>["5295f144247580a3e3000004"], "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"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000011"]}}, "$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"=>"5295f144247580a3e3000011"}, "$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"=>["5295f144247580a3e3000011"]}} 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.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002", "_id"=>{"$ne"=>"5295f144247580a3e3000012"}, "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"=>"5295f144247580a3e3000004", "site_id"=>"5295f144247580a3e3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4396ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f144247580a3e3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5295f144247580a3e3000012", "parent_ids"=>["5295f144247580a3e3000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f144247580a3e3000002", "parent_id"=>"5295f144247580a3e3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000012"]}}, "$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"=>"5295f144247580a3e3000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3228ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f144247580a3e3000012"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f144247580a3e3000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f144247580a3e3000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000012", "_keywords"=>["en:search"]}] flags=[] (0.1190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "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_sites selector={"$query"=>{"_id"=>"5295f144247580a3e3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3977ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5295f144247580a3e3000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:19:00 UTC}} flags=[] (0.1547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000004"}, "$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_models selector={"_id"=>"5295f144247580a3e3000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f144247580a3e3000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1237ms) 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.5169ms) 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.3281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f144247580a3e3000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:19:00 UTC, "updated_at"=>2013-11-27 13:19:00 UTC, "memberships"=>[{"_id"=>"5295f144247580a3e3000015", "role"=>"admin", "account_id"=>"5295f144247580a3e3000001"}]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000014", "_id"=>{"$ne"=>"5295f144247580a3e3000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f144247580a3e3000016", "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"=>"5295f144247580a3e3000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000014", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000016"]}}, "$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"=>"5295f144247580a3e3000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3848ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f144247580a3e3000016"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000016"}, "$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_models documents=[{"_id"=>"5295f144247580a3e3000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f144247580a3e3000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f144247580a3e3000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000014", "_id"=>{"$ne"=>"5295f144247580a3e3000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f144247580a3e3000018", "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"=>"5295f144247580a3e3000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000014", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000018"]}}, "$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"=>"5295f144247580a3e3000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f144247580a3e3000018"]}} 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={"site_id"=>"5295f144247580a3e3000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000014", "_id"=>{"$ne"=>"5295f144247580a3e3000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f144247580a3e3000014"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f144247580a3e3000019", "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"=>"5295f144247580a3e3000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000014", "template_dependencies.en"=>{"$in"=>["5295f144247580a3e3000019"]}}, "$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"=>"5295f144247580a3e3000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f144247580a3e3000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000019"}, "$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_models documents=[{"_id"=>"5295f144247580a3e300001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f144247580a3e3000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f144247580a3e3000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f144247580a3e3000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4122ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f144247580a3e300001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f144247580a3e3000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f144247580a3e300001c", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC, "entries_custom_fields"=>[{"_id"=>"5295f144247580a3e300001c", "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.1683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f144247580a3e300001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e300001b"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5295f144247580a3e300001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f144247580a3e300001b"]}}} (0.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f144247580a3e300001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f144247580a3e300001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f144247580a3e300001b", "content_type_id"=>"5295f144247580a3e300001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f144247580a3e3000014", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:19:00 UTC, "created_at"=>2013-11-27 13:19:00 UTC}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f144247580a3e300001b", "_original_id"=>"5295f144247580a3e300001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5167ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f144247580a3e300001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f144247580a3e3000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f144247580a3e300001b", "_original_id"=>"5295f144247580a3e300001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.2370ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-27 14:19:01 +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.7849ms) 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.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5295f144247580a3e3000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4807ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.3ms) Completed 200 OK in 36.0ms (Views: 29.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-11-27 14:19:01 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (6ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-11-27 14:19:01 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (7ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-11-27 14:19:02 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-27 14:19:02 +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"=>["5295f144247580a3e3000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6373ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f144247580a3e3000001"} update={"$set"=>{"remember_created_at"=>2013-11-27 13:19:02 UTC, "updated_at"=>2013-11-27 13:19:02 UTC}} flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f144247580a3e3000001"} update={"$set"=>{"last_sign_in_at"=>2013-11-27 13:19:02 UTC, "current_sign_in_at"=>2013-11-27 13:19:02 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-27 13:19:02 UTC}} flags=[] (0.1609ms) 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 2013-11-27 14:19:02 +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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f144247580a3e3000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5295f144247580a3e3000001"]}} 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"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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, "target_klass_name"=>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.6639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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, "target_klass_name"=>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.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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.3901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5295f144247580a3e3000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7050ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (25.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (12.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f144247580a3e3000001", :role=>:admin}}}} (0.7572ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (13.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5295f144247580a3e3000001"}} (0.6008ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f144247580a3e3000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6590ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (3.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (23.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 127.4ms (Views: 108.8ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-11-27 14:19:02 +0100 Served asset /locomotive.css - 200 OK (33ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-11-27 14:19:02 +0100 Served asset /locomotive.js - 200 OK (115ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-11-27 14:19:02 +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 2013-11-27 14:19:02 +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 2013-11-27 14:19:02 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-11-27 14:19:02 +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.6309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f144247580a3e3000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6163ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5295f144247580a3e3000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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, "target_klass_name"=>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.5361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f144247580a3e3000002"}, "$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.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5295f144247580a3e3000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7191ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (15.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f144247580a3e3000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7360ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_select_templates.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_form.html.haml (54.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f144247580a3e3000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4721ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/_form.html.haml (76.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (101.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f144247580a3e3000001", :role=>:admin}}}} (0.6762ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f144247580a3e3000001"}} (0.4663ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f144247580a3e3000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6199ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (7.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 135.2ms (Views: 121.3ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-11-27 14:19:02 +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.6251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.0188ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1871ms) 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.5269ms) 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.9251ms) 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.3819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5295f147247580a3e3000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2f3f9fa3f57b1eee80a9de34e0e4e1441b0a4131", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"uepwyB25sbhf9qZybc28", "api_key"=>"8016ea931eb352c734ca0eac8d1cde14e9cb795e", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2124ms) 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.6018ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5295f147247580a3e3000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-11-27 13:19:00 UTC, "updated_at"=>2013-11-27 13:19:03 UTC, "memberships"=>[{"_id"=>"5295f147247580a3e3000022", "role"=>"admin", "account_id"=>"5295f147247580a3e3000020"}]}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f147247580a3e3000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5295f147247580a3e3000021", "_id"=>{"$ne"=>"5295f147247580a3e3000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5295f147247580a3e3000023", "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"=>"5295f147247580a3e3000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000023"]}}, "$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"=>"5295f147247580a3e3000023"}, "$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"=>["5295f147247580a3e3000023"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e3000024", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f147247580a3e3000021", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000023", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f147247580a3e3000021", "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"=>"5295f147247580a3e3000021", "_id"=>{"$ne"=>"5295f147247580a3e3000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f147247580a3e3000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5295f147247580a3e3000025", "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"=>"5295f147247580a3e3000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3357ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e3000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e3000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f147247580a3e3000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f147247580a3e3000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f147247580a3e3000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f147247580a3e3000027", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC, "entries_custom_fields"=>[{"_id"=>"5295f147247580a3e3000027", "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.1991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5295f147247580a3e3000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5295f147247580a3e3000028", "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", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}}} flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f147247580a3e3000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e3000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f147247580a3e3000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e3000026"]}}} (0.6280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f147247580a3e3000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f147247580a3e3000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f147247580a3e3000026", "content_type_id"=>"5295f147247580a3e3000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5295f147247580a3e3000021", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f147247580a3e3000026", "_original_id"=>"5295f147247580a3e3000029"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e300002a", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"5295f147247580a3e3000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f147247580a3e3000026", "_original_id"=>"5295f147247580a3e3000029", "_keywords"=>["findable", "entry"]}] flags=[] (0.1826ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5295f147247580a3e300002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e3000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f147247580a3e3000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e3000026"]}}} (0.4311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e3000026"]}}} (0.3169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e3000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f147247580a3e300002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f147247580a3e3000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f147247580a3e3000026", "content_type_id"=>"5295f147247580a3e3000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5295f147247580a3e3000021", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f147247580a3e3000026", "_original_id"=>"5295f147247580a3e300002b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e300002c", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"5295f147247580a3e3000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f147247580a3e3000026", "_original_id"=>"5295f147247580a3e300002b", "_keywords"=>["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.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021", "_id"=>{"$ne"=>"5295f147247580a3e300002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f147247580a3e3000023"}]}]}, "$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"=>"5295f147247580a3e300002d", "parent_ids"=>["5295f147247580a3e3000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e300002d"]}}, "$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"=>"5295f147247580a3e300002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e300002d"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e300002d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e300002e", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"5295f147247580a3e3000021", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e300002d", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1349ms) 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.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021", "_id"=>{"$ne"=>"5295f147247580a3e300002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f147247580a3e3000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5295f147247580a3e300002f", "parent_ids"=>["5295f147247580a3e3000023"], "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"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e300002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e300002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e300002f"]}} 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=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021", "_id"=>{"$ne"=>"5295f147247580a3e3000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f147247580a3e3000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f147247580a3e3000030", "parent_ids"=>["5295f147247580a3e3000023"], "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"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000030"]}}, "$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"=>"5295f147247580a3e3000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e3000030"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021", "_id"=>{"$ne"=>"5295f147247580a3e3000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5295f147247580a3e3000023", "site_id"=>"5295f147247580a3e3000021"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5295f147247580a3e3000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f147247580a3e3000031", "parent_ids"=>["5295f147247580a3e3000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5295f147247580a3e3000021", "parent_id"=>"5295f147247580a3e3000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000031"]}}, "$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"=>"5295f147247580a3e3000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4468ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e3000031"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000031"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e3000032", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"5295f147247580a3e3000021", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000031", "_keywords"=>["en:search"]}] flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5295f147247580a3e3000021"}, "$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"=>"5295f147247580a3e3000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-11-27 13:19:03 UTC}} flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000023"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7231ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"5295f147247580a3e3000024"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f147247580a3e3000021", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1450ms) 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_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"5295f147247580a3e3000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-11-27 13:19:00 UTC, "updated_at"=>2013-11-27 13:19:03 UTC, "memberships"=>[{"_id"=>"5295f147247580a3e3000034", "role"=>"admin", "account_id"=>"5295f147247580a3e3000020"}]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f147247580a3e3000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f147247580a3e3000033", "_id"=>{"$ne"=>"5295f147247580a3e3000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5295f147247580a3e3000035", "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"=>"5295f147247580a3e3000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000033", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000035"]}}, "$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"=>"5295f147247580a3e3000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e3000035"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000035"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e3000036", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"5295f147247580a3e3000033", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000035", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5295f147247580a3e3000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f147247580a3e3000033", "_id"=>{"$ne"=>"5295f147247580a3e3000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5295f147247580a3e3000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5295f147247580a3e3000037", "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"=>"5295f147247580a3e3000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000033", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000037"]}}, "$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"=>"5295f147247580a3e3000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e3000037"]}} 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"=>"5295f147247580a3e3000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f147247580a3e3000033", "_id"=>{"$ne"=>"5295f147247580a3e3000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5295f147247580a3e3000033"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5295f147247580a3e3000038", "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"=>"5295f147247580a3e3000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000033", "template_dependencies.en"=>{"$in"=>["5295f147247580a3e3000038"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5295f147247580a3e3000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5295f147247580a3e3000038"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000038"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e3000039", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"5295f147247580a3e3000033", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"5295f147247580a3e3000038", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f147247580a3e3000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5295f147247580a3e300003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5295f147247580a3e3000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5295f147247580a3e300003b", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC, "entries_custom_fields"=>[{"_id"=>"5295f147247580a3e300003b", "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"=>"5295f147247580a3e300003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e300003a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5295f147247580a3e300003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5295f147247580a3e300003a"]}}} (0.5088ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5295f147247580a3e300003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5295f147247580a3e300003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5295f147247580a3e300003a", "content_type_id"=>"5295f147247580a3e300003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5295f147247580a3e3000033", "_label_field_name"=>"name", "updated_at"=>2013-11-27 13:19:03 UTC, "created_at"=>2013-11-27 13:19:03 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry5295f147247580a3e300003a", "_original_id"=>"5295f147247580a3e300003c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4218ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"5295f147247580a3e300003d", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"5295f147247580a3e3000033", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry5295f147247580a3e300003a", "_original_id"=>"5295f147247580a3e300003c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.2418ms) Started GET "/locomotive" for 127.0.0.1 at 2013-11-27 14:19:03 +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.7617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5295f147247580a3e3000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5400ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (7.4ms) Completed 200 OK in 14.4ms (Views: 10.1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-11-27 14:19:03 +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"=>["5295f147247580a3e3000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5872ms) 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.6211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f147247580a3e3000020"} update={"$set"=>{"remember_created_at"=>2013-11-27 13:19:03 UTC, "updated_at"=>2013-11-27 13:19:03 UTC}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5295f147247580a3e3000020"} update={"$set"=>{"last_sign_in_at"=>2013-11-27 13:19:03 UTC, "current_sign_in_at"=>2013-11-27 13:19:03 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-11-27 13:19:03 UTC}} flags=[] (0.2418ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 12.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-11-27 14:19:03 +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.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f147247580a3e3000020"}, "$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_accounts selector={"_id"=>{"$in"=>["5295f147247580a3e3000020"]}} 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_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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, "target_klass_name"=>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.7759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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, "target_klass_name"=>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.7118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5295f147247580a3e3000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.5671ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (25.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (6.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (10.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (38.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f147247580a3e3000020", :role=>:admin}}}} (0.6740ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (6.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5295f147247580a3e3000020"}} (0.4961ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/global_actions/show.html.haml (0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5295f147247580a3e3000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7370ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (69.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (77.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 161.2ms (Views: 131.5ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2013-11-27 14:19:03 +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.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5295f147247580a3e3000020"}, "$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={"_id"=>{"$in"=>["5295f147247580a3e3000020"]}} flags=[:slave_ok] 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"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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, "target_klass_name"=>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.3583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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_entries selector={"$query"=>{"content_type_id"=>"5295f147247580a3e3000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.2093ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (17.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_assets/_picker.html.haml (8.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/theme_assets/_picker.html.haml (4.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_editable_elements.html.haml (5.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5295f147247580a3e3000021"}, "$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, "target_klass_name"=>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.3063ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5295f147247580a3e3000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7460ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_form.html.haml (102.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (129.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5295f147247580a3e3000020", :role=>:admin}}}} (0.5350ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f147247580a3e3000020"}} (0.4232ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5295f147247580a3e3000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (5.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 165.6ms (Views: 146.4ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2013-11-27 14:19:04 +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.6888ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3697ms) 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.2691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8602ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8328ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8318ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9222ms) 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 (30.1158ms) 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.4468ms) 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 (7.5319ms) 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.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52a1acc0247580250b000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5145c90f4b83dbdbcb57af508c3c1631b9c14512", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ZfqY3wjNAZqzUMxUrnJy", "api_key"=>"c58815ad3deefb7944afd5c496bc95bc8eb976bc", "updated_at"=>2013-12-06 10:53:52 UTC, "created_at"=>2013-12-06 10:53:52 UTC}] flags=[] (0.1929ms) 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} (43.7181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acc0247580250b000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-12-06 10:53:51 UTC, "updated_at"=>2013-12-06 10:53:52 UTC, "memberships"=>[{"_id"=>"52a1acc0247580250b000003", "role"=>"admin", "account_id"=>"52a1acc0247580250b000001"}]}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc0247580250b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (11.6329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc0247580250b000002", "_id"=>{"$ne"=>"52a1acc1247580250b000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc1247580250b000004", "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"=>"52a1acc0247580250b000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:53 UTC, "created_at"=>2013-12-06 10:53:53 UTC}] flags=[] (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc1247580250b000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.3430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc1247580250b000004"]}}, "$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"=>["52a1acc1247580250b000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc0247580250b000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc0247580250b000002", "_id"=>{"$ne"=>"52a1acc1247580250b000005"}, "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"=>"52a1acc0247580250b000002"}, "$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"=>"52a1acc1247580250b000005", "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"=>"52a1acc0247580250b000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:53 UTC, "created_at"=>2013-12-06 10:53:53 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc1247580250b000005"]}}, "$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"=>"52a1acc1247580250b000005"}, "$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"=>["52a1acc1247580250b000005"]}} 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_content_types selector={"site_id"=>"52a1acc0247580250b000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5140ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acc1247580250b000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acc0247580250b000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acc2247580250b000007", "updated_at"=>2013-12-06 10:53:54 UTC, "created_at"=>2013-12-06 10:53:54 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acc2247580250b000007", "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.2410ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acc1247580250b000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52a1acc2247580250b000008", "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", "updated_at"=>2013-12-06 10:53:54 UTC, "created_at"=>2013-12-06 10:53:54 UTC}}} flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acc2247580250b000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc1247580250b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.4229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acc1247580250b000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc1247580250b000006"]}}} (0.3989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acc2247580250b000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acc1247580250b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acc1247580250b000006", "content_type_id"=>"52a1acc1247580250b000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52a1acc0247580250b000002", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:53:54 UTC, "created_at"=>2013-12-06 10:53:54 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acc2247580250b00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc1247580250b000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acc1247580250b000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc1247580250b000006"]}}} (0.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc1247580250b000006"]}}} (0.4559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc1247580250b000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acc2247580250b00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acc1247580250b000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acc1247580250b000006", "content_type_id"=>"52a1acc1247580250b000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52a1acc0247580250b000002", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:53:54 UTC, "created_at"=>2013-12-06 10:53:54 UTC}] flags=[] (0.2460ms) 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.7048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002", "_id"=>{"$ne"=>"52a1acc3247580250b00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acc1247580250b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc3247580250b00000b", "parent_ids"=>["52a1acc1247580250b000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:55 UTC, "created_at"=>2013-12-06 10:53:55 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc3247580250b00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4427ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc3247580250b00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acc3247580250b00000b"]}} 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.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002", "_id"=>{"$ne"=>"52a1acc4247580250b00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acc1247580250b000004"}]}]}, "$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"=>"52a1acc4247580250b00000c", "parent_ids"=>["52a1acc1247580250b000004"], "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"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:56 UTC, "created_at"=>2013-12-06 10:53:56 UTC}] flags=[] (0.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc4247580250b00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"52a1acc4247580250b00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acc4247580250b00000c"]}} 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.5658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002", "_id"=>{"$ne"=>"52a1acc4247580250b00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acc1247580250b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc4247580250b00000d", "parent_ids"=>["52a1acc1247580250b000004"], "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"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:56 UTC, "created_at"=>2013-12-06 10:53:56 UTC}] flags=[] (0.2768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc4247580250b00000d"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"52a1acc4247580250b00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acc4247580250b00000d"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4816ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002", "_id"=>{"$ne"=>"52a1acc4247580250b00000e"}, "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"=>"52a1acc1247580250b000004", "site_id"=>"52a1acc0247580250b000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acc1247580250b000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc4247580250b00000e", "parent_ids"=>["52a1acc1247580250b000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52a1acc0247580250b000002", "parent_id"=>"52a1acc1247580250b000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:56 UTC, "created_at"=>2013-12-06 10:53:56 UTC}] flags=[] (0.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc4247580250b00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4017ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc4247580250b00000e"}, "$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"=>["52a1acc4247580250b00000e"]}} 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"=>{"site_id"=>"52a1acc0247580250b000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52a1acc0247580250b000002"}, "$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_pages selector={"_id"=>"52a1acc1247580250b000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-12-06 10:53:56 UTC}} flags=[] (0.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "template_dependencies.en"=>{"$in"=>["52a1acc1247580250b000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4017ms) 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.6568ms) 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.3638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acc5247580250b00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-12-06 10:53:51 UTC, "updated_at"=>2013-12-06 10:53:57 UTC, "memberships"=>[{"_id"=>"52a1acc5247580250b000010", "role"=>"admin", "account_id"=>"52a1acc0247580250b000001"}]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc5247580250b00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"52a1acc5247580250b00000f", "_id"=>{"$ne"=>"52a1acc5247580250b000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4637ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc5247580250b000011", "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"=>"52a1acc5247580250b00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:57 UTC, "created_at"=>2013-12-06 10:53:57 UTC}] flags=[] (0.2403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc5247580250b00000f", "template_dependencies.en"=>{"$in"=>["52a1acc5247580250b000011"]}}, "$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"=>"52a1acc5247580250b000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acc5247580250b000011"]}} 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"=>"52a1acc5247580250b00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc5247580250b00000f", "_id"=>{"$ne"=>"52a1acc6247580250b000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc5247580250b00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc6247580250b000012", "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"=>"52a1acc5247580250b00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:58 UTC, "created_at"=>2013-12-06 10:53:58 UTC}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc5247580250b00000f", "template_dependencies.en"=>{"$in"=>["52a1acc6247580250b000012"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52a1acc6247580250b000012"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["52a1acc6247580250b000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc5247580250b00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc5247580250b00000f", "_id"=>{"$ne"=>"52a1acc6247580250b000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc5247580250b00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc6247580250b000013", "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"=>"52a1acc5247580250b00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:53:58 UTC, "created_at"=>2013-12-06 10:53:58 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc5247580250b00000f", "template_dependencies.en"=>{"$in"=>["52a1acc6247580250b000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.2381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc6247580250b000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acc6247580250b000013"]}} 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_content_types selector={"site_id"=>"52a1acc5247580250b00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5352ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acc6247580250b000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acc5247580250b00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acc6247580250b000015", "updated_at"=>2013-12-06 10:53:58 UTC, "created_at"=>2013-12-06 10:53:58 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acc6247580250b000015", "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.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acc6247580250b000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc6247580250b000014"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"52a1acc6247580250b000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc6247580250b000014"]}}} (0.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acc6247580250b000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acc6247580250b000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acc6247580250b000014", "content_type_id"=>"52a1acc6247580250b000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52a1acc5247580250b00000f", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:53:58 UTC, "created_at"=>2013-12-06 10:53:58 UTC}] flags=[] (0.3448ms) Started GET "/" for 127.0.0.1 at 2013-12-06 11:53:59 +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.7091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5920ms) Rendered text template (0.0ms) Completed 200 OK in 13.7ms (Views: 7.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-12-06 11:53:59 +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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "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.5469ms) Rendered text template (0.0ms) Completed 200 OK in 493.4ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2013-12-06 11:53:59 +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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "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.6618ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2013-12-06 11:53:59 +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.7169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6449ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-12-06 11:53:59 +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.8109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc0247580250b000002", "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.8073ms) Rendered text template (0.0ms) Completed 200 OK in 461.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.6061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (13.7219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (8.5151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (7.2711ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (5.9721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.3990ms) 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.3572ms) 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.8638ms) 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.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52a1acc8247580250b000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d0ecd13b620a7bd86d15aebddfebbdffdd4ebd33", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Yni1hHzapMzHP1UFr3zB", "api_key"=>"f96902153d226dd6e0059e54b407995bc2b96873", "updated_at"=>2013-12-06 10:54:00 UTC, "created_at"=>2013-12-06 10:54:00 UTC}] flags=[] (0.1359ms) 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.1580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acc8247580250b000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-12-06 10:53:51 UTC, "updated_at"=>2013-12-06 10:54:00 UTC, "memberships"=>[{"_id"=>"52a1acc8247580250b000019", "role"=>"admin", "account_id"=>"52a1acc8247580250b000017"}]}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc8247580250b000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8173ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc8247580250b000018", "_id"=>{"$ne"=>"52a1acc8247580250b00001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc8247580250b00001a", "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"=>"52a1acc8247580250b000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:00 UTC, "created_at"=>2013-12-06 10:54:00 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1acc8247580250b00001a"]}}, "$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"=>"52a1acc8247580250b00001a"}, "$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"=>["52a1acc8247580250b00001a"]}} 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={"site_id"=>"52a1acc8247580250b000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"52a1acc8247580250b000018", "_id"=>{"$ne"=>"52a1acc9247580250b00001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acc8247580250b000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6053ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acc9247580250b00001b", "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"=>"52a1acc8247580250b000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:01 UTC, "created_at"=>2013-12-06 10:54:01 UTC}] flags=[] (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1acc9247580250b00001b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc9247580250b00001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acc9247580250b00001b"]}} 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=locomotive_content_types selector={"site_id"=>"52a1acc8247580250b000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acc9247580250b00001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acc8247580250b000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acc9247580250b00001d", "updated_at"=>2013-12-06 10:54:01 UTC, "created_at"=>2013-12-06 10:54:01 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acc9247580250b00001d", "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.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acc9247580250b00001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52a1acc9247580250b00001e", "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", "updated_at"=>2013-12-06 10:54:01 UTC, "created_at"=>2013-12-06 10:54:01 UTC}}} flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acc9247580250b00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}} 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={"content_type_id"=>"52a1acc9247580250b00001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}}} (0.3891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acc9247580250b00001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acc9247580250b00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acc9247580250b00001c", "content_type_id"=>"52a1acc9247580250b00001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52a1acc8247580250b000018", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:01 UTC, "created_at"=>2013-12-06 10:54:01 UTC}] flags=[] (0.3572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acca247580250b000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5686ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acc9247580250b00001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}}} (0.3879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}}} (0.3421ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acca247580250b000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acc9247580250b00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acc9247580250b00001c", "content_type_id"=>"52a1acc9247580250b00001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52a1acc8247580250b000018", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:02 UTC, "created_at"=>2013-12-06 10:54:02 UTC}] flags=[] (0.2108ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018", "_id"=>{"$ne"=>"52a1acca247580250b000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"52a1acc8247580250b00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acca247580250b000021", "parent_ids"=>["52a1acc8247580250b00001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:02 UTC, "created_at"=>2013-12-06 10:54:02 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1acca247580250b000021"]}}, "$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"=>"52a1acca247580250b000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4463ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acca247580250b000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) 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.8903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018", "_id"=>{"$ne"=>"52a1accb247580250b000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acc8247580250b00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1accb247580250b000022", "parent_ids"=>["52a1acc8247580250b00001a"], "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"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:03 UTC, "created_at"=>2013-12-06 10:54:03 UTC}] flags=[] (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1accb247580250b000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1accb247580250b000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1accb247580250b000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4790ms) 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.8512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018", "_id"=>{"$ne"=>"52a1accb247580250b000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018"}, "$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"=>"52a1acc8247580250b00001a"}]}]}, "$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"=>"52a1accb247580250b000023", "parent_ids"=>["52a1acc8247580250b00001a"], "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"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:03 UTC, "created_at"=>2013-12-06 10:54:03 UTC}] flags=[] (0.3338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1accb247580250b000023"]}}, "$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"=>"52a1accb247580250b000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4582ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1accb247580250b000023"]}} 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_pages selector={"$query"=>{"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_pages selector={"site_id"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018", "_id"=>{"$ne"=>"52a1accb247580250b000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acc8247580250b00001a", "site_id"=>"52a1acc8247580250b000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acc8247580250b00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1accb247580250b000024", "parent_ids"=>["52a1acc8247580250b00001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52a1acc8247580250b000018", "parent_id"=>"52a1acc8247580250b00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:03 UTC, "created_at"=>2013-12-06 10:54:03 UTC}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1accb247580250b000024"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1accb247580250b000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1accb247580250b000024"]}} 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_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52a1acc8247580250b000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52a1acc8247580250b00001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-12-06 10:54:04 UTC}} flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "template_dependencies.en"=>{"$in"=>["52a1acc8247580250b00001a"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"52a1accc247580250b000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-12-06 10:53:51 UTC, "updated_at"=>2013-12-06 10:54:04 UTC, "memberships"=>[{"_id"=>"52a1accc247580250b000026", "role"=>"admin", "account_id"=>"52a1acc8247580250b000017"}]}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1accc247580250b000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1accc247580250b000025", "_id"=>{"$ne"=>"52a1accc247580250b000027"}, "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"=>"52a1accc247580250b000027", "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"=>"52a1accc247580250b000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:04 UTC, "created_at"=>2013-12-06 10:54:04 UTC}] flags=[] (0.3009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1accc247580250b000025", "template_dependencies.en"=>{"$in"=>["52a1accc247580250b000027"]}}, "$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"=>"52a1accc247580250b000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1accc247580250b000027"]}} 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"=>"52a1accc247580250b000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1accc247580250b000025", "_id"=>{"$ne"=>"52a1accd247580250b000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1accc247580250b000025"}, "$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"=>"52a1accd247580250b000028", "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"=>"52a1accc247580250b000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:05 UTC, "created_at"=>2013-12-06 10:54:05 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1accc247580250b000025", "template_dependencies.en"=>{"$in"=>["52a1accd247580250b000028"]}}, "$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"=>"52a1accd247580250b000028"}, "$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"=>["52a1accd247580250b000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1accc247580250b000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"52a1accc247580250b000025", "_id"=>{"$ne"=>"52a1accd247580250b000029"}, "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"=>"52a1accc247580250b000025"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1accd247580250b000029", "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"=>"52a1accc247580250b000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:05 UTC, "created_at"=>2013-12-06 10:54:05 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1accc247580250b000025", "template_dependencies.en"=>{"$in"=>["52a1accd247580250b000029"]}}, "$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"=>"52a1accd247580250b000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1accd247580250b000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1accc247580250b000025", "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"=>"52a1acce247580250b00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1accc247580250b000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acce247580250b00002b", "updated_at"=>2013-12-06 10:54:06 UTC, "created_at"=>2013-12-06 10:54:06 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acce247580250b00002b", "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.2687ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acce247580250b00002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acce247580250b00002a"]}} 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"=>"52a1acce247580250b00002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4067ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acce247580250b00002a"]}}} (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acce247580250b00002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acce247580250b00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acce247580250b00002a", "content_type_id"=>"52a1acce247580250b00002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52a1accc247580250b000025", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:06 UTC, "created_at"=>2013-12-06 10:54:06 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acc9247580250b00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}} 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={"_id"=>{"$ne"=>"52a1acca247580250b000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4697ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acc9247580250b00001c"} update={"$set"=>{"updated_at"=>2013-12-06 10:54:06 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acc9247580250b00001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1121ms) Started GET "/" for 127.0.0.1 at 2013-12-06 11:54:06 +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"=>"52a1acc8247580250b000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5710ms) 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 2013-12-06 11:54:06 +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.7989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "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.6547ms) Rendered text template (0.0ms) Completed 200 OK in 459.9ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acc9247580250b00001c"} 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"=>"52a1acc9247580250b00001c", "updated_at"=>{"$lt"=>2013-12-06 10:54:06 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acc9247580250b00001c"]}} flags=[:slave_ok] limit=0 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"=>"52a1acc8247580250b000018"}, "$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_content_types selector={"$query"=>{"_id"=>"52a1acc9247580250b00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52a1acc9247580250b00001f"} update={"$set"=>{"updated_at"=>2013-12-06 10:54:07 UTC}} flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52a1acc8247580250b000018"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"52a1acc9247580250b00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"52a1acca247580250b000020"} update={"$set"=>{"updated_at"=>2013-12-06 10:54:07 UTC}} flags=[] (0.1428ms) Started GET "/en/" for 127.0.0.1 at 2013-12-06 11:54:08 +0100 Started GET "/en" for 127.0.0.1 at 2013-12-06 11:54:08 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"52a1acc8247580250b000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8199ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-12-06 11:54: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.6528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acc8247580250b000018", "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.7448ms) Rendered text template (0.0ms) Completed 200 OK in 462.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.6111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4892ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.0871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0691ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9620ms) 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.6051ms) 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.5770ms) 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.8988ms) 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.5231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52a1acd62475809ed7000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"87905728991889f2f681480b399c0ad011180bcd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"BfWy4piDypVYZ2pr9NKL", "api_key"=>"2d87e3302a1169cb561ba74391167aac04466ac1", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2179ms) 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.8068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acd62475809ed7000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-12-06 10:54:14 UTC, "updated_at"=>2013-12-06 10:54:14 UTC, "memberships"=>[{"_id"=>"52a1acd62475809ed7000003", "role"=>"admin", "account_id"=>"52a1acd62475809ed7000001"}]}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000002", "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"=>"52a1acd62475809ed7000002", "_id"=>{"$ne"=>"52a1acd62475809ed7000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52a1acd62475809ed7000004", "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"=>"52a1acd62475809ed7000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.3312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000004"}, "$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"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000004"]}}, "$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"=>["52a1acd62475809ed7000004"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.0389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed7000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acd62475809ed7000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd62475809ed7000002", "_id"=>{"$ne"=>"52a1acd62475809ed7000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd62475809ed7000002"}, "$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"=>"52a1acd62475809ed7000006", "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"=>"52a1acd62475809ed7000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000006"]}}, "$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"=>"52a1acd62475809ed7000006"}, "$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"=>["52a1acd62475809ed7000006"]}} 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_content_types selector={"site_id"=>"52a1acd62475809ed7000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8497ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acd62475809ed7000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acd62475809ed7000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acd62475809ed7000008", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acd62475809ed7000008", "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.2408ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acd62475809ed7000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52a1acd62475809ed7000009", "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", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acd62475809ed7000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000007"]}}} (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acd62475809ed700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acd62475809ed7000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000007", "content_type_id"=>"52a1acd62475809ed7000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52a1acd62475809ed7000002", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.3724ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000007", "_original_id"=>"52a1acd62475809ed700000a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed700000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52a1acd62475809ed7000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000007", "_original_id"=>"52a1acd62475809ed700000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acd62475809ed7000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000007"]}}} (0.3779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000007"]}}} (0.3161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acd62475809ed700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acd62475809ed7000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000007", "content_type_id"=>"52a1acd62475809ed7000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52a1acd62475809ed7000002", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000007", "_original_id"=>"52a1acd62475809ed700000c"}, "$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_models documents=[{"_id"=>"52a1acd62475809ed700000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52a1acd62475809ed7000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000007", "_original_id"=>"52a1acd62475809ed700000c", "_keywords"=>["hidden"]}] flags=[] (0.1557ms) 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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "$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"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002", "_id"=>{"$ne"=>"52a1acd62475809ed700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd62475809ed700000e", "parent_ids"=>["52a1acd62475809ed7000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed700000e"]}}, "$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"=>"52a1acd62475809ed700000e"}, "$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"=>["52a1acd62475809ed700000e"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed700000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed700000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52a1acd62475809ed7000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed700000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] 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.5882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "$or"=>[{"slug.en"=>"unpublished-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"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002", "_id"=>{"$ne"=>"52a1acd62475809ed7000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000004"}]}]}, "$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"=>"52a1acd62475809ed7000010", "parent_ids"=>["52a1acd62475809ed7000004"], "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"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000010"}, "$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"=>["52a1acd62475809ed7000010"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002", "_id"=>{"$ne"=>"52a1acd62475809ed7000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000004"}]}]}, "$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"=>"52a1acd62475809ed7000011", "parent_ids"=>["52a1acd62475809ed7000004"], "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"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000011"}, "$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"=>["52a1acd62475809ed7000011"]}} 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.5202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002", "_id"=>{"$ne"=>"52a1acd62475809ed7000012"}, "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"=>"52a1acd62475809ed7000004", "site_id"=>"52a1acd62475809ed7000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd62475809ed7000012", "parent_ids"=>["52a1acd62475809ed7000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52a1acd62475809ed7000002", "parent_id"=>"52a1acd62475809ed7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000012"]}}, "$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"=>"52a1acd62475809ed7000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acd62475809ed7000012"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed7000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52a1acd62475809ed7000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000012", "_keywords"=>["en:search"]}] flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52a1acd62475809ed7000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52a1acd62475809ed7000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-12-06 10:54:14 UTC}} flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000004"}, "$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=active_search_mongoid_models selector={"_id"=>"52a1acd62475809ed7000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acd62475809ed7000002", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1192ms) 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.4947ms) 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.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acd62475809ed7000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-12-06 10:54:14 UTC, "updated_at"=>2013-12-06 10:54:14 UTC, "memberships"=>[{"_id"=>"52a1acd62475809ed7000015", "role"=>"admin", "account_id"=>"52a1acd62475809ed7000001"}]}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd62475809ed7000014", "_id"=>{"$ne"=>"52a1acd62475809ed7000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd62475809ed7000016", "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"=>"52a1acd62475809ed7000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000014", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000016"}, "$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"=>["52a1acd62475809ed7000016"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3092ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed7000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acd62475809ed7000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000014", "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"=>"52a1acd62475809ed7000014", "_id"=>{"$ne"=>"52a1acd62475809ed7000018"}, "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"=>nil, "site_id"=>"52a1acd62475809ed7000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52a1acd62475809ed7000018", "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"=>"52a1acd62475809ed7000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000014", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000018"]}}, "$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"=>"52a1acd62475809ed7000018"}, "$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"=>["52a1acd62475809ed7000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd62475809ed7000014", "_id"=>{"$ne"=>"52a1acd62475809ed7000019"}, "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"=>"52a1acd62475809ed7000014"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd62475809ed7000019", "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"=>"52a1acd62475809ed7000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000014", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000019"}, "$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"=>["52a1acd62475809ed7000019"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed700001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52a1acd62475809ed7000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acd62475809ed7000014", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"52a1acd62475809ed700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acd62475809ed7000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acd62475809ed700001c", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acd62475809ed700001c", "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.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed700001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acd62475809ed700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed700001b"]}}} (0.5362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acd62475809ed700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acd62475809ed700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acd62475809ed700001b", "content_type_id"=>"52a1acd62475809ed700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52a1acd62475809ed7000014", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed700001b", "_original_id"=>"52a1acd62475809ed700001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed700001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52a1acd62475809ed7000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed700001b", "_original_id"=>"52a1acd62475809ed700001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1259ms) Started GET "/" for 127.0.0.1 at 2013-12-06 11:54:14 +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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "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 12.6ms (Views: 7.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2013-12-06 11:54:14 +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.8898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "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.8268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52a1acd62475809ed7000002", "_keywords"=>{"$in"=>["findable", "en:findable"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5267ms) Rendered text template (0.0ms) Completed 200 OK in 17.7ms (Views: 0.7ms) Started GET "/findable" for 127.0.0.1 at 2013-12-06 11:54:14 +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.7610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "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.6230ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2013-12-06 11:54:14 +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.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5171ms) Rendered text template (0.0ms) Completed 200 OK in 3.8ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2013-12-06 11:54:14 +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.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000002", "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.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52a1acd62475809ed7000002", "_keywords"=>{"$in"=>["not", "found", "en:not", "en:found"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.5801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1492ms) 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"} (0.9689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (3.1908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9511ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8659ms) 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.6700ms) 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.3359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52a1acd62475809ed700001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"60f771a929353aa4a2d366af5af8e22009090f0b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"vJniP7Qb7qX19sAdG4RP", "api_key"=>"3d879384d796a337b90a67dcbd3734da58ade4f2", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1390ms) 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.3829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acd62475809ed7000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-12-06 10:54:14 UTC, "updated_at"=>2013-12-06 10:54:14 UTC, "memberships"=>[{"_id"=>"52a1acd62475809ed7000021", "role"=>"admin", "account_id"=>"52a1acd62475809ed700001f"}]}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"52a1acd62475809ed7000020", "_id"=>{"$ne"=>"52a1acd62475809ed7000022"}, "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"=>"52a1acd62475809ed7000022", "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"=>"52a1acd62475809ed7000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000022"]}}, "$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"=>"52a1acd62475809ed7000022"}, "$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"=>["52a1acd62475809ed7000022"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed7000023", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acd62475809ed7000020", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000022", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000020", "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"=>"52a1acd62475809ed7000020", "_id"=>{"$ne"=>"52a1acd62475809ed7000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd62475809ed7000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd62475809ed7000024", "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"=>"52a1acd62475809ed7000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000024"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000024"}, "$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"=>["52a1acd62475809ed7000024"]}} 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"=>"52a1acd62475809ed7000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acd62475809ed7000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acd62475809ed7000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acd62475809ed7000026", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acd62475809ed7000026", "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.1938ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acd62475809ed7000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52a1acd62475809ed7000027", "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", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}}} flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed7000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acd62475809ed7000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}}} (0.4799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acd62475809ed7000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acd62475809ed7000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "content_type_id"=>"52a1acd62475809ed7000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52a1acd62475809ed7000020", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "_original_id"=>"52a1acd62475809ed7000028"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed7000029", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52a1acd62475809ed7000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "_original_id"=>"52a1acd62475809ed7000028", "_keywords"=>["findable", "entry"]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed700002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}} 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={"content_type_id"=>"52a1acd62475809ed7000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}}} (0.3622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}}} (0.4320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acd62475809ed700002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acd62475809ed7000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "content_type_id"=>"52a1acd62475809ed7000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52a1acd62475809ed7000020", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "_original_id"=>"52a1acd62475809ed700002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed700002b", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52a1acd62475809ed7000020", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "_original_id"=>"52a1acd62475809ed700002a", "_keywords"=>["hidden"]}] 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.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020", "_id"=>{"$ne"=>"52a1acd62475809ed700002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000022"}]}]}, "$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"=>"52a1acd62475809ed700002c", "parent_ids"=>["52a1acd62475809ed7000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed700002c"]}}, "$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"=>"52a1acd62475809ed700002c"}, "$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"=>["52a1acd62475809ed700002c"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed700002c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed700002d", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52a1acd62475809ed7000020", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed700002c", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1678ms) 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.5558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "$or"=>[{"slug.en"=>"unpublished-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"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020", "_id"=>{"$ne"=>"52a1acd62475809ed700002e"}, "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"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52a1acd62475809ed700002e", "parent_ids"=>["52a1acd62475809ed7000022"], "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"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed700002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed700002e"}, "$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"=>["52a1acd62475809ed700002e"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "$or"=>[{"slug.en"=>"seems-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"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020", "_id"=>{"$ne"=>"52a1acd62475809ed700002f"}, "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"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000022"}]}]}, "$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"=>"52a1acd62475809ed700002f", "parent_ids"=>["52a1acd62475809ed7000022"], "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"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed700002f"]}}, "$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"=>"52a1acd62475809ed700002f"}, "$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"=>["52a1acd62475809ed700002f"]}} 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.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020", "_id"=>{"$ne"=>"52a1acd62475809ed7000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd62475809ed7000022", "site_id"=>"52a1acd62475809ed7000020"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acd62475809ed7000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd62475809ed7000030", "parent_ids"=>["52a1acd62475809ed7000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52a1acd62475809ed7000020", "parent_id"=>"52a1acd62475809ed7000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:14 UTC, "created_at"=>2013-12-06 10:54:14 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000030"]}}, "$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"=>"52a1acd62475809ed7000030"}, "$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"=>["52a1acd62475809ed7000030"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000030"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd62475809ed7000031", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52a1acd62475809ed7000020", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000030", "_keywords"=>["en:search"]}] flags=[] (0.1202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "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_sites selector={"$query"=>{"_id"=>"52a1acd62475809ed7000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52a1acd62475809ed7000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-12-06 10:54:14 UTC}} flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "template_dependencies.en"=>{"$in"=>["52a1acd62475809ed7000022"]}}, "$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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd62475809ed7000022"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52a1acd62475809ed7000023"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acd62475809ed7000020", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1009ms) 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.2902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acd72475809ed7000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-12-06 10:54:14 UTC, "updated_at"=>2013-12-06 10:54:15 UTC, "memberships"=>[{"_id"=>"52a1acd72475809ed7000033", "role"=>"admin", "account_id"=>"52a1acd62475809ed700001f"}]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd72475809ed7000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd72475809ed7000032", "_id"=>{"$ne"=>"52a1acd72475809ed7000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd72475809ed7000034", "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"=>"52a1acd72475809ed7000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:15 UTC, "created_at"=>2013-12-06 10:54:15 UTC}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd72475809ed7000032", "template_dependencies.en"=>{"$in"=>["52a1acd72475809ed7000034"]}}, "$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"=>"52a1acd72475809ed7000034"}, "$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"=>["52a1acd72475809ed7000034"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd72475809ed7000034"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3483ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd72475809ed7000035", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acd72475809ed7000032", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd72475809ed7000034", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acd72475809ed7000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd72475809ed7000032", "_id"=>{"$ne"=>"52a1acd72475809ed7000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"52a1acd72475809ed7000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52a1acd72475809ed7000036", "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"=>"52a1acd72475809ed7000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:15 UTC, "created_at"=>2013-12-06 10:54:15 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd72475809ed7000032", "template_dependencies.en"=>{"$in"=>["52a1acd72475809ed7000036"]}}, "$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"=>"52a1acd72475809ed7000036"}, "$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"=>["52a1acd72475809ed7000036"]}} 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"=>"52a1acd72475809ed7000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acd72475809ed7000032", "_id"=>{"$ne"=>"52a1acd72475809ed7000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"52a1acd72475809ed7000032"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acd72475809ed7000037", "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"=>"52a1acd72475809ed7000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:15 UTC, "created_at"=>2013-12-06 10:54:15 UTC}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd72475809ed7000032", "template_dependencies.en"=>{"$in"=>["52a1acd72475809ed7000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acd72475809ed7000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acd72475809ed7000037"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd72475809ed7000037"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acd72475809ed7000038", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52a1acd72475809ed7000032", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acd72475809ed7000037", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acd72475809ed7000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acd72475809ed7000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acd72475809ed7000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acd72475809ed700003a", "updated_at"=>2013-12-06 10:54:15 UTC, "created_at"=>2013-12-06 10:54:15 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acd72475809ed700003a", "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.1893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd72475809ed700003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd72475809ed7000039"]}} 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"=>"52a1acd72475809ed7000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd72475809ed7000039"]}}} (0.4981ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acd72475809ed700003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acd72475809ed7000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acd72475809ed7000039", "content_type_id"=>"52a1acd72475809ed7000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52a1acd72475809ed7000032", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:15 UTC, "created_at"=>2013-12-06 10:54:15 UTC}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd72475809ed7000039", "_original_id"=>"52a1acd72475809ed700003b"}, "$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_models documents=[{"_id"=>"52a1acd72475809ed700003c", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52a1acd72475809ed7000032", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acd72475809ed7000039", "_original_id"=>"52a1acd72475809ed700003b", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed7000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acd62475809ed700002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4299ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acd62475809ed7000025"} update={"$set"=>{"updated_at"=>2013-12-06 10:54:15 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acd62475809ed7000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2120ms) Started GET "/" for 127.0.0.1 at 2013-12-06 11:54:15 +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.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2013-12-06 11:54:15 +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"=>"52a1acd62475809ed7000020", "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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52a1acd62475809ed7000020", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5097ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acd62475809ed7000025"} 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"=>"52a1acd62475809ed7000025", "updated_at"=>{"$lt"=>2013-12-06 10:54:15 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acd62475809ed7000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52a1acd62475809ed7000020"}, "$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_content_types selector={"$query"=>{"_id"=>"52a1acd62475809ed7000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4916ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52a1acd62475809ed7000028"} update={"$set"=>{"updated_at"=>2013-12-06 10:54:15 UTC}} flags=[] (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "_original_id"=>"52a1acd62475809ed7000028"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5510ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52a1acd62475809ed7000029"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52a1acd62475809ed7000020", :content_type_slug=>"examples"}, "_keywords"=>["findable", "entry", "some", "stuff"]}} flags=[] (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"52a1acd62475809ed7000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"52a1acd62475809ed7000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"52a1acd62475809ed700002a"} update={"$set"=>{"updated_at"=>2013-12-06 10:54:15 UTC}} flags=[] (0.1218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acd62475809ed7000025", "_original_id"=>"52a1acd62475809ed700002a"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52a1acd62475809ed700002b"} update={"$set"=>{"_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52a1acd62475809ed7000020", :content_type_slug=>"examples"}, "_keywords"=>["hidden", "not", "findable"]}} flags=[] (0.1087ms) Started GET "/en/" for 127.0.0.1 at 2013-12-06 11:54:15 +0100 Started GET "/en" for 127.0.0.1 at 2013-12-06 11:54:15 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"52a1acd62475809ed7000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) 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 2013-12-06 11:54:15 +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.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acd62475809ed7000020", "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.7119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"_stored.site_id"=>"52a1acd62475809ed7000020", "_keywords"=>{"$in"=>["stuff", "en:stuff"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (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.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.4840ms) 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.4160ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0309ms) 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.5040ms) 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.5670ms) 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.9108ms) 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.5558ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52a1acdb247580fb67000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"290ed9ec8cb0fa26e5f68bc40dad3020711f209b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"eiNeo4qUV7Rzp61fBCQr", "api_key"=>"e0e94c6c24e4bcc320506ff3a0a769fce9b615ae", "updated_at"=>2013-12-06 10:54:19 UTC, "created_at"=>2013-12-06 10:54:19 UTC}] flags=[] (0.1881ms) 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.8390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acdc247580fb67000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-12-06 10:54:19 UTC, "updated_at"=>2013-12-06 10:54:20 UTC, "memberships"=>[{"_id"=>"52a1acdc247580fb67000003", "role"=>"admin", "account_id"=>"52a1acdb247580fb67000001"}]}] flags=[] (0.2213ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acdc247580fb67000002", "_id"=>{"$ne"=>"52a1acdc247580fb67000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52a1acdc247580fb67000004", "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"=>"52a1acdc247580fb67000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdc247580fb67000004"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6478ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb67000005", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acdc247580fb67000002", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000004", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acdc247580fb67000002", "_id"=>{"$ne"=>"52a1acdc247580fb67000006"}, "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"=>"52a1acdc247580fb67000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdc247580fb67000006", "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"=>"52a1acdc247580fb67000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000006"}, "$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"=>["52a1acdc247580fb67000006"]}} 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_content_types selector={"site_id"=>"52a1acdc247580fb67000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acdc247580fb67000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acdc247580fb67000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acdc247580fb67000008", "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acdc247580fb67000008", "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.2959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acdc247580fb67000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52a1acdc247580fb67000009", "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", "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}}} flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acdc247580fb6700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb67000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acdc247580fb67000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb67000007"]}}} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acdc247580fb6700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acdc247580fb67000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acdc247580fb67000007", "content_type_id"=>"52a1acdc247580fb67000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52a1acdc247580fb67000002", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acdc247580fb67000007", "_original_id"=>"52a1acdc247580fb6700000a"}, "$orderby"=>{:_id=>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=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb6700000b", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52a1acdc247580fb67000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acdc247580fb67000007", "_original_id"=>"52a1acdc247580fb6700000a", "_keywords"=>["findable", "entry"]}] flags=[] (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acdc247580fb6700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb67000007"]}} 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"=>"52a1acdc247580fb67000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb67000007"]}}} (0.3679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb67000007"]}}} (0.3448ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb67000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acdc247580fb6700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acdc247580fb67000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acdc247580fb67000007", "content_type_id"=>"52a1acdc247580fb67000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52a1acdc247580fb67000002", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acdc247580fb67000007", "_original_id"=>"52a1acdc247580fb6700000c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3448ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb6700000d", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52a1acdc247580fb67000002", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acdc247580fb67000007", "_original_id"=>"52a1acdc247580fb6700000c", "_keywords"=>["hidden"]}] flags=[] (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.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "$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"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002", "_id"=>{"$ne"=>"52a1acdc247580fb6700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acdc247580fb67000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdc247580fb6700000e", "parent_ids"=>["52a1acdc247580fb67000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb6700000e"]}}, "$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"=>"52a1acdc247580fb6700000e"}, "$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"=>["52a1acdc247580fb6700000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb6700000e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb6700000f", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52a1acdc247580fb67000002", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb6700000e", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1678ms) 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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002", "_id"=>{"$ne"=>"52a1acdc247580fb67000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acdc247580fb67000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdc247580fb67000010", "parent_ids"=>["52a1acdc247580fb67000004"], "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"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000010"}, "$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"=>["52a1acdc247580fb67000010"]}} 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.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "$or"=>[{"slug.en"=>"seems-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"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002", "_id"=>{"$ne"=>"52a1acdc247580fb67000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7553ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acdc247580fb67000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdc247580fb67000011", "parent_ids"=>["52a1acdc247580fb67000004"], "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"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.2558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000011"]}}, "$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"=>"52a1acdc247580fb67000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdc247580fb67000011"]}} 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.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002", "_id"=>{"$ne"=>"52a1acdc247580fb67000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9673ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000004", "site_id"=>"52a1acdc247580fb67000002"}, "$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"=>"52a1acdc247580fb67000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5193ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdc247580fb67000012", "parent_ids"=>["52a1acdc247580fb67000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52a1acdc247580fb67000002", "parent_id"=>"52a1acdc247580fb67000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000012"]}}, "$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"=>"52a1acdc247580fb67000012"}, "$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"=>["52a1acdc247580fb67000012"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000012"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb67000013", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52a1acdc247580fb67000002", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000012", "_keywords"=>["en:search"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "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_sites selector={"$query"=>{"_id"=>"52a1acdc247580fb67000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4222ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52a1acdc247580fb67000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-12-06 10:54:20 UTC}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000004"]}}, "$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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000004"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52a1acdc247580fb67000005"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acdc247580fb67000002", :fullpath=>{"en"=>"index"}}}} 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.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.3138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acdc247580fb67000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-12-06 10:54:19 UTC, "updated_at"=>2013-12-06 10:54:20 UTC, "memberships"=>[{"_id"=>"52a1acdc247580fb67000015", "role"=>"admin", "account_id"=>"52a1acdb247580fb67000001"}]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"52a1acdc247580fb67000014", "_id"=>{"$ne"=>"52a1acdc247580fb67000016"}, "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"=>"52a1acdc247580fb67000016", "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"=>"52a1acdc247580fb67000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000014", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000016"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"52a1acdc247580fb67000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdc247580fb67000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000016"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3393ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb67000017", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acdc247580fb67000014", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000016", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acdc247580fb67000014", "_id"=>{"$ne"=>"52a1acdc247580fb67000018"}, "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"=>"52a1acdc247580fb67000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52a1acdc247580fb67000018", "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"=>"52a1acdc247580fb67000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000014", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdc247580fb67000018"}, "$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"=>["52a1acdc247580fb67000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdc247580fb67000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"52a1acdc247580fb67000014", "_id"=>{"$ne"=>"52a1acdc247580fb67000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"52a1acdc247580fb67000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdc247580fb67000019", "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"=>"52a1acdc247580fb67000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000014", "template_dependencies.en"=>{"$in"=>["52a1acdc247580fb67000019"]}}, "$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"=>"52a1acdc247580fb67000019"}, "$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"=>["52a1acdc247580fb67000019"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000019"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb6700001a", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52a1acdc247580fb67000014", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdc247580fb67000019", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acdc247580fb67000014", "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"=>"52a1acdc247580fb6700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acdc247580fb67000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acdc247580fb6700001c", "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acdc247580fb6700001c", "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.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acdc247580fb6700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb6700001b"]}} 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_content_entries selector={"content_type_id"=>"52a1acdc247580fb6700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdc247580fb6700001b"]}}} (0.4342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acdc247580fb6700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acdc247580fb6700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acdc247580fb6700001b", "content_type_id"=>"52a1acdc247580fb6700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52a1acdc247580fb67000014", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:20 UTC, "created_at"=>2013-12-06 10:54:20 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acdc247580fb6700001b", "_original_id"=>"52a1acdc247580fb6700001d"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdc247580fb6700001e", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52a1acdc247580fb67000014", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acdc247580fb6700001b", "_original_id"=>"52a1acdc247580fb6700001d", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1171ms) Started GET "/locomotive" for 127.0.0.1 at 2013-12-06 11:54:21 +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.7963ms) 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.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["52a1acdb247580fb67000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5622ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.0ms) Completed 200 OK in 43.6ms (Views: 37.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2013-12-06 11:54:21 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (6ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2013-12-06 11:54:21 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (10ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2013-12-06 11:54:21 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-12-06 11:54: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.6950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["52a1acdb247580fb67000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"52a1acdb247580fb67000001"} update={"$set"=>{"remember_created_at"=>2013-12-06 10:54:21 UTC, "updated_at"=>2013-12-06 10:54:21 UTC}} flags=[] (0.1588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"52a1acdb247580fb67000001"} update={"$set"=>{"last_sign_in_at"=>2013-12-06 10:54:21 UTC, "current_sign_in_at"=>2013-12-06 10:54:21 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-12-06 10:54:21 UTC}} flags=[] (0.1621ms) 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 2013-12-06 11:54: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.8438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"52a1acdb247580fb67000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["52a1acdb247580fb67000001"]}} 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_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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, "target_klass_name"=>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.3912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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, "target_klass_name"=>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.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"52a1acdc247580fb67000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6590ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (24.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (5.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (11.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"52a1acdb247580fb67000001", :role=>:admin}}}} (0.5529ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (16.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"52a1acdb247580fb67000001"}} (0.5870ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/global_actions/show.html.haml (3.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"52a1acdb247580fb67000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5922ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (4.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (25.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (1.6ms) Completed 200 OK in 138.6ms (Views: 118.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2013-12-06 11:54:22 +0100 Served asset /locomotive.css - 200 OK (41ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2013-12-06 11:54:22 +0100 Served asset /locomotive.js - 200 OK (121ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2013-12-06 11:54:22 +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 2013-12-06 11:54:22 +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 2013-12-06 11:54:22 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2013-12-06 11:54:22 +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.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"52a1acdb247580fb67000001"}, "$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"=>["52a1acdb247580fb67000001"]}} 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_pages selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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, "target_klass_name"=>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.3499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acdc247580fb67000002"}, "$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.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"52a1acdc247580fb67000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6800ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (14.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acdc247580fb67000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7889ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_select_templates.html.haml (3.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_form.html.haml (60.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acdc247580fb67000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/_form.html.haml (82.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (3.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (111.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"52a1acdb247580fb67000001", :role=>:admin}}}} (0.6163ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"52a1acdb247580fb67000001"}} (0.3541ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"52a1acdb247580fb67000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 146.0ms (Views: 132.4ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2013-12-06 11:54:22 +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.8547ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (1.0788ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8268ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3387ms) 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.6473ms) 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.7322ms) 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.3831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"52a1acde247580fb67000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4864154d620e162d8c1ff353ed3bd7b2cfa69de8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"eZ9ZQgQuwGisBcrWesxs", "api_key"=>"3b2f4674b2b517af94d9bca6f1d49d4d44d6268a", "updated_at"=>2013-12-06 10:54:22 UTC, "created_at"=>2013-12-06 10:54:22 UTC}] flags=[] (0.1700ms) 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.9663ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acde247580fb67000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2013-12-06 10:54:19 UTC, "updated_at"=>2013-12-06 10:54:22 UTC, "memberships"=>[{"_id"=>"52a1acde247580fb67000022", "role"=>"admin", "account_id"=>"52a1acde247580fb67000020"}]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acde247580fb67000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acde247580fb67000021", "_id"=>{"$ne"=>"52a1acde247580fb67000023"}, "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"=>"52a1acde247580fb67000023", "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"=>"52a1acde247580fb67000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:22 UTC, "created_at"=>2013-12-06 10:54:22 UTC}] flags=[] (0.2217ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acde247580fb67000023"]}}, "$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"=>"52a1acde247580fb67000023"}, "$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"=>["52a1acde247580fb67000023"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acde247580fb67000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4950ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acde247580fb67000024", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acde247580fb67000021", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acde247580fb67000023", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acde247580fb67000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acde247580fb67000021", "_id"=>{"$ne"=>"52a1acde247580fb67000025"}, "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"=>"52a1acde247580fb67000021"}, "$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"=>"52a1acde247580fb67000025", "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"=>"52a1acde247580fb67000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:22 UTC, "created_at"=>2013-12-06 10:54:22 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acde247580fb67000025"]}}, "$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"=>"52a1acde247580fb67000025"}, "$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"=>["52a1acde247580fb67000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acde247580fb67000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6897ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"52a1acde247580fb67000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acde247580fb67000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acde247580fb67000027", "updated_at"=>2013-12-06 10:54:22 UTC, "created_at"=>2013-12-06 10:54:22 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acde247580fb67000027", "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.2501ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"52a1acde247580fb67000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"52a1acde247580fb67000028", "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", "updated_at"=>2013-12-06 10:54:22 UTC, "created_at"=>2013-12-06 10:54:22 UTC}}} flags=[] (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acde247580fb67000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acde247580fb67000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acde247580fb67000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5403ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acde247580fb67000026"]}}} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acde247580fb67000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acde247580fb67000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acde247580fb67000026", "content_type_id"=>"52a1acde247580fb67000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"52a1acde247580fb67000021", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:22 UTC, "created_at"=>2013-12-06 10:54:22 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acde247580fb67000026", "_original_id"=>"52a1acde247580fb67000029"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acde247580fb6700002a", "_stored"=>{:_slug=>{"en"=>"findable-entry"}, "name"=>"Findable entry", :site_id=>"52a1acde247580fb67000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acde247580fb67000026", "_original_id"=>"52a1acde247580fb67000029", "_keywords"=>["findable", "entry"]}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"52a1acde247580fb6700002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acde247580fb67000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"52a1acde247580fb67000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acde247580fb67000026"]}}} (0.5760ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acde247580fb67000026"]}}} (0.3300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acde247580fb67000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5538ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acde247580fb6700002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acde247580fb67000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acde247580fb67000026", "content_type_id"=>"52a1acde247580fb67000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"52a1acde247580fb67000021", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.2677ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acde247580fb67000026", "_original_id"=>"52a1acde247580fb6700002b"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdf247580fb6700002c", "_stored"=>{:_slug=>{"en"=>"hidden"}, "name"=>"Hidden", :site_id=>"52a1acde247580fb67000021", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acde247580fb67000026", "_original_id"=>"52a1acde247580fb6700002b", "_keywords"=>["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.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "$or"=>[{"slug.en"=>"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"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021", "_id"=>{"$ne"=>"52a1acdf247580fb6700002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acde247580fb67000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"52a1acdf247580fb6700002d", "parent_ids"=>["52a1acde247580fb67000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.2372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb6700002d"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdf247580fb6700002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdf247580fb6700002d"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb6700002d"}, "$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_models documents=[{"_id"=>"52a1acdf247580fb6700002e", "_stored"=>{:title=>{"en"=>"Please search for this findable page"}, :site_id=>"52a1acde247580fb67000021", :fullpath=>{"en"=>"findable"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb6700002d", "_keywords"=>["en:please", "en:search", "en:for", "en:this", "en:findable", "en:page"]}] flags=[] (0.1330ms) 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.5982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021", "_id"=>{"$ne"=>"52a1acdf247580fb6700002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acde247580fb67000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"52a1acdf247580fb6700002f", "parent_ids"=>["52a1acde247580fb67000023"], "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"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb6700002f"]}}, "$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"=>"52a1acdf247580fb6700002f"}, "$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"=>["52a1acdf247580fb6700002f"]}} 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.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "$or"=>[{"slug.en"=>"seems-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"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021", "_id"=>{"$ne"=>"52a1acdf247580fb67000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021"}, "$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"=>"52a1acde247580fb67000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdf247580fb67000030", "parent_ids"=>["52a1acde247580fb67000023"], "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"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb67000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acdf247580fb67000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdf247580fb67000030"]}} 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.5250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "$or"=>[{"slug.en"=>"search"}]} 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"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021", "_id"=>{"$ne"=>"52a1acdf247580fb67000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"52a1acde247580fb67000023", "site_id"=>"52a1acde247580fb67000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"52a1acde247580fb67000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdf247580fb67000031", "parent_ids"=>["52a1acde247580fb67000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"52a1acde247580fb67000021", "parent_id"=>"52a1acde247580fb67000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb67000031"]}}, "$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"=>"52a1acdf247580fb67000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdf247580fb67000031"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb67000031"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdf247580fb67000032", "_stored"=>{:title=>{"en"=>"search"}, :site_id=>"52a1acde247580fb67000021", :fullpath=>{"en"=>"search"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb67000031", "_keywords"=>["en:search"]}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "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_sites selector={"$query"=>{"_id"=>"52a1acde247580fb67000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3448ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"52a1acde247580fb67000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2013-12-06 10:54:23 UTC}} flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021", "template_dependencies.en"=>{"$in"=>["52a1acde247580fb67000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acde247580fb67000023"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_models selector={"_id"=>"52a1acde247580fb67000024"} update={"$set"=>{"_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acde247580fb67000021", :fullpath=>{"en"=>"index"}}}} flags=[] (0.1032ms) 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.4661ms) 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.3362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"52a1acdf247580fb67000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2013-12-06 10:54:19 UTC, "updated_at"=>2013-12-06 10:54:23 UTC, "memberships"=>[{"_id"=>"52a1acdf247580fb67000034", "role"=>"admin", "account_id"=>"52a1acde247580fb67000020"}]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdf247580fb67000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acdf247580fb67000033", "_id"=>{"$ne"=>"52a1acdf247580fb67000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"52a1acdf247580fb67000035", "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"=>"52a1acdf247580fb67000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdf247580fb67000033", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb67000035"]}}, "$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"=>"52a1acdf247580fb67000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdf247580fb67000035"]}} 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_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb67000035"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdf247580fb67000036", "_stored"=>{:title=>{"en"=>"Home page"}, :site_id=>"52a1acdf247580fb67000033", :fullpath=>{"en"=>"index"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb67000035", "_keywords"=>["en:home", "en:page"]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdf247580fb67000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acdf247580fb67000033", "_id"=>{"$ne"=>"52a1acdf247580fb67000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"52a1acdf247580fb67000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"52a1acdf247580fb67000037", "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"=>"52a1acdf247580fb67000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdf247580fb67000033", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb67000037"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"52a1acdf247580fb67000037"}, "$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"=>["52a1acdf247580fb67000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"52a1acdf247580fb67000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"52a1acdf247580fb67000033", "_id"=>{"$ne"=>"52a1acdf247580fb67000038"}, "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"=>"52a1acdf247580fb67000033"}, "$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.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"52a1acdf247580fb67000038", "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"=>"52a1acdf247580fb67000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acdf247580fb67000033", "template_dependencies.en"=>{"$in"=>["52a1acdf247580fb67000038"]}}, "$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"=>"52a1acdf247580fb67000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["52a1acdf247580fb67000038"]}} 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=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb67000038"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdf247580fb67000039", "_stored"=>{:title=>{"en"=>"This should never show up in the search, even if it would be findable"}, :site_id=>"52a1acdf247580fb67000033", :fullpath=>{"en"=>"rickroll"}}, "_original_type"=>"Locomotive::Page", "_original_id"=>"52a1acdf247580fb67000038", "_keywords"=>["en:this", "en:should", "en:never", "en:show", "en:up", "en:in", "en:the", "en:search,", "en:even", "en:if", "en:it", "en:would", "en:be", "en:findable"]}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acdf247580fb67000033", "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"=>"52a1acdf247580fb6700003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"52a1acdf247580fb67000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"52a1acdf247580fb6700003b", "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC, "entries_custom_fields"=>[{"_id"=>"52a1acdf247580fb6700003b", "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"=>"52a1acdf247580fb6700003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdf247580fb6700003a"]}} 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"=>"52a1acdf247580fb6700003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4458ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry52a1acdf247580fb6700003a"]}}} (0.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"52a1acdf247580fb6700003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry52a1acdf247580fb6700003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry52a1acdf247580fb6700003a", "content_type_id"=>"52a1acdf247580fb6700003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"52a1acdf247580fb67000033", "_label_field_name"=>"name", "updated_at"=>2013-12-06 10:54:23 UTC, "created_at"=>2013-12-06 10:54:23 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_models selector={"$query"=>{"_original_type"=>"Locomotive::ContentEntry52a1acdf247580fb6700003a", "_original_id"=>"52a1acdf247580fb6700003c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_models documents=[{"_id"=>"52a1acdf247580fb6700003d", "_stored"=>{:_slug=>{"en"=>"not-findable-entry"}, "name"=>"NOT Findable entry", :site_id=>"52a1acdf247580fb67000033", :content_type_slug=>"examples"}, "_original_type"=>"Locomotive::ContentEntry52a1acdf247580fb6700003a", "_original_id"=>"52a1acdf247580fb6700003c", "_keywords"=>["not", "findable", "entry"]}] flags=[] (0.1500ms) Started GET "/locomotive" for 127.0.0.1 at 2013-12-06 11:54:23 +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.8669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["52a1acde247580fb67000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (5.0ms) Completed 200 OK in 11.1ms (Views: 6.9ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2013-12-06 11:54:23 +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.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["52a1acde247580fb67000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4542ms) 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.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"52a1acde247580fb67000020"} update={"$set"=>{"remember_created_at"=>2013-12-06 10:54:23 UTC, "updated_at"=>2013-12-06 10:54:23 UTC}} flags=[] (0.0970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"52a1acde247580fb67000020"} update={"$set"=>{"last_sign_in_at"=>2013-12-06 10:54:23 UTC, "current_sign_in_at"=>2013-12-06 10:54:23 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2013-12-06 10:54:23 UTC}} flags=[] (0.1292ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 7.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2013-12-06 11:54:23 +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.8562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"52a1acde247580fb67000020"}, "$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_accounts selector={"_id"=>{"$in"=>["52a1acde247580fb67000020"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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, "target_klass_name"=>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.2162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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, "target_klass_name"=>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.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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.4640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"52a1acde247580fb67000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6940ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (14.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (4.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (7.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"52a1acde247580fb67000020", :role=>:admin}}}} (0.6878ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (5.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"52a1acde247580fb67000020"}} (0.3951ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"52a1acde247580fb67000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5379ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (7.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.9ms (Views: 41.1ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2013-12-06 11:54:23 +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.8039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"52a1acde247580fb67000020"}, "$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_accounts selector={"_id"=>{"$in"=>["52a1acde247580fb67000020"]}} 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_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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, "target_klass_name"=>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.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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.7203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"52a1acde247580fb67000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.1022ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (22.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (1.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_assets/_picker.html.haml (10.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/theme_assets/_picker.html.haml (81.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_editable_elements.html.haml (7.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"52a1acde247580fb67000021"}, "$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, "target_klass_name"=>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.2710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"52a1acde247580fb67000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8759ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_form.html.haml (195.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (231.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"52a1acde247580fb67000020", :role=>:admin}}}} (0.7701ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"52a1acde247580fb67000020"}} (0.6211ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"52a1acde247580fb67000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6518ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (8.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 272.8ms (Views: 255.1ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2013-12-06 11:54:23 +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.6392ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2879ms) 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.1480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_models"} (0.8180ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9239ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.1199ms) 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 (12.1269ms) 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 (11.0359ms) 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 (7.5867ms) 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} (18.7361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5332b4b6247580edf8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d77370b3194f9e1bf5b441763a8247a8b164cc1b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ncitZzoytL1pngyxdSy2", "api_key"=>"5b4c2dc5dd18a878dfe686016176f2671f069fcb", "updated_at"=>2014-03-26 11:06:30 UTC, "created_at"=>2014-03-26 11:06:30 UTC}] flags=[] (0.2229ms) 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} (19.8741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b4b6247580edf8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-26 11:06:29 UTC, "updated_at"=>2014-03-26 11:06:30 UTC, "memberships"=>[{"_id"=>"5332b4b6247580edf8000003", "role"=>"admin", "account_id"=>"5332b4b6247580edf8000001"}]}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4b6247580edf8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (26.1161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4b6247580edf8000002", "_id"=>{"$ne"=>"5332b4b6247580edf8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0302ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4b6247580edf8000004", "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"=>"5332b4b6247580edf8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:30 UTC, "created_at"=>2014-03-26 11:06:30 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b6247580edf8000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.7791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b6247580edf8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4b6247580edf8000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4b6247580edf8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5332b4b6247580edf8000002", "_id"=>{"$ne"=>"5332b4b7247580edf8000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (5.1420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4b6247580edf8000002"}, "$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"=>"5332b4b7247580edf8000005", "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"=>"5332b4b6247580edf8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:31 UTC, "created_at"=>2014-03-26 11:06:31 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b7247580edf8000005"]}}, "$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"=>"5332b4b7247580edf8000005"}, "$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"=>["5332b4b7247580edf8000005"]}} 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"=>"5332b4b6247580edf8000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b4b7247580edf8000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4b6247580edf8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4b7247580edf8000007", "updated_at"=>2014-03-26 11:06:31 UTC, "created_at"=>2014-03-26 11:06:31 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4b7247580edf8000007", "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.2749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4b7247580edf8000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5332b4b7247580edf8000008", "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", "updated_at"=>2014-03-26 11:06:31 UTC, "created_at"=>2014-03-26 11:06:31 UTC}}} flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4b7247580edf8000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.9041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4b7247580edf8000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6161ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}}} (0.5288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4b7247580edf8000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4b7247580edf8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4b7247580edf8000006", "content_type_id"=>"5332b4b7247580edf8000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5332b4b6247580edf8000002", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:06:31 UTC, "created_at"=>2014-03-26 11:06:31 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4b8247580edf800000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}} 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"=>"5332b4b7247580edf8000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}}} (0.4001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}}} (0.3383ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (10.9448ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4b8247580edf800000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4b7247580edf8000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4b7247580edf8000006", "content_type_id"=>"5332b4b7247580edf8000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5332b4b6247580edf8000002", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:06:32 UTC, "created_at"=>2014-03-26 11:06:32 UTC}] flags=[] (0.2091ms) 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.6900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002", "_id"=>{"$ne"=>"5332b4b8247580edf800000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4b6247580edf8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4b8247580edf800000b", "parent_ids"=>["5332b4b6247580edf8000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:32 UTC, "created_at"=>2014-03-26 11:06:32 UTC}] flags=[] (0.3312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b8247580edf800000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5332b4b8247580edf800000b"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5332b4b8247580edf800000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1941ms) 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.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002", "_id"=>{"$ne"=>"5332b4b9247580edf800000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4b6247580edf8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4b9247580edf800000c", "parent_ids"=>["5332b4b6247580edf8000004"], "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"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:33 UTC, "created_at"=>2014-03-26 11:06:33 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b9247580edf800000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b9247580edf800000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4210ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4b9247580edf800000c"]}} 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.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002", "_id"=>{"$ne"=>"5332b4b9247580edf800000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002"}, "$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"=>"5332b4b6247580edf8000004"}]}]}, "$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"=>"5332b4b9247580edf800000d", "parent_ids"=>["5332b4b6247580edf8000004"], "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"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:33 UTC, "created_at"=>2014-03-26 11:06:33 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b9247580edf800000d"]}}, "$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"=>"5332b4b9247580edf800000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4b9247580edf800000d"]}} 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.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002", "_id"=>{"$ne"=>"5332b4b9247580edf800000e"}, "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"=>"5332b4b6247580edf8000004", "site_id"=>"5332b4b6247580edf8000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4b6247580edf8000004"}]}]}, "$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"=>"5332b4b9247580edf800000e", "parent_ids"=>["5332b4b6247580edf8000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5332b4b6247580edf8000002", "parent_id"=>"5332b4b6247580edf8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:33 UTC, "created_at"=>2014-03-26 11:06:33 UTC}] flags=[] (0.2823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b9247580edf800000e"]}}, "$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"=>"5332b4b9247580edf800000e"}, "$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"=>["5332b4b9247580edf800000e"]}} 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"=>"5332b4b6247580edf8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5332b4b6247580edf8000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8173ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5332b4b6247580edf8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-26 11:06:34 UTC}} flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "template_dependencies.en"=>{"$in"=>["5332b4b6247580edf8000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3722ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b4ba247580edf800000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-26 11:06:29 UTC, "updated_at"=>2014-03-26 11:06:34 UTC, "memberships"=>[{"_id"=>"5332b4ba247580edf8000010", "role"=>"admin", "account_id"=>"5332b4b6247580edf8000001"}]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4ba247580edf800000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4ba247580edf800000f", "_id"=>{"$ne"=>"5332b4ba247580edf8000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5332b4ba247580edf8000011", "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"=>"5332b4ba247580edf800000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:34 UTC, "created_at"=>2014-03-26 11:06:34 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4ba247580edf800000f", "template_dependencies.en"=>{"$in"=>["5332b4ba247580edf8000011"]}}, "$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"=>"5332b4ba247580edf8000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4ba247580edf8000011"]}} 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"=>"5332b4ba247580edf800000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4ba247580edf800000f", "_id"=>{"$ne"=>"5332b4bb247580edf8000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4ba247580edf800000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4bb247580edf8000012", "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"=>"5332b4ba247580edf800000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:35 UTC, "created_at"=>2014-03-26 11:06:35 UTC}] flags=[] (0.3498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4ba247580edf800000f", "template_dependencies.en"=>{"$in"=>["5332b4bb247580edf8000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4bb247580edf8000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4bb247580edf8000012"]}} 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={"site_id"=>"5332b4ba247580edf800000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4ba247580edf800000f", "_id"=>{"$ne"=>"5332b4bb247580edf8000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4ba247580edf800000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4bb247580edf8000013", "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"=>"5332b4ba247580edf800000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:35 UTC, "created_at"=>2014-03-26 11:06:35 UTC}] flags=[] (0.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4ba247580edf800000f", "template_dependencies.en"=>{"$in"=>["5332b4bb247580edf8000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0397ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4bb247580edf8000013"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5332b4bb247580edf8000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5332b4ba247580edf800000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b4bb247580edf8000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4ba247580edf800000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4bb247580edf8000015", "updated_at"=>2014-03-26 11:06:35 UTC, "created_at"=>2014-03-26 11:06:35 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4bb247580edf8000015", "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.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4bb247580edf8000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4bb247580edf8000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4bb247580edf8000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4bb247580edf8000014"]}}} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4bb247580edf8000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4bb247580edf8000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4bb247580edf8000014", "content_type_id"=>"5332b4bb247580edf8000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5332b4ba247580edf800000f", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:06:35 UTC, "created_at"=>2014-03-26 11:06:35 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4b7247580edf8000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}} 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={"_id"=>{"$ne"=>"5332b4b8247580edf800000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1919ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4b7247580edf8000006"} update={"$set"=>{"updated_at"=>2014-03-26 11:06:36 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1023ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4b7247580edf8000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1099ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:06:36 +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.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 15.9ms (Views: 10.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-26 12:06:36 +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.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "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.7830ms) Rendered text template (0.0ms) Completed 200 OK in 510.5ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4b7247580edf8000006"} 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_content_entries selector={"content_type_id"=>"5332b4b7247580edf8000006", "updated_at"=>{"$lt"=>2014-03-26 11:06:36 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4b7247580edf8000006"]}} 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_sites selector={"$query"=>{"_id"=>"5332b4b6247580edf8000002"}, "$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_content_types selector={"$query"=>{"_id"=>"5332b4b7247580edf8000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5332b4b7247580edf8000009"} update={"$set"=>{"updated_at"=>2014-03-26 11:06:37 UTC}} flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5332b4b6247580edf8000002"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"5332b4b7247580edf8000006"}, "$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_content_entries selector={"_id"=>"5332b4b8247580edf800000a"} update={"$set"=>{"updated_at"=>2014-03-26 11:06:37 UTC}} flags=[] (0.1459ms) Started GET "/en/" for 127.0.0.1 at 2014-03-26 12:06:38 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-26 12:06:38 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7598ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-26 12:06: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.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4b6247580edf8000002", "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.5519ms) Rendered text template (0.0ms) Completed 200 OK in 563.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 (0.7229ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (24.8499ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (15.4359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (7.5397ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (7.0999ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.2581ms) 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.3412ms) 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.9780ms) 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.4442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5332b4bf247580edf8000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"41ab88c3f014f6a92dfd3ae31f97c453cdb4670f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"snwUyhj4rtyymGpPatys", "api_key"=>"c213b965d0bc34ba84df42a8875933c453108522", "updated_at"=>2014-03-26 11:06:39 UTC, "created_at"=>2014-03-26 11:06:39 UTC}] flags=[] (0.1838ms) 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.8340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b4bf247580edf8000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-26 11:06:29 UTC, "updated_at"=>2014-03-26 11:06:39 UTC, "memberships"=>[{"_id"=>"5332b4bf247580edf8000019", "role"=>"admin", "account_id"=>"5332b4bf247580edf8000017"}]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4bf247580edf8000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4bf247580edf8000018", "_id"=>{"$ne"=>"5332b4bf247580edf800001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4bf247580edf800001a", "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"=>"5332b4bf247580edf8000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:39 UTC, "created_at"=>2014-03-26 11:06:39 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4bf247580edf800001a"]}}, "$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"=>"5332b4bf247580edf800001a"}, "$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"=>["5332b4bf247580edf800001a"]}} 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_pages selector={"site_id"=>"5332b4bf247580edf8000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4bf247580edf8000018", "_id"=>{"$ne"=>"5332b4c0247580edf800001b"}, "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"=>"5332b4bf247580edf8000018"}, "$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"=>"5332b4c0247580edf800001b", "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"=>"5332b4bf247580edf8000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:40 UTC, "created_at"=>2014-03-26 11:06:40 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4c0247580edf800001b"]}}, "$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"=>"5332b4c0247580edf800001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4c0247580edf800001b"]}} 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"=>"5332b4bf247580edf8000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b4c0247580edf800001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4bf247580edf8000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4c0247580edf800001d", "updated_at"=>2014-03-26 11:06:40 UTC, "created_at"=>2014-03-26 11:06:40 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4c0247580edf800001d", "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.2198ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4c0247580edf800001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5332b4c0247580edf800001e", "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", "updated_at"=>2014-03-26 11:06:40 UTC, "created_at"=>2014-03-26 11:06:40 UTC}}} flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4c0247580edf800001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c0247580edf800001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0633ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4c0247580edf800001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c0247580edf800001c"]}}} (0.4537ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4c0247580edf800001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4c0247580edf800001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4c0247580edf800001c", "content_type_id"=>"5332b4c0247580edf800001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5332b4bf247580edf8000018", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:06:41 UTC, "created_at"=>2014-03-26 11:06:41 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4c2247580edf8000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c0247580edf800001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4c0247580edf800001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3932ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c0247580edf800001c"]}}} (0.3889ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c0247580edf800001c"]}}} (0.2830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c0247580edf800001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4c2247580edf8000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4c0247580edf800001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4c0247580edf800001c", "content_type_id"=>"5332b4c0247580edf800001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5332b4bf247580edf8000018", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:06:42 UTC, "created_at"=>2014-03-26 11:06:42 UTC}] flags=[] (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.7541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018", "_id"=>{"$ne"=>"5332b4c2247580edf8000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4bf247580edf800001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4c2247580edf8000021", "parent_ids"=>["5332b4bf247580edf800001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:42 UTC, "created_at"=>2014-03-26 11:06:42 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4c2247580edf8000021"]}}, "$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"=>"5332b4c2247580edf8000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4c2247580edf8000021"]}} 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.6757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018", "_id"=>{"$ne"=>"5332b4c3247580edf8000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4bf247580edf800001a"}]}]}, "$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"=>"5332b4c3247580edf8000022", "parent_ids"=>["5332b4bf247580edf800001a"], "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"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:43 UTC, "created_at"=>2014-03-26 11:06:43 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4c3247580edf8000022"]}}, "$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"=>"5332b4c3247580edf8000022"}, "$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"=>["5332b4c3247580edf8000022"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018", "_id"=>{"$ne"=>"5332b4c3247580edf8000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4bf247580edf800001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4c3247580edf8000023", "parent_ids"=>["5332b4bf247580edf800001a"], "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"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:43 UTC, "created_at"=>2014-03-26 11:06:43 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4c3247580edf8000023"]}}, "$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"=>"5332b4c3247580edf8000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3247ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4c3247580edf8000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "$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"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018", "_id"=>{"$ne"=>"5332b4c3247580edf8000024"}, "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"=>"5332b4bf247580edf800001a", "site_id"=>"5332b4bf247580edf8000018"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4bf247580edf800001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5332b4c3247580edf8000024", "parent_ids"=>["5332b4bf247580edf800001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5332b4bf247580edf8000018", "parent_id"=>"5332b4bf247580edf800001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:43 UTC, "created_at"=>2014-03-26 11:06:43 UTC}] flags=[] (0.2413ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4c3247580edf8000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4c3247580edf8000024"}, "$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"=>["5332b4c3247580edf8000024"]}} 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={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5332b4bf247580edf8000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5298ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5332b4bf247580edf800001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-26 11:06:44 UTC}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "template_dependencies.en"=>{"$in"=>["5332b4bf247580edf800001a"]}}, "$orderby"=>{"position"=>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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8700ms) 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"=>"5332b4c4247580edf8000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-26 11:06:29 UTC, "updated_at"=>2014-03-26 11:06:44 UTC, "memberships"=>[{"_id"=>"5332b4c4247580edf8000026", "role"=>"admin", "account_id"=>"5332b4bf247580edf8000017"}]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4c4247580edf8000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4c4247580edf8000025", "_id"=>{"$ne"=>"5332b4c4247580edf8000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5332b4c4247580edf8000027", "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"=>"5332b4c4247580edf8000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:44 UTC, "created_at"=>2014-03-26 11:06:44 UTC}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4c4247580edf8000025", "template_dependencies.en"=>{"$in"=>["5332b4c4247580edf8000027"]}}, "$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"=>"5332b4c4247580edf8000027"}, "$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"=>["5332b4c4247580edf8000027"]}} 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"=>"5332b4c4247580edf8000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4c4247580edf8000025", "_id"=>{"$ne"=>"5332b4c5247580edf8000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4c4247580edf8000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4c5247580edf8000028", "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"=>"5332b4c4247580edf8000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:45 UTC, "created_at"=>2014-03-26 11:06:45 UTC}] flags=[] (0.4318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4c4247580edf8000025", "template_dependencies.en"=>{"$in"=>["5332b4c5247580edf8000028"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5332b4c5247580edf8000028"}, "$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"=>["5332b4c5247580edf8000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4c4247580edf8000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4c4247580edf8000025", "_id"=>{"$ne"=>"5332b4c5247580edf8000029"}, "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"=>"5332b4c4247580edf8000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5128ms) 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.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4c5247580edf8000029", "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"=>"5332b4c4247580edf8000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:06:45 UTC, "created_at"=>2014-03-26 11:06:45 UTC}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4c4247580edf8000025", "template_dependencies.en"=>{"$in"=>["5332b4c5247580edf8000029"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4c5247580edf8000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4c5247580edf8000029"]}} 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"=>"5332b4c4247580edf8000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b4c6247580edf800002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4c4247580edf8000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4c6247580edf800002b", "updated_at"=>2014-03-26 11:06:46 UTC, "created_at"=>2014-03-26 11:06:46 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4c6247580edf800002b", "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.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4c6247580edf800002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c6247580edf800002a"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"5332b4c6247580edf800002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6793ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4c6247580edf800002a"]}}} (0.5288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4c6247580edf800002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4c6247580edf800002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4c6247580edf800002a", "content_type_id"=>"5332b4c6247580edf800002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5332b4c4247580edf8000025", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:06:46 UTC, "created_at"=>2014-03-26 11:06:46 UTC}] flags=[] (0.2420ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:06:47 +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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6208ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-26 12:06:47 +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.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "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.6368ms) Rendered text template (0.0ms) Completed 200 OK in 444.3ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-03-26 12:06:47 +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"=>"5332b4bf247580edf8000018", "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.5879ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.6ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:06:47 +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.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-26 12:06:47 +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.8011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4bf247580edf8000018", "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.7579ms) Rendered text template (0.0ms) Completed 200 OK in 449.5ms (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.7260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5299ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3702ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8614ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0791ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8137ms) 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.6049ms) 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.4828ms) 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.7172ms) 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.4737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5332b4d62475804525000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b3434f41f11217d2c06c313c825b58f9c4320434", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"bPxqjCp9EMxPkpgBRAwK", "api_key"=>"03626c3ab53e9bbcefb58a5e47b7b36e26695c11", "updated_at"=>2014-03-26 11:07:02 UTC, "created_at"=>2014-03-26 11:07:02 UTC}] flags=[] (0.1903ms) 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.7761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b4d62475804525000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-26 11:07:02 UTC, "updated_at"=>2014-03-26 11:07:02 UTC, "memberships"=>[{"_id"=>"5332b4d62475804525000003", "role"=>"admin", "account_id"=>"5332b4d62475804525000001"}]}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d62475804525000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d62475804525000002", "_id"=>{"$ne"=>"5332b4d72475804525000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000004", "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"=>"5332b4d62475804525000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.0180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4d72475804525000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000004", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b4d62475804525000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d62475804525000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.8772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d62475804525000002", "_id"=>{"$ne"=>"5332b4d72475804525000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d62475804525000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4933ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000006", "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"=>"5332b4d62475804525000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000006"]}}, "$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"=>"5332b4d72475804525000006"}, "$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"=>["5332b4d72475804525000006"]}} 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"=>"5332b4d62475804525000002", "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"=>"5332b4d72475804525000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4d62475804525000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4d72475804525000008", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4d72475804525000008", "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.1017ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4d72475804525000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5332b4d72475804525000009", "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", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}}} flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d7247580452500000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4d72475804525000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4542ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000007"]}}} (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4d7247580452500000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4d72475804525000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4d72475804525000007", "content_type_id"=>"5332b4d72475804525000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5332b4d62475804525000002", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b4d72475804525000007", "original_id"=>"5332b4d7247580452500000a", "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"=>"5332b4d7247580452500000b", "stored"=>{"name"=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5332b4d62475804525000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b4d72475804525000007", "original_id"=>"5332b4d7247580452500000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d7247580452500000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000007"]}} 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"=>"5332b4d72475804525000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3772ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000007"]}}} (0.3941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000007"]}}} (0.3099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4d7247580452500000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4d72475804525000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4d72475804525000007", "content_type_id"=>"5332b4d72475804525000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5332b4d62475804525000002", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 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::ContentEntry5332b4d72475804525000007", "original_id"=>"5332b4d7247580452500000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d7247580452500000d", "stored"=>{"name"=>"Hidden", :_slug=>"hidden", :site_id=>"5332b4d62475804525000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b4d72475804525000007", "original_id"=>"5332b4d7247580452500000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.5748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002", "_id"=>{"$ne"=>"5332b4d7247580452500000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d7247580452500000e", "parent_ids"=>["5332b4d72475804525000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.3362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d7247580452500000e"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5332b4d7247580452500000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4d7247580452500000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d7247580452500000e", "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"=>"5332b4d7247580452500000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :site_id=>"5332b4d62475804525000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d7247580452500000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1879ms) 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.5882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002", "_id"=>{"$ne"=>"5332b4d72475804525000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000010", "parent_ids"=>["5332b4d72475804525000004"], "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"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000010"]}}, "$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"=>"5332b4d72475804525000010"}, "$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"=>["5332b4d72475804525000010"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002", "_id"=>{"$ne"=>"5332b4d72475804525000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5332b4d72475804525000011", "parent_ids"=>["5332b4d72475804525000004"], "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"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000011"}, "$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"=>["5332b4d72475804525000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002", "_id"=>{"$ne"=>"5332b4d72475804525000012"}, "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"=>"5332b4d72475804525000004", "site_id"=>"5332b4d62475804525000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000012", "parent_ids"=>["5332b4d72475804525000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5332b4d62475804525000002", "parent_id"=>"5332b4d72475804525000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000012"]}}, "$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"=>"5332b4d72475804525000012"}, "$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"=>["5332b4d72475804525000012"]}} 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"=>"5332b4d72475804525000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :site_id=>"5332b4d62475804525000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "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_sites selector={"$query"=>{"_id"=>"5332b4d62475804525000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5332b4d72475804525000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-26 11:07:03 UTC}} flags=[] (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7317ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5332b4d72475804525000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :site_id=>"5332b4d62475804525000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1800ms) 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.2859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b4d72475804525000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-26 11:07:02 UTC, "updated_at"=>2014-03-26 11:07:03 UTC, "memberships"=>[{"_id"=>"5332b4d72475804525000015", "role"=>"admin", "account_id"=>"5332b4d62475804525000001"}]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000014", "_id"=>{"$ne"=>"5332b4d72475804525000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5332b4d72475804525000016", "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"=>"5332b4d72475804525000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000014", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000016"]}}, "$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"=>"5332b4d72475804525000016"}, "$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"=>["5332b4d72475804525000016"]}} 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"=>"5332b4d72475804525000016", "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"=>"5332b4d72475804525000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b4d72475804525000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000014", "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"=>"5332b4d72475804525000014", "_id"=>{"$ne"=>"5332b4d72475804525000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5332b4d72475804525000018", "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"=>"5332b4d72475804525000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000014", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000018"]}}, "$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"=>"5332b4d72475804525000018"}, "$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"=>["5332b4d72475804525000018"]}} 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={"site_id"=>"5332b4d72475804525000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5332b4d72475804525000014", "_id"=>{"$ne"=>"5332b4d72475804525000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.8448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000019", "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"=>"5332b4d72475804525000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000014", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4d72475804525000019"]}} 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"=>"5332b4d72475804525000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d7247580452500001a", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :site_id=>"5332b4d72475804525000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5332b4d72475804525000014", "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"=>"5332b4d7247580452500001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4d72475804525000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4d7247580452500001c", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4d7247580452500001c", "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.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d7247580452500001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d7247580452500001b"]}} 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"=>"5332b4d7247580452500001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d7247580452500001b"]}}} (0.5941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4d7247580452500001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4d7247580452500001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4d7247580452500001b", "content_type_id"=>"5332b4d7247580452500001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5332b4d72475804525000014", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b4d7247580452500001b", "original_id"=>"5332b4d7247580452500001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d7247580452500001e", "stored"=>{"name"=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5332b4d72475804525000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b4d7247580452500001b", "original_id"=>"5332b4d7247580452500001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1428ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:07: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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 15.6ms (Views: 10.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-26 12:07: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.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d62475804525000002", "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.7548ms) 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"=>"5332b4d62475804525000002", "locale"=>:en}} (0.7210ms) Completed 500 Internal Server Error in 5.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.6151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2989ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (11.8968ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5431ms) 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.3469ms) 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.2999ms) 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.2980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5332b4d7247580452500001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8dc097bf031de9df937977c15f9ff68cd9f60424", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"1NC6jNMV5zqKCp32kzmj", "api_key"=>"e9ef696b7ea25890568911576842bf4a01bfd6c2", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1080ms) 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.3512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b4d72475804525000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-26 11:07:02 UTC, "updated_at"=>2014-03-26 11:07:03 UTC, "memberships"=>[{"_id"=>"5332b4d72475804525000021", "role"=>"admin", "account_id"=>"5332b4d7247580452500001f"}]}] flags=[] (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5332b4d72475804525000020", "_id"=>{"$ne"=>"5332b4d72475804525000022"}, "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"=>"5332b4d72475804525000022", "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"=>"5332b4d72475804525000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000022"}, "$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"=>["5332b4d72475804525000022"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b4d72475804525000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000020", "_id"=>{"$ne"=>"5332b4d72475804525000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000024", "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"=>"5332b4d72475804525000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000024"]}}, "$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"=>"5332b4d72475804525000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4d72475804525000024"]}} 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_content_types selector={"site_id"=>"5332b4d72475804525000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4277ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b4d72475804525000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4d72475804525000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4d72475804525000026", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4d72475804525000026", "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.2141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4d72475804525000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5332b4d72475804525000027", "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", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}}} flags=[] (0.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d72475804525000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4d72475804525000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}}} (0.5898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4d72475804525000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4d72475804525000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4d72475804525000025", "content_type_id"=>"5332b4d72475804525000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5332b4d72475804525000020", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 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::ContentEntry5332b4d72475804525000025", "original_id"=>"5332b4d72475804525000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000029", "stored"=>{"name"=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5332b4d72475804525000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b4d72475804525000025", "original_id"=>"5332b4d72475804525000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d7247580452500002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}} 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"=>"5332b4d72475804525000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4098ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}}} (0.3562ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4d7247580452500002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4d72475804525000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4d72475804525000025", "content_type_id"=>"5332b4d72475804525000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5332b4d72475804525000020", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 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::ContentEntry5332b4d72475804525000025", "original_id"=>"5332b4d7247580452500002a", "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"=>"5332b4d7247580452500002b", "stored"=>{"name"=>"Hidden", :_slug=>"hidden", :site_id=>"5332b4d72475804525000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b4d72475804525000025", "original_id"=>"5332b4d7247580452500002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1841ms) 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.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020", "_id"=>{"$ne"=>"5332b4d7247580452500002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000022"}]}]}, "$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"=>"5332b4d7247580452500002c", "parent_ids"=>["5332b4d72475804525000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d7247580452500002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d7247580452500002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3161ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4d7247580452500002c"]}} 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"=>"5332b4d7247580452500002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d7247580452500002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :site_id=>"5332b4d72475804525000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d7247580452500002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This 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.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "$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"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020", "_id"=>{"$ne"=>"5332b4d7247580452500002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d7247580452500002e", "parent_ids"=>["5332b4d72475804525000022"], "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"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d7247580452500002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d7247580452500002e"}, "$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"=>["5332b4d7247580452500002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) 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.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020", "_id"=>{"$ne"=>"5332b4d7247580452500002f"}, "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"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5332b4d7247580452500002f", "parent_ids"=>["5332b4d72475804525000022"], "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"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d7247580452500002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d7247580452500002f"}, "$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"=>["5332b4d7247580452500002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1097ms) 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"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020", "_id"=>{"$ne"=>"5332b4d72475804525000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000022", "site_id"=>"5332b4d72475804525000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b4d72475804525000022"}]}]}, "$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"=>"5332b4d72475804525000030", "parent_ids"=>["5332b4d72475804525000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5332b4d72475804525000020", "parent_id"=>"5332b4d72475804525000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000030"]}}, "$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"=>"5332b4d72475804525000030"}, "$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"=>["5332b4d72475804525000030"]}} 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"=>"5332b4d72475804525000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :site_id=>"5332b4d72475804525000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\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"=>"5332b4d72475804525000020", "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"=>"5332b4d72475804525000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5332b4d72475804525000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-26 11:07:03 UTC}} flags=[] (0.1421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000022", "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"=>"5332b4d72475804525000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :site_id=>"5332b4d72475804525000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1447ms) 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.4518ms) 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"=>"5332b4d72475804525000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-26 11:07:02 UTC, "updated_at"=>2014-03-26 11:07:03 UTC, "memberships"=>[{"_id"=>"5332b4d72475804525000033", "role"=>"admin", "account_id"=>"5332b4d7247580452500001f"}]}] flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000032", "_id"=>{"$ne"=>"5332b4d72475804525000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5332b4d72475804525000034", "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"=>"5332b4d72475804525000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000032", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b4d72475804525000034"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b4d72475804525000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b4d72475804525000032", "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"=>"5332b4d72475804525000032", "_id"=>{"$ne"=>"5332b4d72475804525000036"}, "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"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000032"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000036", "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"=>"5332b4d72475804525000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000032", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000036"]}}, "$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"=>"5332b4d72475804525000036"}, "$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"=>["5332b4d72475804525000036"]}} 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"=>"5332b4d72475804525000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000032", "_id"=>{"$ne"=>"5332b4d72475804525000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5332b4d72475804525000032"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b4d72475804525000037", "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"=>"5332b4d72475804525000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000032", "template_dependencies.en"=>{"$in"=>["5332b4d72475804525000037"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5332b4d72475804525000037"}, "$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"=>["5332b4d72475804525000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b4d72475804525000038", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :site_id=>"5332b4d72475804525000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b4d72475804525000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5332b4d72475804525000032", "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"=>"5332b4d72475804525000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b4d72475804525000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b4d7247580452500003a", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC, "entries_custom_fields"=>[{"_id"=>"5332b4d7247580452500003a", "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.2313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d7247580452500003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000039"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4d72475804525000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000039"]}}} (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b4d7247580452500003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b4d72475804525000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b4d72475804525000039", "content_type_id"=>"5332b4d72475804525000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5332b4d72475804525000032", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:07:03 UTC, "created_at"=>2014-03-26 11:07:03 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b4d72475804525000039", "original_id"=>"5332b4d7247580452500003b", "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"=>"5332b4d7247580452500003c", "stored"=>{"name"=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5332b4d72475804525000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b4d72475804525000039", "original_id"=>"5332b4d7247580452500003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d72475804525000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b4d7247580452500002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5332b4d72475804525000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1938ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b4d72475804525000025"} update={"$set"=>{"updated_at"=>2014-03-26 11:07:03 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1152ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b4d72475804525000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1342ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:07: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.7639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6759ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-26 12:07: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.7939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b4d72475804525000020", "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.6721ms) 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"=>"5332b4d72475804525000020", "locale"=>:en}} (0.7429ms) Completed 500 Internal Server Error in 5.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.6359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4947ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.4771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4189ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.0479ms) 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.6139ms) 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.4699ms) 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.6871ms) 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.5181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5332b5862475804854000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e99f77ac391250ba01b5bbcd316f905615240527", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"LGJzwwYMdpYNM1TKow83", "api_key"=>"3f7ca4162ef3ea318faff712c98ecdb21f1b55e4", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 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.7942ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b5862475804854000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-26 11:09:58 UTC, "updated_at"=>2014-03-26 11:09:58 UTC, "memberships"=>[{"_id"=>"5332b5862475804854000003", "role"=>"admin", "account_id"=>"5332b5862475804854000001"}]}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000002", "_id"=>{"$ne"=>"5332b5862475804854000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000004", "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"=>"5332b5862475804854000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000004"]}}, "$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"=>["5332b5862475804854000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3397ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5862475804854000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b5862475804854000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000002", "_id"=>{"$ne"=>"5332b5862475804854000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000006", "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"=>"5332b5862475804854000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000006"}, "$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"=>["5332b5862475804854000006"]}} 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"=>"5332b5862475804854000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b5862475804854000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b5862475804854000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b5862475804854000008", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC, "entries_custom_fields"=>[{"_id"=>"5332b5862475804854000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b5862475804854000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5332b5862475804854000009", "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", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}}} flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b586247580485400000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b5862475804854000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5093ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000007"]}}} (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b586247580485400000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b5862475804854000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b5862475804854000007", "content_type_id"=>"5332b5862475804854000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5332b5862475804854000002", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b5862475804854000007", "original_id"=>"5332b586247580485400000a", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"5332b586247580485400000b", "stored"=>{"name"=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5332b5862475804854000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b5862475804854000007", "original_id"=>"5332b586247580485400000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b586247580485400000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000007"]}} 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"=>"5332b5862475804854000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3438ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000007"]}}} (0.4182ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000007"]}}} (0.2990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b586247580485400000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b5862475804854000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b5862475804854000007", "content_type_id"=>"5332b5862475804854000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5332b5862475804854000002", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 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::ContentEntry5332b5862475804854000007", "original_id"=>"5332b586247580485400000c", "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"=>"5332b586247580485400000d", "stored"=>{"name"=>"Hidden", :_slug=>"hidden", :site_id=>"5332b5862475804854000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b5862475804854000007", "original_id"=>"5332b586247580485400000c", "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.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002", "_id"=>{"$ne"=>"5332b586247580485400000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b5862475804854000004"}]}]}, "$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"=>"5332b586247580485400000e", "parent_ids"=>["5332b5862475804854000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b586247580485400000e"]}}, "$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"=>"5332b586247580485400000e"}, "$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"=>["5332b586247580485400000e"]}} 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"=>"5332b586247580485400000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b586247580485400000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :site_id=>"5332b5862475804854000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b586247580485400000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2122ms) 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.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002", "_id"=>{"$ne"=>"5332b5862475804854000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002"}, "$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"=>"5332b5862475804854000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000010", "parent_ids"=>["5332b5862475804854000004"], "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"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000010"]}}, "$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"=>"5332b5862475804854000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b5862475804854000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) 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.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002", "_id"=>{"$ne"=>"5332b5862475804854000011"}, "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"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002"}, "$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"=>"5332b5862475804854000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000011", "parent_ids"=>["5332b5862475804854000004"], "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"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b5862475804854000011"]}} 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.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002", "_id"=>{"$ne"=>"5332b5862475804854000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5332b5862475804854000004", "site_id"=>"5332b5862475804854000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b5862475804854000004"}]}]}, "$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"=>"5332b5862475804854000012", "parent_ids"=>["5332b5862475804854000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5332b5862475804854000002", "parent_id"=>"5332b5862475804854000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000012"]}}, "$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"=>"5332b5862475804854000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b5862475804854000012"]}} 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"=>"5332b5862475804854000012", "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"=>"5332b5862475804854000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :site_id=>"5332b5862475804854000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5332b5862475804854000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5332b5862475804854000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-26 11:09:58 UTC}} flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000004"]}}, "$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"=>"5332b5862475804854000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5332b5862475804854000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :site_id=>"5332b5862475804854000002", :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.5069ms) 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.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b5862475804854000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-26 11:09:58 UTC, "updated_at"=>2014-03-26 11:09:58 UTC, "memberships"=>[{"_id"=>"5332b5862475804854000015", "role"=>"admin", "account_id"=>"5332b5862475804854000001"}]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000014", "_id"=>{"$ne"=>"5332b5862475804854000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000016", "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"=>"5332b5862475804854000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000014", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000016"]}}, "$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"=>"5332b5862475804854000016"}, "$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"=>["5332b5862475804854000016"]}} 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"=>"5332b5862475804854000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5862475804854000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b5862475804854000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000014", "_id"=>{"$ne"=>"5332b5862475804854000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000018", "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"=>"5332b5862475804854000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000014", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000018"}, "$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"=>["5332b5862475804854000018"]}} 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"=>"5332b5862475804854000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5332b5862475804854000014", "_id"=>{"$ne"=>"5332b5862475804854000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000019", "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"=>"5332b5862475804854000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000014", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000019"]}}, "$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"=>"5332b5862475804854000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b5862475804854000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000019", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b586247580485400001a", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :site_id=>"5332b5862475804854000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5332b5862475804854000014", "slug"=>"examples"} 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"=>"5332b586247580485400001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b5862475804854000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b586247580485400001c", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC, "entries_custom_fields"=>[{"_id"=>"5332b586247580485400001c", "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.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b586247580485400001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b586247580485400001b"]}} 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"=>"5332b586247580485400001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5009ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b586247580485400001b"]}}} (0.5379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b586247580485400001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b586247580485400001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b586247580485400001b", "content_type_id"=>"5332b586247580485400001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5332b5862475804854000014", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b586247580485400001b", "original_id"=>"5332b586247580485400001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b586247580485400001e", "stored"=>{"name"=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5332b5862475804854000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b586247580485400001b", "original_id"=>"5332b586247580485400001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1769ms) 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.1130ms) 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.1447ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:09:58 +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 (30.0188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) Rendered text template (0.0ms) Completed 200 OK in 45.6ms (Views: 10.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-26 12:09:58 +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.8471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "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.7570ms) 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"=>"5332b5862475804854000002", "locale"=>:en}} (0.6289ms) Rendered text template (0.0ms) Completed 200 OK in 17.1ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2014-03-26 12:09:58 +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.8171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "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.6969ms) Rendered text template (0.0ms) Completed 200 OK in 5.2ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:09:58 +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.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6471ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-26 12:09:58 +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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000002", "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.6251ms) 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"=>"5332b5862475804854000002", "locale"=>:en}} (0.5283ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (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.7529ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1210ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9291ms) 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.6430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.5311ms) 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.3388ms) 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.3240ms) 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.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5332b586247580485400001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2241f37eb97519d5d766b018a843ff4690a38924", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"8oywjHvSyAzzzgHZcgQp", "api_key"=>"17a16d07bba942610b307890c2cafcda277d5c8e", "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.1428ms) 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.3612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b5862475804854000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-26 11:09:58 UTC, "updated_at"=>2014-03-26 11:09:58 UTC, "memberships"=>[{"_id"=>"5332b5862475804854000021", "role"=>"admin", "account_id"=>"5332b586247580485400001f"}]}] flags=[] (0.1221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5332b5862475804854000020", "_id"=>{"$ne"=>"5332b5862475804854000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000022", "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"=>"5332b5862475804854000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000022"]}}, "$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"=>"5332b5862475804854000022"}, "$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"=>["5332b5862475804854000022"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5862475804854000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b5862475804854000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000022", "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"=>"5332b5862475804854000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5862475804854000020", "_id"=>{"$ne"=>"5332b5862475804854000024"}, "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"=>"5332b5862475804854000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5862475804854000024", "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"=>"5332b5862475804854000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:58 UTC, "created_at"=>2014-03-26 11:09:58 UTC}] flags=[] (0.1647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000024"]}}, "$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"=>"5332b5862475804854000024"}, "$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"=>["5332b5862475804854000024"]}} 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"=>"5332b5862475804854000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5332b5862475804854000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b5862475804854000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b5872475804854000026", "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC, "entries_custom_fields"=>[{"_id"=>"5332b5872475804854000026", "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.2754ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b5862475804854000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5332b5872475804854000027", "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", "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b5872475804854000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}} 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"=>"5332b5862475804854000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4218ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}}} (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b5872475804854000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b5862475804854000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b5862475804854000025", "content_type_id"=>"5332b5862475804854000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5332b5862475804854000020", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.3247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b5862475804854000025", "original_id"=>"5332b5872475804854000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5872475804854000029", "stored"=>{"name"=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5332b5862475804854000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b5862475804854000025", "original_id"=>"5332b5872475804854000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.3040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b587247580485400002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b5862475804854000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8047ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}}} (0.6869ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}}} (0.6092ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2817ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b587247580485400002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b5862475804854000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b5862475804854000025", "content_type_id"=>"5332b5862475804854000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5332b5862475804854000020", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 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::ContentEntry5332b5862475804854000025", "original_id"=>"5332b587247580485400002a", "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"=>"5332b587247580485400002b", "stored"=>{"name"=>"Hidden", :_slug=>"hidden", :site_id=>"5332b5862475804854000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b5862475804854000025", "original_id"=>"5332b587247580485400002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3242ms) 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.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020", "_id"=>{"$ne"=>"5332b587247580485400002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b5862475804854000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b587247580485400002c", "parent_ids"=>["5332b5862475804854000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b587247580485400002c"]}}, "$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"=>"5332b587247580485400002c"}, "$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"=>["5332b587247580485400002c"]}} 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"=>"5332b587247580485400002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3078ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b587247580485400002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :site_id=>"5332b5862475804854000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b587247580485400002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This 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.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020", "_id"=>{"$ne"=>"5332b587247580485400002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020"}, "$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"=>"5332b5862475804854000022"}]}]}, "$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"=>"5332b587247580485400002e", "parent_ids"=>["5332b5862475804854000022"], "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"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b587247580485400002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b587247580485400002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b587247580485400002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1562ms) 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"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020", "_id"=>{"$ne"=>"5332b587247580485400002f"}, "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"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b5862475804854000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b587247580485400002f", "parent_ids"=>["5332b5862475804854000022"], "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"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b587247580485400002f"]}}, "$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"=>"5332b587247580485400002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b587247580485400002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) 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.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020", "_id"=>{"$ne"=>"5332b5872475804854000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5862475804854000022", "site_id"=>"5332b5862475804854000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5332b5862475804854000022"}]}]}, "$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"=>"5332b5872475804854000030", "parent_ids"=>["5332b5862475804854000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5332b5862475804854000020", "parent_id"=>"5332b5862475804854000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b5872475804854000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5332b5872475804854000030"}, "$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"=>["5332b5872475804854000030"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b5872475804854000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5872475804854000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :site_id=>"5332b5862475804854000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5872475804854000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "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_sites selector={"$query"=>{"_id"=>"5332b5862475804854000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5332b5862475804854000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-26 11:09:59 UTC}} flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "template_dependencies.en"=>{"$in"=>["5332b5862475804854000022"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b5862475804854000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5332b5862475804854000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :site_id=>"5332b5862475804854000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1361ms) 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.5291ms) 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.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5332b5872475804854000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-26 11:09:58 UTC, "updated_at"=>2014-03-26 11:09:59 UTC, "memberships"=>[{"_id"=>"5332b5872475804854000033", "role"=>"admin", "account_id"=>"5332b586247580485400001f"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5872475804854000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5872475804854000032", "_id"=>{"$ne"=>"5332b5872475804854000034"}, "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"=>"5332b5872475804854000034", "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"=>"5332b5872475804854000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5872475804854000032", "template_dependencies.en"=>{"$in"=>["5332b5872475804854000034"]}}, "$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"=>"5332b5872475804854000034"}, "$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"=>["5332b5872475804854000034"]}} 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"=>"5332b5872475804854000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5872475804854000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :site_id=>"5332b5872475804854000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5872475804854000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5332b5872475804854000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5872475804854000032", "_id"=>{"$ne"=>"5332b5872475804854000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5332b5872475804854000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5872475804854000036", "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"=>"5332b5872475804854000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5872475804854000032", "template_dependencies.en"=>{"$in"=>["5332b5872475804854000036"]}}, "$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"=>"5332b5872475804854000036"}, "$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"=>["5332b5872475804854000036"]}} 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={"site_id"=>"5332b5872475804854000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5332b5872475804854000032", "_id"=>{"$ne"=>"5332b5872475804854000037"}, "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"=>"5332b5872475804854000032"}, "$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.2899ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5332b5872475804854000037", "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"=>"5332b5872475804854000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5872475804854000032", "template_dependencies.en"=>{"$in"=>["5332b5872475804854000037"]}}, "$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"=>"5332b5872475804854000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5332b5872475804854000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.0968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5332b5872475804854000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3397ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b5872475804854000038", "stored"=>{:title=>"This should never show up in the search, even if it would be findable", :searchable_content=>"Rickroll", :site_id=>"5332b5872475804854000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5332b5872475804854000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5332b5872475804854000032", "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"=>"5332b5872475804854000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5332b5872475804854000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5332b587247580485400003a", "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC, "entries_custom_fields"=>[{"_id"=>"5332b587247580485400003a", "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.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b587247580485400003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5872475804854000039"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b5872475804854000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5872475804854000039"]}}} (0.4427ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5332b587247580485400003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5332b5872475804854000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5332b5872475804854000039", "content_type_id"=>"5332b5872475804854000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5332b5872475804854000032", "_label_field_name"=>"name", "updated_at"=>2014-03-26 11:09:59 UTC, "created_at"=>2014-03-26 11:09:59 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b5872475804854000039", "original_id"=>"5332b587247580485400003b", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5332b587247580485400003c", "stored"=>{"name"=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5332b5872475804854000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5332b5872475804854000039", "original_id"=>"5332b587247580485400003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1347ms) 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.0718ms) 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.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5332b5872475804854000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}} 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={"_id"=>{"$ne"=>"5332b587247580485400002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4427ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1378ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b5862475804854000025"} update={"$set"=>{"updated_at"=>2014-03-26 11:09:59 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1311ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5332b5862475804854000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1330ms) Started GET "/" for 127.0.0.1 at 2014-03-26 12:09:59 +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.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8178ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-26 12:09:59 +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.6092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "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.7970ms) 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"=>"5332b5862475804854000020", "locale"=>:en}} (0.5209ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5332b5862475804854000025"} 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_entries selector={"content_type_id"=>"5332b5862475804854000025", "updated_at"=>{"$lt"=>2014-03-26 11:09:59 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5332b5862475804854000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5332b5862475804854000020"}, "$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_content_types selector={"$query"=>{"_id"=>"5332b5862475804854000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5332b5872475804854000028"} update={"$set"=>{"updated_at"=>2014-03-26 11:09:59 UTC}} flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5332b5862475804854000025", "original_id"=>"5332b5872475804854000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5332b5872475804854000029"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :_slug=>"findable-entry", :site_id=>"5332b5862475804854000020", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5332b5862475804854000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5332b5862475804854000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5332b587247580485400002a"} update={"$set"=>{"updated_at"=>2014-03-26 11:09:59 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::ContentEntry5332b5862475804854000025", "original_id"=>"5332b587247580485400002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6714ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5332b587247580485400002b"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :_slug=>"hidden", :site_id=>"5332b5862475804854000020", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1202ms) Started GET "/en/" for 127.0.0.1 at 2014-03-26 12:09:59 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-26 12:09:59 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.5131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5193ms) 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-03-26 12:09:59 +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.6912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5332b5862475804854000020", "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.6120ms) 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"=>"5332b5862475804854000020", "locale"=>:en}} (0.5119ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.7012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5162ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.6728ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (23.5591ms) 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 (6.2249ms) 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 (27.5941ms) 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 (6.2110ms) 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} (12.6939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5333ded3247580dcff000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d069fd878355edfb9071b6cca2ea7a609c6c7a3d", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ww2BVrrbEgqfYxqsDsfc", "api_key"=>"9124b9e397a12012539fa2a45d418ac80ea1f183", "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 UTC}] flags=[] (0.2069ms) 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} (36.4122ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333ded3247580dcff000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-27 08:18:27 UTC, "updated_at"=>2014-03-27 08:18:27 UTC, "memberships"=>[{"_id"=>"5333ded3247580dcff000003", "role"=>"admin", "account_id"=>"5333ded3247580dcff000001"}]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded3247580dcff000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (30.0372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded3247580dcff000002", "_id"=>{"$ne"=>"5333ded3247580dcff000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded3247580dcff000004", "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"=>"5333ded3247580dcff000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 UTC}] flags=[] (0.2930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded3247580dcff000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (10.0150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded3247580dcff000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded3247580dcff000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded3247580dcff000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded3247580dcff000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5333ded3247580dcff000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded3247580dcff000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded3247580dcff000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded3247580dcff000002", "_id"=>{"$ne"=>"5333ded3247580dcff000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded3247580dcff000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded3247580dcff000006", "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"=>"5333ded3247580dcff000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 UTC}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded3247580dcff000006"]}}, "$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"=>"5333ded3247580dcff000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded3247580dcff000006"]}} 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_content_types selector={"site_id"=>"5333ded3247580dcff000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5333ded3247580dcff000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333ded3247580dcff000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333ded3247580dcff000008", "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 UTC, "entries_custom_fields"=>[{"_id"=>"5333ded3247580dcff000008", "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.2351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333ded3247580dcff000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5333ded3247580dcff000009", "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", "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 UTC}}} flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded3247580dcff00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded3247580dcff000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (19.4519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333ded3247580dcff000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded3247580dcff000007"]}}} (2.7318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333ded3247580dcff00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333ded3247580dcff000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333ded3247580dcff000007", "content_type_id"=>"5333ded3247580dcff000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5333ded3247580dcff000002", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 UTC}] flags=[] (0.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5333ded3247580dcff000007", "original_id"=>"5333ded3247580dcff00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.9250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded3247580dcff00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"name", :_slug=>"findable-entry", :site_id=>"5333ded3247580dcff000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5333ded3247580dcff000007", "original_id"=>"5333ded3247580dcff00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded3247580dcff00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded3247580dcff000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333ded3247580dcff000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4208ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded3247580dcff000007"]}}} (0.4039ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded3247580dcff000007"]}}} (0.2718ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded3247580dcff000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (6.1612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333ded3247580dcff00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5333ded3247580dcff000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333ded3247580dcff000007", "content_type_id"=>"5333ded3247580dcff000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5333ded3247580dcff000002", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:27 UTC, "created_at"=>2014-03-27 08:18:27 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::ContentEntry5333ded3247580dcff000007", "original_id"=>"5333ded3247580dcff00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"name", :_slug=>"hidden", :site_id=>"5333ded3247580dcff000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5333ded3247580dcff000007", "original_id"=>"5333ded3247580dcff00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1538ms) 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.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "$or"=>[{"slug.en"=>"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"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002", "_id"=>{"$ne"=>"5333ded4247580dcff00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5333ded3247580dcff000004"}]}]}, "$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"=>"5333ded4247580dcff00000e", "parent_ids"=>["5333ded3247580dcff000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff00000e"]}}, "$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"=>"5333ded4247580dcff00000e"}, "$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"=>["5333ded4247580dcff00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5333ded3247580dcff000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2019ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002", "_id"=>{"$ne"=>"5333ded4247580dcff000010"}, "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"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5333ded3247580dcff000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded4247580dcff000010", "parent_ids"=>["5333ded3247580dcff000004"], "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"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000010"]}}, "$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"=>"5333ded4247580dcff000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000010"]}} 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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002", "_id"=>{"$ne"=>"5333ded4247580dcff000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5333ded3247580dcff000004"}]}]}, "$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"=>"5333ded4247580dcff000011", "parent_ids"=>["5333ded3247580dcff000004"], "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"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000011"]}} 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.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002", "_id"=>{"$ne"=>"5333ded4247580dcff000012"}, "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"=>"5333ded3247580dcff000004", "site_id"=>"5333ded3247580dcff000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5333ded3247580dcff000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded4247580dcff000012", "parent_ids"=>["5333ded3247580dcff000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5333ded3247580dcff000002", "parent_id"=>"5333ded3247580dcff000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000012"]}}, "$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"=>"5333ded4247580dcff000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5333ded3247580dcff000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"5333ded3247580dcff000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5333ded3247580dcff000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-27 08:18:28 UTC}} flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "template_dependencies.en"=>{"$in"=>["5333ded3247580dcff000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded3247580dcff000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5333ded3247580dcff000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5333ded3247580dcff000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1442ms) 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.5558ms) 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.3619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333ded4247580dcff000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-27 08:18:27 UTC, "updated_at"=>2014-03-27 08:18:28 UTC, "memberships"=>[{"_id"=>"5333ded4247580dcff000015", "role"=>"admin", "account_id"=>"5333ded3247580dcff000001"}]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5333ded4247580dcff000014", "_id"=>{"$ne"=>"5333ded4247580dcff000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5333ded4247580dcff000016", "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"=>"5333ded4247580dcff000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000014", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000016"}, "$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"=>["5333ded4247580dcff000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000016", "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"=>"5333ded4247580dcff000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5333ded4247580dcff000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000014", "_id"=>{"$ne"=>"5333ded4247580dcff000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5333ded4247580dcff000018", "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"=>"5333ded4247580dcff000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000014", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000018"}, "$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"=>["5333ded4247580dcff000018"]}} 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"=>"5333ded4247580dcff000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000014", "_id"=>{"$ne"=>"5333ded4247580dcff000019"}, "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"=>nil, "site_id"=>"5333ded4247580dcff000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2732ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded4247580dcff000019", "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"=>"5333ded4247580dcff000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000014", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000019", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff00001a", "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=>"5333ded4247580dcff000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5333ded4247580dcff000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4213ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5333ded4247580dcff00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333ded4247580dcff000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333ded4247580dcff00001c", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC, "entries_custom_fields"=>[{"_id"=>"5333ded4247580dcff00001c", "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.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded4247580dcff00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff00001b"]}} 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_content_entries selector={"content_type_id"=>"5333ded4247580dcff00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5002ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff00001b"]}}} (0.4990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333ded4247580dcff00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333ded4247580dcff00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333ded4247580dcff00001b", "content_type_id"=>"5333ded4247580dcff00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5333ded4247580dcff000014", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5333ded4247580dcff00001b", "original_id"=>"5333ded4247580dcff00001d", "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"=>"5333ded4247580dcff00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"name", :_slug=>"not-findable-entry", :site_id=>"5333ded4247580dcff000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5333ded4247580dcff00001b", "original_id"=>"5333ded4247580dcff00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1810ms) 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.0861ms) 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.1409ms) Started GET "/" for 127.0.0.1 at 2014-03-27 09:18: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 (21.8987ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) Rendered text template (0.0ms) Completed 200 OK in 39.7ms (Views: 12.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-27 09:18:28 +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.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "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.6192ms) 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"=>"5333ded3247580dcff000002", "locale"=>"en"}} (12.6681ms) Rendered text template (0.0ms) Completed 200 OK in 30.7ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2014-03-27 09:18:28 +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.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "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.6380ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-27 09:18: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.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4890ms) 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-03-27 09:18:28 +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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded3247580dcff000002", "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.6437ms) 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"=>"5333ded3247580dcff000002", "locale"=>"en"}} (0.5538ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (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.7062ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (10.1688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (15.7743ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (6.9640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (5.2259ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.8520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (7.4589ms) 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.4451ms) 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.5028ms) 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.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5333ded4247580dcff00001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8e712b698cdee8c9672c26d1de9f67a720c45337", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Knin33FLF1DNHk83UyVB", "api_key"=>"130f5ee252187e67bb0541e3aa71ecb9bbc19e7e", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1452ms) 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.6850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333ded4247580dcff000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-27 08:18:27 UTC, "updated_at"=>2014-03-27 08:18:28 UTC, "memberships"=>[{"_id"=>"5333ded4247580dcff000021", "role"=>"admin", "account_id"=>"5333ded4247580dcff00001f"}]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000020", "_id"=>{"$ne"=>"5333ded4247580dcff000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded4247580dcff000022", "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"=>"5333ded4247580dcff000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4678ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5333ded4247580dcff000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000022", "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"=>"5333ded4247580dcff000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000020", "_id"=>{"$ne"=>"5333ded4247580dcff000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000020"}, "$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"=>"5333ded4247580dcff000024", "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"=>"5333ded4247580dcff000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000024"}, "$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"=>["5333ded4247580dcff000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5333ded4247580dcff000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5333ded4247580dcff000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333ded4247580dcff000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333ded4247580dcff000026", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC, "entries_custom_fields"=>[{"_id"=>"5333ded4247580dcff000026", "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.1991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333ded4247580dcff000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5333ded4247580dcff000027", "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", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}}} flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded4247580dcff000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333ded4247580dcff000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7563ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}}} (0.5472ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333ded4247580dcff000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333ded4247580dcff000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333ded4247580dcff000025", "content_type_id"=>"5333ded4247580dcff000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5333ded4247580dcff000020", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5333ded4247580dcff000025", "original_id"=>"5333ded4247580dcff000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"name", :_slug=>"findable-entry", :site_id=>"5333ded4247580dcff000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5333ded4247580dcff000025", "original_id"=>"5333ded4247580dcff000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded4247580dcff00002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333ded4247580dcff000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3648ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}}} (0.4003ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}}} (0.3312ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333ded4247580dcff00002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5333ded4247580dcff000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333ded4247580dcff000025", "content_type_id"=>"5333ded4247580dcff000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5333ded4247580dcff000020", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 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::ContentEntry5333ded4247580dcff000025", "original_id"=>"5333ded4247580dcff00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5667ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff00002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"name", :_slug=>"hidden", :site_id=>"5333ded4247580dcff000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5333ded4247580dcff000025", "original_id"=>"5333ded4247580dcff00002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2360ms) 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.7181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020", "_id"=>{"$ne"=>"5333ded4247580dcff00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5333ded4247580dcff000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded4247580dcff00002c", "parent_ids"=>["5333ded4247580dcff000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff00002c"]}}, "$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"=>"5333ded4247580dcff00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff00002c"]}} 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"=>"5333ded4247580dcff00002c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff00002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5333ded4247580dcff000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff00002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (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.6762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020", "_id"=>{"$ne"=>"5333ded4247580dcff00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5333ded4247580dcff000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333ded4247580dcff00002e", "parent_ids"=>["5333ded4247580dcff000022"], "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"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff00002e"]}}, "$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"=>"5333ded4247580dcff00002e"}, "$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"=>["5333ded4247580dcff00002e"]}} 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.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020", "_id"=>{"$ne"=>"5333ded4247580dcff00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5333ded4247580dcff000022"}]}]}, "$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"=>"5333ded4247580dcff00002f", "parent_ids"=>["5333ded4247580dcff000022"], "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"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff00002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3343ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff00002f"]}} 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.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020", "_id"=>{"$ne"=>"5333ded4247580dcff000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333ded4247580dcff000022", "site_id"=>"5333ded4247580dcff000020"}, "$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"=>"5333ded4247580dcff000022"}]}]}, "$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"=>"5333ded4247580dcff000030", "parent_ids"=>["5333ded4247580dcff000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5333ded4247580dcff000020", "parent_id"=>"5333ded4247580dcff000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000030"]}}, "$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"=>"5333ded4247580dcff000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3583ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5333ded4247580dcff000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5333ded4247580dcff000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5333ded4247580dcff000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-27 08:18:28 UTC}} flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000022"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000022", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5333ded4247580dcff000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5333ded4247580dcff000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1709ms) 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.5248ms) 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.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333ded4247580dcff000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-27 08:18:27 UTC, "updated_at"=>2014-03-27 08:18:28 UTC, "memberships"=>[{"_id"=>"5333ded4247580dcff000033", "role"=>"admin", "account_id"=>"5333ded4247580dcff00001f"}]}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000032", "_id"=>{"$ne"=>"5333ded4247580dcff000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5333ded4247580dcff000034", "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"=>"5333ded4247580dcff000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000032", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000034"]}}, "$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"=>"5333ded4247580dcff000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000034"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000034", "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"=>"5333ded4247580dcff000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5333ded4247580dcff000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5333ded4247580dcff000032", "_id"=>{"$ne"=>"5333ded4247580dcff000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000032"}, "$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"=>"5333ded4247580dcff000036", "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"=>"5333ded4247580dcff000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000032", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000036"]}}, "$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"=>"5333ded4247580dcff000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000036"]}} 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=locomotive_pages selector={"site_id"=>"5333ded4247580dcff000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333ded4247580dcff000032", "_id"=>{"$ne"=>"5333ded4247580dcff000037"}, "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"=>"5333ded4247580dcff000032"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5333ded4247580dcff000037", "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"=>"5333ded4247580dcff000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000032", "template_dependencies.en"=>{"$in"=>["5333ded4247580dcff000037"]}}, "$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"=>"5333ded4247580dcff000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333ded4247580dcff000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000037", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff000038", "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=>"5333ded4247580dcff000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5333ded4247580dcff000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5333ded4247580dcff000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4606ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5333ded4247580dcff000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333ded4247580dcff000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333ded4247580dcff00003a", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 UTC, "entries_custom_fields"=>[{"_id"=>"5333ded4247580dcff00003a", "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"=>"5333ded4247580dcff00003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000039"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333ded4247580dcff000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6251ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000039"]}}} (0.5431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333ded4247580dcff00003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333ded4247580dcff000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333ded4247580dcff000039", "content_type_id"=>"5333ded4247580dcff000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5333ded4247580dcff000032", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:28 UTC, "created_at"=>2014-03-27 08:18:28 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::ContentEntry5333ded4247580dcff000039", "original_id"=>"5333ded4247580dcff00003b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5333ded4247580dcff00003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"name", :_slug=>"not-findable-entry", :site_id=>"5333ded4247580dcff000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5333ded4247580dcff000039", "original_id"=>"5333ded4247580dcff00003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1798ms) 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.1078ms) 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.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded4247580dcff000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333ded4247580dcff00002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333ded4247580dcff000025"} update={"$set"=>{"updated_at"=>2014-03-27 08:18:28 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1109ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333ded4247580dcff000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1481ms) Started GET "/" for 127.0.0.1 at 2014-03-27 09:18: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.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "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 4.7ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-27 09:18: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.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "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.5360ms) 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"=>"5333ded4247580dcff000020", "locale"=>"en"}} (0.4051ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333ded4247580dcff000025"} 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"=>"5333ded4247580dcff000025", "updated_at"=>{"$lt"=>2014-03-27 08:18:28 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5333ded4247580dcff000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5333ded4247580dcff000020"}, "$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_content_types selector={"$query"=>{"_id"=>"5333ded4247580dcff000025"}, "$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=locomotive_content_entries selector={"_id"=>"5333ded4247580dcff000028"} update={"$set"=>{"updated_at"=>2014-03-27 08:18:28 UTC}} flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5333ded4247580dcff000025", "original_id"=>"5333ded4247580dcff000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.0708ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5333ded4247580dcff000029"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"name", :_slug=>"findable-entry", :site_id=>"5333ded4247580dcff000020", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5333ded4247580dcff000020"}, "$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_content_types selector={"$query"=>{"_id"=>"5333ded4247580dcff000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5333ded4247580dcff00002a"} update={"$set"=>{"updated_at"=>2014-03-27 08:18:28 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::ContentEntry5333ded4247580dcff000025", "original_id"=>"5333ded4247580dcff00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7730ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5333ded4247580dcff00002b"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"name", :_slug=>"hidden", :site_id=>"5333ded4247580dcff000020", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1652ms) Started GET "/en/" for 127.0.0.1 at 2014-03-27 09:18:28 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-27 09:18:28 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"5333ded4247580dcff000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6797ms) 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-03-27 09:18: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.8028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333ded4247580dcff000020", "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.6711ms) 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"=>"5333ded4247580dcff000020", "locale"=>"en"}} (0.5620ms) 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.7751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6821ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5898ms) 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.3839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.5708ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9248ms) 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.5689ms) 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.5491ms) 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.9589ms) 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.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5333dee7247580a6e7000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"68b6ad3881cf010f88ff9518493df54b71b001df", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pxbDmEkZwh2FjYeJMnMU", "api_key"=>"4aa7255534750b6f24473a92a8e3c4a43b83fdf7", "updated_at"=>2014-03-27 08:18:47 UTC, "created_at"=>2014-03-27 08:18:47 UTC}] flags=[] (0.1926ms) 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.8640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333dee7247580a6e7000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-27 08:18:42 UTC, "updated_at"=>2014-03-27 08:18:47 UTC, "memberships"=>[{"_id"=>"5333dee7247580a6e7000003", "role"=>"admin", "account_id"=>"5333dee7247580a6e7000001"}]}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333dee7247580a6e7000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333dee7247580a6e7000002", "_id"=>{"$ne"=>"5333dee7247580a6e7000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5424ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333dee7247580a6e7000004", "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"=>"5333dee7247580a6e7000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:47 UTC, "created_at"=>2014-03-27 08:18:47 UTC}] flags=[] (0.3150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004"}, "$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"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee7247580a6e7000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4122ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333dee7247580a6e7000004"]}} 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"=>"5333dee7247580a6e7000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333dee7247580a6e7000002", "_id"=>{"$ne"=>"5333dee7247580a6e7000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333dee7247580a6e7000002"}, "$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"=>"5333dee7247580a6e7000005", "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"=>"5333dee7247580a6e7000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:47 UTC, "created_at"=>2014-03-27 08:18:47 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee7247580a6e7000005"]}}, "$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"=>"5333dee7247580a6e7000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333dee7247580a6e7000005"]}} 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_content_types selector={"site_id"=>"5333dee7247580a6e7000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5333dee7247580a6e7000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333dee7247580a6e7000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333dee8247580a6e7000007", "updated_at"=>2014-03-27 08:18:48 UTC, "created_at"=>2014-03-27 08:18:48 UTC, "entries_custom_fields"=>[{"_id"=>"5333dee8247580a6e7000007", "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.2310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333dee7247580a6e7000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5333dee8247580a6e7000008", "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", "updated_at"=>2014-03-27 08:18:48 UTC, "created_at"=>2014-03-27 08:18:48 UTC}}} flags=[] (0.1893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333dee8247580a6e7000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333dee7247580a6e7000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333dee7247580a6e7000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333dee7247580a6e7000006"]}}} (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333dee8247580a6e7000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333dee7247580a6e7000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333dee7247580a6e7000006", "content_type_id"=>"5333dee7247580a6e7000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5333dee7247580a6e7000002", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:48 UTC, "created_at"=>2014-03-27 08:18:48 UTC}] flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333dee8247580a6e700000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5333dee7247580a6e7000006"]}} 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"=>"5333dee7247580a6e7000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333dee7247580a6e7000006"]}}} (0.4463ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333dee7247580a6e7000006"]}}} (0.4761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333dee7247580a6e7000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333dee8247580a6e700000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5333dee7247580a6e7000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333dee7247580a6e7000006", "content_type_id"=>"5333dee7247580a6e7000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5333dee7247580a6e7000002", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:48 UTC, "created_at"=>2014-03-27 08:18:48 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.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002", "_id"=>{"$ne"=>"5333dee9247580a6e700000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5333dee7247580a6e7000004"}]}]}, "$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"=>"5333dee9247580a6e700000b", "parent_ids"=>["5333dee7247580a6e7000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:49 UTC, "created_at"=>2014-03-27 08:18:49 UTC}] flags=[] (0.2613ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee9247580a6e700000b"]}}, "$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"=>"5333dee9247580a6e700000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333dee9247580a6e700000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002", "_id"=>{"$ne"=>"5333dee9247580a6e700000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002"}, "$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"=>"5333dee7247580a6e7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5333dee9247580a6e700000c", "parent_ids"=>["5333dee7247580a6e7000004"], "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"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:49 UTC, "created_at"=>2014-03-27 08:18:49 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee9247580a6e700000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee9247580a6e700000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333dee9247580a6e700000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1342ms) 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"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002", "_id"=>{"$ne"=>"5333dee9247580a6e700000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5333dee7247580a6e7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333dee9247580a6e700000d", "parent_ids"=>["5333dee7247580a6e7000004"], "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"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:49 UTC, "created_at"=>2014-03-27 08:18:49 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee9247580a6e700000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee9247580a6e700000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333dee9247580a6e700000d"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "$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"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002", "_id"=>{"$ne"=>"5333dee9247580a6e700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333dee7247580a6e7000004", "site_id"=>"5333dee7247580a6e7000002"}, "$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"=>"5333dee7247580a6e7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333dee9247580a6e700000e", "parent_ids"=>["5333dee7247580a6e7000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5333dee7247580a6e7000002", "parent_id"=>"5333dee7247580a6e7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:49 UTC, "created_at"=>2014-03-27 08:18:49 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee9247580a6e700000e"]}}, "$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"=>"5333dee9247580a6e700000e"}, "$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"=>["5333dee9247580a6e700000e"]}} 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={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5333dee7247580a6e7000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5333dee7247580a6e7000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-27 08:18:50 UTC}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "template_dependencies.en"=>{"$in"=>["5333dee7247580a6e7000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7031ms) 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.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333deeb247580a6e700000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-27 08:18:42 UTC, "updated_at"=>2014-03-27 08:18:51 UTC, "memberships"=>[{"_id"=>"5333deeb247580a6e7000010", "role"=>"admin", "account_id"=>"5333dee7247580a6e7000001"}]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333deeb247580a6e700000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333deeb247580a6e700000f", "_id"=>{"$ne"=>"5333deeb247580a6e7000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5333deeb247580a6e7000011", "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"=>"5333deeb247580a6e700000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:51 UTC, "created_at"=>2014-03-27 08:18:51 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333deeb247580a6e700000f", "template_dependencies.en"=>{"$in"=>["5333deeb247580a6e7000011"]}}, "$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"=>"5333deeb247580a6e7000011"}, "$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"=>["5333deeb247580a6e7000011"]}} 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={"site_id"=>"5333deeb247580a6e700000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333deeb247580a6e700000f", "_id"=>{"$ne"=>"5333deeb247580a6e7000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"5333deeb247580a6e700000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333deeb247580a6e7000012", "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"=>"5333deeb247580a6e700000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:51 UTC, "created_at"=>2014-03-27 08:18:51 UTC}] flags=[] (0.2892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333deeb247580a6e700000f", "template_dependencies.en"=>{"$in"=>["5333deeb247580a6e7000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333deeb247580a6e7000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333deeb247580a6e7000012"]}} 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={"site_id"=>"5333deeb247580a6e700000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5333deeb247580a6e700000f", "_id"=>{"$ne"=>"5333deeb247580a6e7000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333deeb247580a6e700000f"}, "$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.2449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333deeb247580a6e7000013", "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"=>"5333deeb247580a6e700000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:51 UTC, "created_at"=>2014-03-27 08:18:51 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333deeb247580a6e700000f", "template_dependencies.en"=>{"$in"=>["5333deeb247580a6e7000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333deeb247580a6e7000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3302ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333deeb247580a6e7000013"]}} 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_content_types selector={"site_id"=>"5333deeb247580a6e700000f", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5333deed247580a6e7000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333deeb247580a6e700000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333deed247580a6e7000015", "updated_at"=>2014-03-27 08:18:53 UTC, "created_at"=>2014-03-27 08:18:53 UTC, "entries_custom_fields"=>[{"_id"=>"5333deed247580a6e7000015", "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.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333deed247580a6e7000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333deed247580a6e7000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333deed247580a6e7000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333deed247580a6e7000014"]}}} (0.5250ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333deed247580a6e7000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333deed247580a6e7000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333deed247580a6e7000014", "content_type_id"=>"5333deed247580a6e7000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5333deeb247580a6e700000f", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:53 UTC, "created_at"=>2014-03-27 08:18:53 UTC}] flags=[] (0.2210ms) Started GET "/" for 127.0.0.1 at 2014-03-27 09:18: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.6883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) Rendered text template (0.0ms) Completed 200 OK in 11.6ms (Views: 6.6ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-27 09:18:56 +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.8671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "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.7360ms) Rendered text template (0.0ms) Completed 200 OK in 470.5ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2014-03-27 09:18: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.8068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "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.8321ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2014-03-27 09:18: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.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8788ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-27 09:18: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.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333dee7247580a6e7000002", "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.6032ms) Rendered text template (0.0ms) Completed 200 OK in 438.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.7329ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8351ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0421ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0591ms) 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.4480ms) 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.8450ms) 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.3870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5333def1247580a6e7000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"bf147c8772d33a1bdcdc1821f90ac9b33127c0a0", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"hsz4RHpoqy3mTvvn3NqE", "api_key"=>"fce982ec2bc56420e680cf37b50e5ea8a364d22e", "updated_at"=>2014-03-27 08:18:57 UTC, "created_at"=>2014-03-27 08:18:57 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.8771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333def1247580a6e7000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-27 08:18:42 UTC, "updated_at"=>2014-03-27 08:18:57 UTC, "memberships"=>[{"_id"=>"5333def1247580a6e7000019", "role"=>"admin", "account_id"=>"5333def1247580a6e7000017"}]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333def1247580a6e7000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def1247580a6e7000018", "_id"=>{"$ne"=>"5333def1247580a6e700001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5333def1247580a6e700001a", "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"=>"5333def1247580a6e7000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:57 UTC, "created_at"=>2014-03-27 08:18:57 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def1247580a6e700001a"]}}, "$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"=>"5333def1247580a6e700001a"}, "$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"=>["5333def1247580a6e700001a"]}} 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"=>"5333def1247580a6e7000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def1247580a6e7000018", "_id"=>{"$ne"=>"5333def2247580a6e700001b"}, "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"=>"5333def1247580a6e7000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333def2247580a6e700001b", "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"=>"5333def1247580a6e7000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:58 UTC, "created_at"=>2014-03-27 08:18:58 UTC}] flags=[] (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def2247580a6e700001b"]}}, "$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"=>"5333def2247580a6e700001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def2247580a6e700001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5333def1247580a6e7000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5333def2247580a6e700001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333def1247580a6e7000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333def2247580a6e700001d", "updated_at"=>2014-03-27 08:18:58 UTC, "created_at"=>2014-03-27 08:18:58 UTC, "entries_custom_fields"=>[{"_id"=>"5333def2247580a6e700001d", "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.2313ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333def2247580a6e700001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5333def2247580a6e700001e", "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", "updated_at"=>2014-03-27 08:18:58 UTC, "created_at"=>2014-03-27 08:18:58 UTC}}} flags=[] (0.2651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333def2247580a6e700001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333def2247580a6e700001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}}} (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333def2247580a6e700001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333def2247580a6e700001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333def2247580a6e700001c", "content_type_id"=>"5333def2247580a6e700001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5333def1247580a6e7000018", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:58 UTC, "created_at"=>2014-03-27 08:18:58 UTC}] flags=[] (0.3428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333def3247580a6e7000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333def2247580a6e700001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4177ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}}} (0.5169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}}} (0.3870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333def3247580a6e7000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5333def2247580a6e700001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333def2247580a6e700001c", "content_type_id"=>"5333def2247580a6e700001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5333def1247580a6e7000018", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:18:59 UTC, "created_at"=>2014-03-27 08:18:59 UTC}] flags=[] (0.2272ms) 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.7558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018", "_id"=>{"$ne"=>"5333def3247580a6e7000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5333def1247580a6e700001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7172ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333def3247580a6e7000021", "parent_ids"=>["5333def1247580a6e700001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:18:59 UTC, "created_at"=>2014-03-27 08:18:59 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def3247580a6e7000021"]}}, "$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"=>"5333def3247580a6e7000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def3247580a6e7000021"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8304ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018", "_id"=>{"$ne"=>"5333def4247580a6e7000022"}, "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"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5333def1247580a6e700001a"}]}]}, "$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"=>"5333def4247580a6e7000022", "parent_ids"=>["5333def1247580a6e700001a"], "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"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:19:00 UTC, "created_at"=>2014-03-27 08:19:00 UTC}] flags=[] (0.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def4247580a6e7000022"]}}, "$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"=>"5333def4247580a6e7000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def4247580a6e7000022"]}} 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.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018", "_id"=>{"$ne"=>"5333def4247580a6e7000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5333def1247580a6e700001a"}]}]}, "$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"=>"5333def4247580a6e7000023", "parent_ids"=>["5333def1247580a6e700001a"], "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"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:19:00 UTC, "created_at"=>2014-03-27 08:19:00 UTC}] flags=[] (0.2358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def4247580a6e7000023"]}}, "$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"=>"5333def4247580a6e7000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def4247580a6e7000023"]}} 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.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018", "_id"=>{"$ne"=>"5333def4247580a6e7000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5333def1247580a6e700001a", "site_id"=>"5333def1247580a6e7000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5333def1247580a6e700001a"}]}]}, "$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"=>"5333def4247580a6e7000024", "parent_ids"=>["5333def1247580a6e700001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5333def1247580a6e7000018", "parent_id"=>"5333def1247580a6e700001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:19:00 UTC, "created_at"=>2014-03-27 08:19:00 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def4247580a6e7000024"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"5333def4247580a6e7000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def4247580a6e7000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5333def1247580a6e7000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4442ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5333def1247580a6e700001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-27 08:19:00 UTC}} flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "template_dependencies.en"=>{"$in"=>["5333def1247580a6e700001a"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6289ms) 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.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5333def5247580a6e7000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-27 08:18:42 UTC, "updated_at"=>2014-03-27 08:19:01 UTC, "memberships"=>[{"_id"=>"5333def5247580a6e7000026", "role"=>"admin", "account_id"=>"5333def1247580a6e7000017"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5333def5247580a6e7000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def5247580a6e7000025", "_id"=>{"$ne"=>"5333def5247580a6e7000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333def5247580a6e7000027", "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"=>"5333def5247580a6e7000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:19:01 UTC, "created_at"=>2014-03-27 08:19:01 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def5247580a6e7000025", "template_dependencies.en"=>{"$in"=>["5333def5247580a6e7000027"]}}, "$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"=>"5333def5247580a6e7000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def5247580a6e7000027"]}} 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"=>"5333def5247580a6e7000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6063ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def5247580a6e7000025", "_id"=>{"$ne"=>"5333def6247580a6e7000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def5247580a6e7000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333def6247580a6e7000028", "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"=>"5333def5247580a6e7000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:19:02 UTC, "created_at"=>2014-03-27 08:19:02 UTC}] flags=[] (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def5247580a6e7000025", "template_dependencies.en"=>{"$in"=>["5333def6247580a6e7000028"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5333def6247580a6e7000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5333def6247580a6e7000028"]}} 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={"site_id"=>"5333def5247580a6e7000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def5247580a6e7000025", "_id"=>{"$ne"=>"5333def6247580a6e7000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5333def5247580a6e7000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5333def6247580a6e7000029", "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"=>"5333def5247580a6e7000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-27 08:19:02 UTC, "created_at"=>2014-03-27 08:19:02 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def5247580a6e7000025", "template_dependencies.en"=>{"$in"=>["5333def6247580a6e7000029"]}}, "$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"=>"5333def6247580a6e7000029"}, "$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"=>["5333def6247580a6e7000029"]}} 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"=>"5333def5247580a6e7000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5333def8247580a6e700002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5333def5247580a6e7000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5333def8247580a6e700002b", "updated_at"=>2014-03-27 08:19:04 UTC, "created_at"=>2014-03-27 08:19:04 UTC, "entries_custom_fields"=>[{"_id"=>"5333def8247580a6e700002b", "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.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333def8247580a6e700002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333def8247580a6e700002a"]}} 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={"content_type_id"=>"5333def8247580a6e700002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5333def8247580a6e700002a"]}}} (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5333def8247580a6e700002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5333def8247580a6e700002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5333def8247580a6e700002a", "content_type_id"=>"5333def8247580a6e700002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5333def5247580a6e7000025", "_label_field_name"=>"name", "updated_at"=>2014-03-27 08:19:04 UTC, "created_at"=>2014-03-27 08:19:04 UTC}] flags=[] (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5333def2247580a6e700001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}} 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_entries selector={"_id"=>{"$ne"=>"5333def3247580a6e7000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4892ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333def2247580a6e700001c"} update={"$set"=>{"updated_at"=>2014-03-27 08:19:05 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5333def2247580a6e700001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1788ms) Started GET "/" for 127.0.0.1 at 2014-03-27 09:19:05 +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.6828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7589ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-27 09:19:05 +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.7980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "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.7660ms) Rendered text template (0.0ms) Completed 200 OK in 447.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5333def2247580a6e700001c"} 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_content_entries selector={"content_type_id"=>"5333def2247580a6e700001c", "updated_at"=>{"$lt"=>2014-03-27 08:19:05 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5333def2247580a6e700001c"]}} 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_sites selector={"$query"=>{"_id"=>"5333def1247580a6e7000018"}, "$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_content_types selector={"$query"=>{"_id"=>"5333def2247580a6e700001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5333def2247580a6e700001f"} update={"$set"=>{"updated_at"=>2014-03-27 08:19:05 UTC}} flags=[] (0.1643ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5333def1247580a6e7000018"}, "$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_content_types selector={"$query"=>{"_id"=>"5333def2247580a6e700001c"}, "$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_content_entries selector={"_id"=>"5333def3247580a6e7000020"} update={"$set"=>{"updated_at"=>2014-03-27 08:19:06 UTC}} flags=[] (0.1371ms) Started GET "/en/" for 127.0.0.1 at 2014-03-27 09:19:06 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-27 09:19:06 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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"=>"5333def1247580a6e7000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6232ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-27 09:19:06 +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.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5333def1247580a6e7000018", "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.5698ms) Rendered text template (0.0ms) Completed 200 OK in 456.5ms (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.7658ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6029ms) 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"} (1.0030ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (19.6710ms) 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 (31.4622ms) 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 (25.6991ms) 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 (7.5877ms) 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} (17.8752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53353e83247580001f000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8bc2e25c2d90c73c045550f67105325f39f52d09", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"gDNFTosQ43f4r2DT3BHn", "api_key"=>"217f10c6efee8e46fa2a895b5831a738be608ed7", "updated_at"=>2014-03-28 09:18:59 UTC, "created_at"=>2014-03-28 09:18:59 UTC}] flags=[] (0.1960ms) 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} (45.4841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e83247580001f000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 09:18:58 UTC, "updated_at"=>2014-03-28 09:18:59 UTC, "memberships"=>[{"_id"=>"53353e83247580001f000003", "role"=>"admin", "account_id"=>"53353e83247580001f000001"}]}] flags=[] (0.2487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e83247580001f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (29.3827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e83247580001f000002", "_id"=>{"$ne"=>"53353e83247580001f000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e83247580001f000004", "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"=>"53353e83247580001f000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:18:59 UTC, "created_at"=>2014-03-28 09:18:59 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e83247580001f000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (8.5430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e83247580001f000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e83247580001f000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e83247580001f000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.4250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e83247580001f000002", "_id"=>{"$ne"=>"53353e84247580001f000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.9559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e83247580001f000002"}, "$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"=>"53353e84247580001f000005", "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"=>"53353e83247580001f000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:00 UTC, "created_at"=>2014-03-28 09:19:00 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e84247580001f000005"]}}, "$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"=>"53353e84247580001f000005"}, "$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"=>["53353e84247580001f000005"]}} 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"=>"53353e83247580001f000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"53353e84247580001f000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e83247580001f000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e84247580001f000007", "updated_at"=>2014-03-28 09:19:00 UTC, "created_at"=>2014-03-28 09:19:00 UTC, "entries_custom_fields"=>[{"_id"=>"53353e84247580001f000007", "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.2351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e84247580001f000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53353e84247580001f000008", "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", "updated_at"=>2014-03-28 09:19:00 UTC, "created_at"=>2014-03-28 09:19:00 UTC}}} flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e84247580001f000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (8.0383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e84247580001f000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5698ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}}} (1.1680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e84247580001f000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e84247580001f000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e84247580001f000006", "content_type_id"=>"53353e84247580001f000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53353e83247580001f000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:00 UTC, "created_at"=>2014-03-28 09:19:00 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e85247580001f00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e84247580001f000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4232ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}}} (0.3362ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (7.7422ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e85247580001f00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e84247580001f000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e84247580001f000006", "content_type_id"=>"53353e84247580001f000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53353e83247580001f000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:01 UTC, "created_at"=>2014-03-28 09:19:01 UTC}] flags=[] (0.2551ms) 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"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002", "_id"=>{"$ne"=>"53353e86247580001f00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e83247580001f000004"}]}]}, "$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"=>"53353e86247580001f00000b", "parent_ids"=>["53353e83247580001f000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:02 UTC, "created_at"=>2014-03-28 09:19:02 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e86247580001f00000b"]}}, "$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"=>"53353e86247580001f00000b"}, "$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"=>["53353e86247580001f00000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7563ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002", "_id"=>{"$ne"=>"53353e87247580001f00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002"}, "$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"=>"53353e83247580001f000004"}]}]}, "$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"=>"53353e87247580001f00000c", "parent_ids"=>["53353e83247580001f000004"], "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"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:03 UTC, "created_at"=>2014-03-28 09:19:03 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e87247580001f00000c"]}}, "$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"=>"53353e87247580001f00000c"}, "$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"=>["53353e87247580001f00000c"]}} 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.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002", "_id"=>{"$ne"=>"53353e87247580001f00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e83247580001f000004"}]}]}, "$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"=>"53353e87247580001f00000d", "parent_ids"=>["53353e83247580001f000004"], "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"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:03 UTC, "created_at"=>2014-03-28 09:19:03 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e87247580001f00000d"]}}, "$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"=>"53353e87247580001f00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e87247580001f00000d"]}} 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.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002", "_id"=>{"$ne"=>"53353e87247580001f00000e"}, "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"=>"53353e83247580001f000004", "site_id"=>"53353e83247580001f000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e83247580001f000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4718ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e87247580001f00000e", "parent_ids"=>["53353e83247580001f000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53353e83247580001f000002", "parent_id"=>"53353e83247580001f000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:03 UTC, "created_at"=>2014-03-28 09:19:03 UTC}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e87247580001f00000e"]}}, "$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"=>"53353e87247580001f00000e"}, "$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"=>["53353e87247580001f00000e"]}} 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"=>{"site_id"=>"53353e83247580001f000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53353e83247580001f000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.4829ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53353e83247580001f000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 09:19:04 UTC}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "template_dependencies.en"=>{"$in"=>["53353e83247580001f000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6332ms) 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.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e88247580001f00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 09:18:58 UTC, "updated_at"=>2014-03-28 09:19:04 UTC, "memberships"=>[{"_id"=>"53353e88247580001f000010", "role"=>"admin", "account_id"=>"53353e83247580001f000001"}]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e88247580001f00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e88247580001f00000f", "_id"=>{"$ne"=>"53353e88247580001f000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53353e88247580001f000011", "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"=>"53353e88247580001f00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:04 UTC, "created_at"=>2014-03-28 09:19:04 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e88247580001f00000f", "template_dependencies.en"=>{"$in"=>["53353e88247580001f000011"]}}, "$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"=>"53353e88247580001f000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e88247580001f000011"]}} 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={"site_id"=>"53353e88247580001f00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e88247580001f00000f", "_id"=>{"$ne"=>"53353e89247580001f000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e88247580001f00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5772ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e89247580001f000012", "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"=>"53353e88247580001f00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:05 UTC, "created_at"=>2014-03-28 09:19:05 UTC}] flags=[] (0.2708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e88247580001f00000f", "template_dependencies.en"=>{"$in"=>["53353e89247580001f000012"]}}, "$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"=>"53353e89247580001f000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e89247580001f000012"]}} 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"=>"53353e88247580001f00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e88247580001f00000f", "_id"=>{"$ne"=>"53353e89247580001f000013"}, "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"=>"53353e88247580001f00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5412ms) 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.2911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e89247580001f000013", "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"=>"53353e88247580001f00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:05 UTC, "created_at"=>2014-03-28 09:19:05 UTC}] flags=[] (0.3812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e88247580001f00000f", "template_dependencies.en"=>{"$in"=>["53353e89247580001f000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e89247580001f000013"}, "$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"=>["53353e89247580001f000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353e88247580001f00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e8a247580001f000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e88247580001f00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e8a247580001f000015", "updated_at"=>2014-03-28 09:19:06 UTC, "created_at"=>2014-03-28 09:19:06 UTC, "entries_custom_fields"=>[{"_id"=>"53353e8a247580001f000015", "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.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e8a247580001f000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e8a247580001f000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e8a247580001f000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e8a247580001f000014"]}}} (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e8a247580001f000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e8a247580001f000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e8a247580001f000014", "content_type_id"=>"53353e8a247580001f000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53353e88247580001f00000f", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:06 UTC, "created_at"=>2014-03-28 09:19:06 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e84247580001f000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7613ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e85247580001f00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e84247580001f000006"} update={"$set"=>{"updated_at"=>2014-03-28 09:19:06 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e84247580001f000006"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2620ms) Started GET "/" for 127.0.0.1 at 2014-03-28 10:19:06 +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.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8490ms) Rendered text template (0.0ms) Completed 200 OK in 19.5ms (Views: 12.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 10:19:07 +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.6557ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "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.8750ms) Rendered text template (0.0ms) Completed 200 OK in 478.6ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e84247580001f000006"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e84247580001f000006", "updated_at"=>{"$lt"=>2014-03-28 09:19:06 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53353e84247580001f000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53353e83247580001f000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"53353e84247580001f000006"}, "$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_content_entries selector={"_id"=>"53353e84247580001f000009"} update={"$set"=>{"updated_at"=>2014-03-28 09:19:07 UTC}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53353e83247580001f000002"}, "$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_content_types selector={"$query"=>{"_id"=>"53353e84247580001f000006"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5352ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53353e85247580001f00000a"} update={"$set"=>{"updated_at"=>2014-03-28 09:19:08 UTC}} flags=[] (0.1588ms) Started GET "/en/" for 127.0.0.1 at 2014-03-28 10:19:08 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-28 10:19:08 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9680ms) Rendered text template (0.0ms) Completed 200 OK in 8.1ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 10:19: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.5853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e83247580001f000002", "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.6087ms) Rendered text template (0.0ms) Completed 200 OK in 452.2ms (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.9811ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (25.1431ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (9.2101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (7.1092ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (6.9077ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.9359ms) 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 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.7029ms) 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.4861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53353e8d247580001f000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f5410d9f92d1161fc2c0da87343f0ded74eea060", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RbH49zsZmmzqM1EYryR5", "api_key"=>"75cc0d790eb37e4d0f00b8ccf18724eee42db6ce", "updated_at"=>2014-03-28 09:19:09 UTC, "created_at"=>2014-03-28 09:19:09 UTC}] flags=[] (0.1931ms) 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} (5.0092ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e8d247580001f000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 09:18:58 UTC, "updated_at"=>2014-03-28 09:19:09 UTC, "memberships"=>[{"_id"=>"53353e8d247580001f000019", "role"=>"admin", "account_id"=>"53353e8d247580001f000017"}]}] flags=[] (0.3252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e8d247580001f000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e8d247580001f000018", "_id"=>{"$ne"=>"53353e8d247580001f00001a"}, "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"=>"53353e8d247580001f00001a", "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"=>"53353e8d247580001f000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:09 UTC, "created_at"=>2014-03-28 09:19:09 UTC}] flags=[] (0.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e8d247580001f00001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6168ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e8d247580001f00001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e8d247580001f000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.3260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e8d247580001f000018", "_id"=>{"$ne"=>"53353e8e247580001f00001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e8d247580001f000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.2650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e8e247580001f00001b", "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"=>"53353e8d247580001f000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:10 UTC, "created_at"=>2014-03-28 09:19:10 UTC}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e8e247580001f00001b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53353e8e247580001f00001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.1789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e8e247580001f00001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353e8d247580001f000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e8e247580001f00001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e8d247580001f000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e8e247580001f00001d", "updated_at"=>2014-03-28 09:19:10 UTC, "created_at"=>2014-03-28 09:19:10 UTC, "entries_custom_fields"=>[{"_id"=>"53353e8e247580001f00001d", "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.4017ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e8e247580001f00001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53353e8e247580001f00001e", "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", "updated_at"=>2014-03-28 09:19:10 UTC, "created_at"=>2014-03-28 09:19:10 UTC}}} flags=[] (0.3462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e8e247580001f00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e8e247580001f00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e8e247580001f00001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e8e247580001f00001c"]}}} (1.7087ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e8e247580001f00001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e8e247580001f00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e8e247580001f00001c", "content_type_id"=>"53353e8e247580001f00001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53353e8d247580001f000018", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:10 UTC, "created_at"=>2014-03-28 09:19:10 UTC}] flags=[] (0.4280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e8f247580001f000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e8e247580001f00001c"]}} 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=locomotive_content_entries selector={"content_type_id"=>"53353e8e247580001f00001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e8e247580001f00001c"]}}} (0.5789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e8e247580001f00001c"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e8e247580001f00001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e8f247580001f000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e8e247580001f00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e8e247580001f00001c", "content_type_id"=>"53353e8e247580001f00001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53353e8d247580001f000018", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:11 UTC, "created_at"=>2014-03-28 09:19:11 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.6461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018", "_id"=>{"$ne"=>"53353e8f247580001f000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53353e8d247580001f00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e8f247580001f000021", "parent_ids"=>["53353e8d247580001f00001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:11 UTC, "created_at"=>2014-03-28 09:19:11 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e8f247580001f000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8f247580001f000021"}, "$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"=>["53353e8f247580001f000021"]}} 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 (2.6722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018", "_id"=>{"$ne"=>"53353e90247580001f000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e8d247580001f00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e90247580001f000022", "parent_ids"=>["53353e8d247580001f00001a"], "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"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:12 UTC, "created_at"=>2014-03-28 09:19:12 UTC}] flags=[] (0.4621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e90247580001f000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e90247580001f000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0002ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e90247580001f000022"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018", "_id"=>{"$ne"=>"53353e90247580001f000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e8d247580001f00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e90247580001f000023", "parent_ids"=>["53353e8d247580001f00001a"], "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"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:12 UTC, "created_at"=>2014-03-28 09:19:12 UTC}] flags=[] (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e90247580001f000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e90247580001f000023"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53353e90247580001f000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2098ms) 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 (2.1560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018", "_id"=>{"$ne"=>"53353e90247580001f000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e8d247580001f00001a", "site_id"=>"53353e8d247580001f000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e8d247580001f00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e90247580001f000024", "parent_ids"=>["53353e8d247580001f00001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53353e8d247580001f000018", "parent_id"=>"53353e8d247580001f00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:12 UTC, "created_at"=>2014-03-28 09:19:12 UTC}] flags=[] (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e90247580001f000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e90247580001f000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1730ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e90247580001f000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "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_sites selector={"$query"=>{"_id"=>"53353e8d247580001f000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53353e8d247580001f00001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 09:19:12 UTC}} flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "template_dependencies.en"=>{"$in"=>["53353e8d247580001f00001a"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9072ms) 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.5388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e91247580001f000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 09:18:58 UTC, "updated_at"=>2014-03-28 09:19:13 UTC, "memberships"=>[{"_id"=>"53353e91247580001f000026", "role"=>"admin", "account_id"=>"53353e8d247580001f000017"}]}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e91247580001f000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"53353e91247580001f000025", "_id"=>{"$ne"=>"53353e91247580001f000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53353e91247580001f000027", "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"=>"53353e91247580001f000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:13 UTC, "created_at"=>2014-03-28 09:19:13 UTC}] flags=[] (0.3033ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e91247580001f000025", "template_dependencies.en"=>{"$in"=>["53353e91247580001f000027"]}}, "$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"=>"53353e91247580001f000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3893ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e91247580001f000027"]}} 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"=>"53353e91247580001f000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e91247580001f000025", "_id"=>{"$ne"=>"53353e92247580001f000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e91247580001f000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e92247580001f000028", "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"=>"53353e91247580001f000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:14 UTC, "created_at"=>2014-03-28 09:19:14 UTC}] flags=[] (0.2663ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e91247580001f000025", "template_dependencies.en"=>{"$in"=>["53353e92247580001f000028"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53353e92247580001f000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e92247580001f000028"]}} 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"=>"53353e91247580001f000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e91247580001f000025", "_id"=>{"$ne"=>"53353e92247580001f000029"}, "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"=>nil, "site_id"=>"53353e91247580001f000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5021ms) 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.2999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e92247580001f000029", "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"=>"53353e91247580001f000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:14 UTC, "created_at"=>2014-03-28 09:19:14 UTC}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e91247580001f000025", "template_dependencies.en"=>{"$in"=>["53353e92247580001f000029"]}}, "$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"=>"53353e92247580001f000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e92247580001f000029"]}} 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_content_types selector={"site_id"=>"53353e91247580001f000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e92247580001f00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e91247580001f000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e92247580001f00002b", "updated_at"=>2014-03-28 09:19:14 UTC, "created_at"=>2014-03-28 09:19:14 UTC, "entries_custom_fields"=>[{"_id"=>"53353e92247580001f00002b", "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.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e92247580001f00002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e92247580001f00002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e92247580001f00002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4807ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e92247580001f00002a"]}}} (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e92247580001f00002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e92247580001f00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e92247580001f00002a", "content_type_id"=>"53353e92247580001f00002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53353e91247580001f000025", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:14 UTC, "created_at"=>2014-03-28 09:19:14 UTC}] flags=[] (0.2198ms) Started GET "/" for 127.0.0.1 at 2014-03-28 10:19:15 +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.7019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6101ms) Rendered text template (0.0ms) Completed 200 OK in 5.5ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-28 10:19:15 +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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "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.7350ms) Rendered text template (0.0ms) Completed 200 OK in 443.9ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-03-28 10:19:15 +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.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "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.5922ms) Rendered text template (0.0ms) Completed 200 OK in 4.3ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-28 10:19:15 +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.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) 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-03-28 10:19:15 +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.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e8d247580001f000018", "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.5581ms) Rendered text template (0.0ms) Completed 200 OK in 440.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 (1.0910ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.9960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1482ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1902ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1692ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1013ms) 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.7682ms) 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.6220ms) 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.8218ms) 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.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53353e9c247580e1fd000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2b969f735b25d6719bf6121e5bb055ad530fcad8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"tgNHmTugrcsAQxb36eiy", "api_key"=>"fa665f91341db323a0c0d99e9f012a6e9f8a96be", "updated_at"=>2014-03-28 09:19:24 UTC, "created_at"=>2014-03-28 09:19:24 UTC}] flags=[] (0.1910ms) 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} (4.5509ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e9c247580e1fd000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 09:19:24 UTC, "updated_at"=>2014-03-28 09:19:24 UTC, "memberships"=>[{"_id"=>"53353e9c247580e1fd000003", "role"=>"admin", "account_id"=>"53353e9c247580e1fd000001"}]}] flags=[] (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9c247580e1fd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0653ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9c247580e1fd000002", "_id"=>{"$ne"=>"53353e9c247580e1fd000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53353e9c247580e1fd000004", "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"=>"53353e9c247580e1fd000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:24 UTC, "created_at"=>2014-03-28 09:19:24 UTC}] flags=[] (0.2627ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9c247580e1fd000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9c247580e1fd000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9c247580e1fd000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9c247580e1fd000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353e9c247580e1fd000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9c247580e1fd000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3173ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9c247580e1fd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (8.4820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9c247580e1fd000002", "_id"=>{"$ne"=>"53353e9c247580e1fd000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9c247580e1fd000002"}, "$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"=>"53353e9c247580e1fd000006", "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"=>"53353e9c247580e1fd000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:24 UTC, "created_at"=>2014-03-28 09:19:24 UTC}] flags=[] (0.2272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9c247580e1fd000006"]}}, "$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"=>"53353e9c247580e1fd000006"}, "$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"=>["53353e9c247580e1fd000006"]}} 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"=>"53353e9c247580e1fd000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e9c247580e1fd000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e9c247580e1fd000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e9d247580e1fd000008", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC, "entries_custom_fields"=>[{"_id"=>"53353e9d247580e1fd000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e9c247580e1fd000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53353e9d247580e1fd000009", "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", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}}} flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9c247580e1fd000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}}} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e9d247580e1fd00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e9c247580e1fd000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e9c247580e1fd000007", "content_type_id"=>"53353e9c247580e1fd000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53353e9c247580e1fd000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 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::ContentEntry53353e9c247580e1fd000007", "original_id"=>"53353e9d247580e1fd00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53353e9c247580e1fd000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353e9c247580e1fd000007", "original_id"=>"53353e9d247580e1fd00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}} 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"=>"53353e9c247580e1fd000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}}} (0.4940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}}} (0.4742ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e9d247580e1fd00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e9c247580e1fd000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e9c247580e1fd000007", "content_type_id"=>"53353e9c247580e1fd000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53353e9c247580e1fd000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353e9c247580e1fd000007", "original_id"=>"53353e9d247580e1fd00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53353e9c247580e1fd000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353e9c247580e1fd000007", "original_id"=>"53353e9d247580e1fd00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2580ms) 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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002", "_id"=>{"$ne"=>"53353e9d247580e1fd00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53353e9c247580e1fd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd00000e", "parent_ids"=>["53353e9c247580e1fd000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.2313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9d247580e1fd00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd00000e"]}} 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"=>"53353e9d247580e1fd00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53353e9c247580e1fd000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1683ms) 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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002", "_id"=>{"$ne"=>"53353e9d247580e1fd000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6096ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9c247580e1fd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7348ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd000010", "parent_ids"=>["53353e9c247580e1fd000004"], "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"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000010"]}}, "$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"=>"53353e9d247580e1fd000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1261ms) 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.5622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002", "_id"=>{"$ne"=>"53353e9d247580e1fd000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9c247580e1fd000004"}]}]}, "$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"=>"53353e9d247580e1fd000011", "parent_ids"=>["53353e9c247580e1fd000004"], "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"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000011"]}}, "$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"=>"53353e9d247580e1fd000011"}, "$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"=>["53353e9d247580e1fd000011"]}} 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.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002", "_id"=>{"$ne"=>"53353e9d247580e1fd000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9c247580e1fd000004", "site_id"=>"53353e9c247580e1fd000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9c247580e1fd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53353e9d247580e1fd000012", "parent_ids"=>["53353e9c247580e1fd000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53353e9c247580e1fd000002", "parent_id"=>"53353e9c247580e1fd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000012"]}}, "$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"=>"53353e9d247580e1fd000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53353e9c247580e1fd000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "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"=>"53353e9c247580e1fd000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4947ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53353e9c247580e1fd000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 09:19:25 UTC}} flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "template_dependencies.en"=>{"$in"=>["53353e9c247580e1fd000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9c247580e1fd000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53353e9c247580e1fd000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53353e9c247580e1fd000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3939ms) 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.6402ms) 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.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e9d247580e1fd000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 09:19:24 UTC, "updated_at"=>2014-03-28 09:19:25 UTC, "memberships"=>[{"_id"=>"53353e9d247580e1fd000015", "role"=>"admin", "account_id"=>"53353e9c247580e1fd000001"}]}] flags=[] (0.3169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000014", "_id"=>{"$ne"=>"53353e9d247580e1fd000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7343ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd000016", "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"=>"53353e9d247580e1fd000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.4761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000014", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (7.2927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9d247580e1fd000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353e9d247580e1fd000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000014", "_id"=>{"$ne"=>"53353e9d247580e1fd000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7963ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0533ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd000018", "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"=>"53353e9d247580e1fd000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000014", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53353e9d247580e1fd000018"}, "$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"=>["53353e9d247580e1fd000018"]}} 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={"site_id"=>"53353e9d247580e1fd000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000014", "_id"=>{"$ne"=>"53353e9d247580e1fd000019"}, "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"=>"53353e9d247580e1fd000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5403ms) 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"=>"53353e9d247580e1fd000019", "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"=>"53353e9d247580e1fd000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000014", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000019"]}}, "$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"=>{"parent_id"=>"53353e9d247580e1fd000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000019", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00001a", "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=>"53353e9d247580e1fd000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353e9d247580e1fd000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e9d247580e1fd00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e9d247580e1fd000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e9d247580e1fd00001c", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC, "entries_custom_fields"=>[{"_id"=>"53353e9d247580e1fd00001c", "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.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9d247580e1fd00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd00001b"]}}} (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e9d247580e1fd00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e9d247580e1fd00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e9d247580e1fd00001b", "content_type_id"=>"53353e9d247580e1fd00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53353e9d247580e1fd000014", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.2930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd00001b", "original_id"=>"53353e9d247580e1fd00001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53353e9d247580e1fd000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd00001b", "original_id"=>"53353e9d247580e1fd00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2811ms) 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.4821ms) 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.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.4232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7188ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1669ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e9c247580e1fd000007"} update={"$set"=>{"updated_at"=>2014-03-28 09:19:25 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9c247580e1fd000007"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1559ms) Started GET "/" for 127.0.0.1 at 2014-03-28 10:19:25 +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.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6452ms) Rendered text template (0.0ms) Completed 200 OK in 19.6ms (Views: 13.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 10:19:25 +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.9327ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "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.3182ms) 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"=>"53353e9c247580e1fd000002", "locale"=>"en"}} (34.0202ms) Rendered text template (0.0ms) Completed 200 OK in 42.9ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e9c247580e1fd000007"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9c247580e1fd000007", "updated_at"=>{"$lt"=>2014-03-28 09:19:25 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9c247580e1fd000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53353e9c247580e1fd000002"}, "$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_content_types selector={"$query"=>{"_id"=>"53353e9c247580e1fd000007"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8838ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53353e9d247580e1fd00000a"} update={"$set"=>{"updated_at"=>2014-03-28 09:19:25 UTC}} flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353e9c247580e1fd000007", "original_id"=>"53353e9d247580e1fd00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53353e9d247580e1fd00000b"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53353e9c247580e1fd000002", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53353e9c247580e1fd000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"$query"=>{"_id"=>"53353e9c247580e1fd000007"}, "$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_content_entries selector={"_id"=>"53353e9d247580e1fd00000c"} update={"$set"=>{"updated_at"=>2014-03-28 09:19:25 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::ContentEntry53353e9c247580e1fd000007", "original_id"=>"53353e9d247580e1fd00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53353e9d247580e1fd00000d"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53353e9c247580e1fd000002", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.3772ms) Started GET "/en/" for 127.0.0.1 at 2014-03-28 10:19:25 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-28 10:19:25 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.9422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8960ms) Rendered text template (0.0ms) Completed 200 OK in 8.3ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 10:19:25 +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.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9c247580e1fd000002", "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.8721ms) 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"=>"53353e9c247580e1fd000002", "locale"=>"en"}} (0.5939ms) Rendered text template (0.0ms) Completed 200 OK in 16.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.8919ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7757ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.2199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2443ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (19.9311ms) 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.7179ms) 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.6373ms) 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.5419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53353e9d247580e1fd00001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4d517f27db887b01f4972294a6cf2fcc01343b3a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"XpSBvqRrdZe39W99j7Ho", "api_key"=>"9b09c2e9c864818cfeec7689851d4e79fda38f8b", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1261ms) 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.8347ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e9d247580e1fd000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 09:19:24 UTC, "updated_at"=>2014-03-28 09:19:25 UTC, "memberships"=>[{"_id"=>"53353e9d247580e1fd000021", "role"=>"admin", "account_id"=>"53353e9d247580e1fd00001f"}]}] flags=[] (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000020", "_id"=>{"$ne"=>"53353e9d247580e1fd000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd000022", "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"=>"53353e9d247580e1fd000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000022"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"53353e9d247580e1fd000022"}, "$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"=>["53353e9d247580e1fd000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353e9d247580e1fd000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000020", "_id"=>{"$ne"=>"53353e9d247580e1fd000024"}, "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"=>"53353e9d247580e1fd000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53353e9d247580e1fd000024", "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"=>"53353e9d247580e1fd000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000024"]}}, "$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"=>"53353e9d247580e1fd000024"}, "$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"=>["53353e9d247580e1fd000024"]}} 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"=>"53353e9d247580e1fd000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e9d247580e1fd000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e9d247580e1fd000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e9d247580e1fd000026", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC, "entries_custom_fields"=>[{"_id"=>"53353e9d247580e1fd000026", "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.2468ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353e9d247580e1fd000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53353e9d247580e1fd000027", "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", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}}} flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9d247580e1fd000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5603ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000025"]}}} (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e9d247580e1fd000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e9d247580e1fd000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000025", "content_type_id"=>"53353e9d247580e1fd000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53353e9d247580e1fd000020", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000025", "original_id"=>"53353e9d247580e1fd000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53353e9d247580e1fd000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000025", "original_id"=>"53353e9d247580e1fd000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9d247580e1fd000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000025"]}}} (0.4230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000025"]}}} (0.4201ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e9d247580e1fd00002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e9d247580e1fd000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000025", "content_type_id"=>"53353e9d247580e1fd000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53353e9d247580e1fd000020", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 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::ContentEntry53353e9d247580e1fd000025", "original_id"=>"53353e9d247580e1fd00002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53353e9d247580e1fd000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000025", "original_id"=>"53353e9d247580e1fd00002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2890ms) 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.1070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020", "_id"=>{"$ne"=>"53353e9d247580e1fd00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9d247580e1fd000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.4688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd00002c", "parent_ids"=>["53353e9d247580e1fd000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd00002c"]}}, "$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"=>"53353e9d247580e1fd00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd00002c"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd00002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd00002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53353e9d247580e1fd000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd00002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2959ms) 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.7560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "$or"=>[{"slug.en"=>"unpublished-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"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020", "_id"=>{"$ne"=>"53353e9d247580e1fd00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9d247580e1fd000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53353e9d247580e1fd00002e", "parent_ids"=>["53353e9d247580e1fd000022"], "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"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd00002e"]}}, "$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"=>"53353e9d247580e1fd00002e"}, "$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"=>["53353e9d247580e1fd00002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1900ms) 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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020", "_id"=>{"$ne"=>"53353e9d247580e1fd00002f"}, "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"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9d247580e1fd000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd00002f", "parent_ids"=>["53353e9d247580e1fd000022"], "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"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd00002f"]}}, "$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"=>"53353e9d247580e1fd00002f"}, "$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"=>["53353e9d247580e1fd00002f"]}} 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={"$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"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020", "_id"=>{"$ne"=>"53353e9d247580e1fd000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9d247580e1fd000022", "site_id"=>"53353e9d247580e1fd000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353e9d247580e1fd000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53353e9d247580e1fd000030", "parent_ids"=>["53353e9d247580e1fd000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53353e9d247580e1fd000020", "parent_id"=>"53353e9d247580e1fd000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000030"]}}, "$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"=>"53353e9d247580e1fd000030"}, "$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"=>["53353e9d247580e1fd000030"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353e9d247580e1fd000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53353e9d247580e1fd000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "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_sites selector={"$query"=>{"_id"=>"53353e9d247580e1fd000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53353e9d247580e1fd000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 09:19:25 UTC}} flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53353e9d247580e1fd000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53353e9d247580e1fd000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1678ms) 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.5808ms) 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.3181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353e9d247580e1fd000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 09:19:24 UTC, "updated_at"=>2014-03-28 09:19:25 UTC, "memberships"=>[{"_id"=>"53353e9d247580e1fd000033", "role"=>"admin", "account_id"=>"53353e9d247580e1fd00001f"}]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000032", "_id"=>{"$ne"=>"53353e9d247580e1fd000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4537ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd000034", "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"=>"53353e9d247580e1fd000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000032", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353e9d247580e1fd000034"}, "$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"=>["53353e9d247580e1fd000034"]}} 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"=>"53353e9d247580e1fd000034", "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"=>"53353e9d247580e1fd000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353e9d247580e1fd000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000032", "_id"=>{"$ne"=>"53353e9d247580e1fd000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.7180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53353e9d247580e1fd000036", "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"=>"53353e9d247580e1fd000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000032", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000036"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53353e9d247580e1fd000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4497ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353e9d247580e1fd000036"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353e9d247580e1fd000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000032", "_id"=>{"$ne"=>"53353e9d247580e1fd000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353e9d247580e1fd000032"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2806ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353e9d247580e1fd000037", "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"=>"53353e9d247580e1fd000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000032", "template_dependencies.en"=>{"$in"=>["53353e9d247580e1fd000037"]}}, "$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"=>"53353e9d247580e1fd000037"}, "$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"=>["53353e9d247580e1fd000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000037", "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"=>"53353e9d247580e1fd000038", "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=>"53353e9d247580e1fd000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353e9d247580e1fd000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353e9d247580e1fd000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353e9d247580e1fd000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353e9d247580e1fd000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353e9d247580e1fd00003a", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC, "entries_custom_fields"=>[{"_id"=>"53353e9d247580e1fd00003a", "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.3929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353e9d247580e1fd00003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000039"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353e9d247580e1fd000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353e9d247580e1fd000039"]}}} (0.5713ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353e9d247580e1fd00003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353e9d247580e1fd000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000039", "content_type_id"=>"53353e9d247580e1fd000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53353e9d247580e1fd000032", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:25 UTC, "created_at"=>2014-03-28 09:19:25 UTC}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000039", "original_id"=>"53353e9d247580e1fd00003b", "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"=>"53353e9d247580e1fd00003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53353e9d247580e1fd000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353e9d247580e1fd000039", "original_id"=>"53353e9d247580e1fd00003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2468ms) 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.1111ms) 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) Started GET "/" for 127.0.0.1 at 2014-03-28 10:19:25 +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.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-28 10:19:25 +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.7308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "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.5941ms) 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"=>"53353e9d247580e1fd000020", "locale"=>"en"}} (0.4809ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.3ms) Started GET "/findable" for 127.0.0.1 at 2014-03-28 10:19:25 +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.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "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.6468ms) Rendered text template (0.0ms) Completed 200 OK in 4.7ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-28 10:19:25 +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.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5660ms) 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-03-28 10:19:25 +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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353e9d247580e1fd000020", "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.5691ms) 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"=>"53353e9d247580e1fd000020", "locale"=>"en"}} (0.4518ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (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.7021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.7439ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6096ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6073ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7019ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.6831ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.7459ms) 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.0929ms) 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.5329ms) 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.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53353ea42475802cfa000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3c0952eb742171c592a8618b1963ae20d19cd2b5", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yspqbuGDbMkNTpsuL3pe", "api_key"=>"e6b82643f0a50fc29d916d0fedb7866348d9af5f", "updated_at"=>2014-03-28 09:19:32 UTC, "created_at"=>2014-03-28 09:19:32 UTC}] flags=[] (0.1469ms) 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.7899ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353ea42475802cfa000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 09:19:32 UTC, "updated_at"=>2014-03-28 09:19:32 UTC, "memberships"=>[{"_id"=>"53353ea42475802cfa000003", "role"=>"admin", "account_id"=>"53353ea42475802cfa000001"}]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea42475802cfa000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea42475802cfa000002", "_id"=>{"$ne"=>"53353ea52475802cfa000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea52475802cfa000004", "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"=>"53353ea42475802cfa000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea52475802cfa000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000004"]}}, "$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"=>["53353ea52475802cfa000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4747ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea52475802cfa000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353ea42475802cfa000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea42475802cfa000002", "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"=>"53353ea42475802cfa000002", "_id"=>{"$ne"=>"53353ea52475802cfa000006"}, "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"=>"53353ea42475802cfa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53353ea52475802cfa000006", "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"=>"53353ea42475802cfa000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000006"]}}, "$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"=>"53353ea52475802cfa000006"}, "$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"=>["53353ea52475802cfa000006"]}} 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"=>"53353ea42475802cfa000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4816ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353ea52475802cfa000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353ea42475802cfa000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353ea52475802cfa000008", "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC, "entries_custom_fields"=>[{"_id"=>"53353ea52475802cfa000008", "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.2942ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353ea52475802cfa000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53353ea52475802cfa000009", "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", "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}}} flags=[] (0.3037ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353ea52475802cfa00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa000007"]}} 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_entries selector={"content_type_id"=>"53353ea52475802cfa000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa000007"]}}} (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353ea52475802cfa00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353ea52475802cfa000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353ea52475802cfa000007", "content_type_id"=>"53353ea52475802cfa000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53353ea42475802cfa000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353ea52475802cfa000007", "original_id"=>"53353ea52475802cfa00000a", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53353ea52475802cfa00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53353ea42475802cfa000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353ea52475802cfa000007", "original_id"=>"53353ea52475802cfa00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353ea52475802cfa00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7622ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353ea52475802cfa000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3629ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa000007"]}}} (0.4981ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa000007"]}}} (0.2680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353ea52475802cfa00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53353ea52475802cfa000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353ea52475802cfa000007", "content_type_id"=>"53353ea52475802cfa000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53353ea42475802cfa000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 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::ContentEntry53353ea52475802cfa000007", "original_id"=>"53353ea52475802cfa00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3693ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea52475802cfa00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53353ea42475802cfa000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353ea52475802cfa000007", "original_id"=>"53353ea52475802cfa00000c", "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.6268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "$or"=>[{"slug.en"=>"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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002", "_id"=>{"$ne"=>"53353ea52475802cfa00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353ea52475802cfa000004"}]}]}, "$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"=>"53353ea52475802cfa00000e", "parent_ids"=>["53353ea52475802cfa000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa00000e"]}}, "$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"=>"53353ea52475802cfa00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea52475802cfa00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa00000e", "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"=>"53353ea52475802cfa00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53353ea42475802cfa000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1771ms) 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.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002", "_id"=>{"$ne"=>"53353ea52475802cfa000010"}, "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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353ea52475802cfa000004"}]}]}, "$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"=>"53353ea52475802cfa000010", "parent_ids"=>["53353ea52475802cfa000004"], "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"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000010"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea52475802cfa000010"}, "$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"=>["53353ea52475802cfa000010"]}} 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.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002", "_id"=>{"$ne"=>"53353ea52475802cfa000011"}, "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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002"}, "$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"=>"53353ea52475802cfa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea52475802cfa000011", "parent_ids"=>["53353ea52475802cfa000004"], "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"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000011"]}}, "$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"=>"53353ea52475802cfa000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea52475802cfa000011"]}} 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.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002", "_id"=>{"$ne"=>"53353ea52475802cfa000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53353ea52475802cfa000004", "site_id"=>"53353ea42475802cfa000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353ea52475802cfa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea52475802cfa000012", "parent_ids"=>["53353ea52475802cfa000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53353ea42475802cfa000002", "parent_id"=>"53353ea52475802cfa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000012"]}}, "$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"=>"53353ea52475802cfa000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea52475802cfa000012"]}} 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"=>"53353ea52475802cfa000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea52475802cfa000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53353ea42475802cfa000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"53353ea42475802cfa000002"}, "$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"=>"53353ea52475802cfa000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 09:19:33 UTC}} flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53353ea52475802cfa000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53353ea42475802cfa000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1442ms) 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.5329ms) 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.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353ea52475802cfa000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 09:19:32 UTC, "updated_at"=>2014-03-28 09:19:33 UTC, "memberships"=>[{"_id"=>"53353ea52475802cfa000015", "role"=>"admin", "account_id"=>"53353ea42475802cfa000001"}]}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea52475802cfa000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea52475802cfa000014", "_id"=>{"$ne"=>"53353ea52475802cfa000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53353ea52475802cfa000016", "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"=>"53353ea52475802cfa000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea52475802cfa000014", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000016"]}}, "$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"=>"53353ea52475802cfa000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea52475802cfa000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3877ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea52475802cfa000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353ea52475802cfa000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea52475802cfa000014", "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"=>"53353ea52475802cfa000014", "_id"=>{"$ne"=>"53353ea52475802cfa000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea52475802cfa000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea52475802cfa000018", "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"=>"53353ea52475802cfa000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea52475802cfa000014", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000018"]}}, "$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"=>"53353ea52475802cfa000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea52475802cfa000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea52475802cfa000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea52475802cfa000014", "_id"=>{"$ne"=>"53353ea52475802cfa000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea52475802cfa000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea52475802cfa000019", "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"=>"53353ea52475802cfa000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea52475802cfa000014", "template_dependencies.en"=>{"$in"=>["53353ea52475802cfa000019"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"53353ea52475802cfa000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea52475802cfa000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000019", "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"=>"53353ea52475802cfa00001a", "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=>"53353ea52475802cfa000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea52475802cfa000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353ea52475802cfa000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353ea52475802cfa00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353ea52475802cfa000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353ea52475802cfa00001c", "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC, "entries_custom_fields"=>[{"_id"=>"53353ea52475802cfa00001c", "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.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353ea52475802cfa00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa00001b"]}} 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={"content_type_id"=>"53353ea52475802cfa00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4282ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea52475802cfa00001b"]}}} (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353ea52475802cfa00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353ea52475802cfa00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353ea52475802cfa00001b", "content_type_id"=>"53353ea52475802cfa00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53353ea52475802cfa000014", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:33 UTC, "created_at"=>2014-03-28 09:19:33 UTC}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353ea52475802cfa00001b", "original_id"=>"53353ea52475802cfa00001d", "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"=>"53353ea52475802cfa00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53353ea52475802cfa000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353ea52475802cfa00001b", "original_id"=>"53353ea52475802cfa00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1390ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 10:19:34 +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.1232ms) 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.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53353ea42475802cfa000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (6.3260ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (21.0ms) Completed 200 OK in 54.2ms (Views: 40.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 10:19:35 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 10:19:35 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 10:19:35 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 10:19:35 +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.8342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53353ea42475802cfa000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6208ms) 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.8938ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53353ea42475802cfa000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 09:19:35 UTC, "updated_at"=>2014-03-28 09:19:35 UTC}} flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53353ea42475802cfa000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 09:19:35 UTC, "current_sign_in_at"=>2014-03-28 09:19:35 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 09:19:35 UTC}} flags=[] (0.2868ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 33.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 10:19:35 +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.0850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53353ea42475802cfa000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53353ea42475802cfa000001"]}} 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"=>"53353ea42475802cfa000002"}, "$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, "target_klass_name"=>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"=>"53353ea42475802cfa000002"}, "$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, "target_klass_name"=>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.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002"}, "$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.7250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002"}, "$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.6096ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53353ea52475802cfa000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7558ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (29.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (5.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (13.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (61.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"53353ea42475802cfa000001", :role=>:admin}}}} (0.7918ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (15.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53353ea42475802cfa000001"}} (0.5231ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"53353ea42475802cfa000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7792ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (5.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (24.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (1.6ms) Completed 200 OK in 162.3ms (Views: 133.4ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 10:19:35 +0100 Compiled codemirror.css (0ms) (pid 1818) Compiled codemirror/themes/neat.css (0ms) (pid 1818) Compiled locomotive.css (81ms) (pid 1818) Served asset /locomotive.css - 200 OK (110ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 10:19:35 +0100 Compiled codemirror.js (3ms) (pid 1818) Compiled codemirror/addons/mode/overlay.js (0ms) (pid 1818) Compiled codemirror/modes/css.js (0ms) (pid 1818) Compiled codemirror/modes/javascript.js (0ms) (pid 1818) Compiled codemirror/modes/xml.js (0ms) (pid 1818) Compiled codemirror/modes/htmlmixed.js (0ms) (pid 1818) Compiled locomotive.js (245ms) (pid 1818) Served asset /locomotive.js - 200 OK (304ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 10:19:36 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 10:19:36 +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-03-28 10:19:36 +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-03-28 10:19:36 +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.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53353ea42475802cfa000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53353ea42475802cfa000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002"}, "$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, "target_klass_name"=>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.2290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002"}, "$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.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea42475802cfa000002"}, "$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.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53353ea52475802cfa000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6249ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (12.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353ea42475802cfa000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7672ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (5.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_select_templates.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_form.html.haml (62.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353ea42475802cfa000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5653ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/_form.html.haml (85.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (111.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"53353ea42475802cfa000001", :role=>:admin}}}} (0.6919ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (8.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53353ea42475802cfa000001"}} (4.6108ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/global_actions/show.html.haml (1.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53353ea42475802cfa000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9851ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (5.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (20.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 164.9ms (Views: 151.5ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-03-28 10:19:36 +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 (0.9258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (8.2211ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.3182ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.7359ms) 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.1529ms) 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 (7.1130ms) 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} (1.6923ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53353ea82475802cfa000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"533ab2c15b6c835f9b9730dd123a664795c2cd2a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9gedaGrZUzbt56AatErZ", "api_key"=>"3e11580a57f7bcd9ce25702774ea92dcf9626245", "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.3228ms) 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.9120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353ea82475802cfa000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 09:19:32 UTC, "updated_at"=>2014-03-28 09:19:36 UTC, "memberships"=>[{"_id"=>"53353ea82475802cfa000022", "role"=>"admin", "account_id"=>"53353ea82475802cfa000020"}]}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea82475802cfa000021", "_id"=>{"$ne"=>"53353ea82475802cfa000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4883ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea82475802cfa000023", "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"=>"53353ea82475802cfa000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4187ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa000023"]}} 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"=>"53353ea82475802cfa000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4368ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea82475802cfa000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353ea82475802cfa000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"53353ea82475802cfa000021", "_id"=>{"$ne"=>"53353ea82475802cfa000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea82475802cfa000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53353ea82475802cfa000025", "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"=>"53353ea82475802cfa000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000025"]}}, "$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"=>"53353ea82475802cfa000025"}, "$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"=>["53353ea82475802cfa000025"]}} 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"=>"53353ea82475802cfa000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5112ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353ea82475802cfa000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353ea82475802cfa000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353ea82475802cfa000027", "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC, "entries_custom_fields"=>[{"_id"=>"53353ea82475802cfa000027", "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.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53353ea82475802cfa000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53353ea82475802cfa000028", "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", "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}}} flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353ea82475802cfa000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa000026"]}} 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"=>"53353ea82475802cfa000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa000026"]}}} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353ea82475802cfa000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353ea82475802cfa000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353ea82475802cfa000026", "content_type_id"=>"53353ea82475802cfa000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53353ea82475802cfa000021", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353ea82475802cfa000026", "original_id"=>"53353ea82475802cfa000029", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea82475802cfa00002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53353ea82475802cfa000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353ea82475802cfa000026", "original_id"=>"53353ea82475802cfa000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353ea82475802cfa00002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53353ea82475802cfa000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa000026"]}}} (0.4041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa000026"]}}} (0.2890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353ea82475802cfa00002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53353ea82475802cfa000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353ea82475802cfa000026", "content_type_id"=>"53353ea82475802cfa000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53353ea82475802cfa000021", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53353ea82475802cfa000026", "original_id"=>"53353ea82475802cfa00002b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9732ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea82475802cfa00002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53353ea82475802cfa000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353ea82475802cfa000026", "original_id"=>"53353ea82475802cfa00002b", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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 (1.4348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021", "_id"=>{"$ne"=>"53353ea82475802cfa00002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53353ea82475802cfa000023"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"53353ea82475802cfa00002d", "parent_ids"=>["53353ea82475802cfa000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa00002d"]}}, "$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"=>"53353ea82475802cfa00002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa00002d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa00002d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea82475802cfa00002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53353ea82475802cfa000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa00002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2139ms) 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.6521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021", "_id"=>{"$ne"=>"53353ea82475802cfa00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353ea82475802cfa000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea82475802cfa00002f", "parent_ids"=>["53353ea82475802cfa000023"], "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"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.2642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa00002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa00002f"}, "$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"=>["53353ea82475802cfa00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021", "_id"=>{"$ne"=>"53353ea82475802cfa000030"}, "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"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021"}, "$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"=>"53353ea82475802cfa000023"}]}]}, "$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"=>"53353ea82475802cfa000030", "parent_ids"=>["53353ea82475802cfa000023"], "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"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000030"]}}, "$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"=>"53353ea82475802cfa000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa000030"]}} 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.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021", "_id"=>{"$ne"=>"53353ea82475802cfa000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000023", "site_id"=>"53353ea82475802cfa000021"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53353ea82475802cfa000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea82475802cfa000031", "parent_ids"=>["53353ea82475802cfa000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53353ea82475802cfa000021", "parent_id"=>"53353ea82475802cfa000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000031"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa000031"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000031", "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"=>"53353ea82475802cfa000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53353ea82475802cfa000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53353ea82475802cfa000021"}, "$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=locomotive_pages selector={"_id"=>"53353ea82475802cfa000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 09:19:36 UTC}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000023"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0278ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53353ea82475802cfa000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53353ea82475802cfa000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2880ms) 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.5740ms) 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.5248ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53353ea82475802cfa000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 09:19:32 UTC, "updated_at"=>2014-03-28 09:19:36 UTC, "memberships"=>[{"_id"=>"53353ea82475802cfa000034", "role"=>"admin", "account_id"=>"53353ea82475802cfa000020"}]}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea82475802cfa000033", "_id"=>{"$ne"=>"53353ea82475802cfa000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7229ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53353ea82475802cfa000035", "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"=>"53353ea82475802cfa000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000033", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000035"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4382ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea82475802cfa000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53353ea82475802cfa000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000035", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"53353ea82475802cfa000033", "_id"=>{"$ne"=>"53353ea82475802cfa000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea82475802cfa000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53353ea82475802cfa000037", "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"=>"53353ea82475802cfa000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000033", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000037"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8767ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53353ea82475802cfa000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53353ea82475802cfa000033", "_id"=>{"$ne"=>"53353ea82475802cfa000038"}, "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"=>"53353ea82475802cfa000033"}, "$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"=>{"_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"=>"53353ea82475802cfa000038", "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"=>"53353ea82475802cfa000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 09:19:36 UTC, "created_at"=>2014-03-28 09:19:36 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000033", "template_dependencies.en"=>{"$in"=>["53353ea82475802cfa000038"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53353ea82475802cfa000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53353ea82475802cfa000038"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53353ea82475802cfa000039", "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=>"53353ea82475802cfa000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53353ea82475802cfa000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353ea82475802cfa000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53353ea82475802cfa00003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53353ea82475802cfa000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53353ea92475802cfa00003b", "updated_at"=>2014-03-28 09:19:37 UTC, "created_at"=>2014-03-28 09:19:37 UTC, "entries_custom_fields"=>[{"_id"=>"53353ea92475802cfa00003b", "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.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53353ea92475802cfa00003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa00003a"]}} 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"=>"53353ea82475802cfa00003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53353ea82475802cfa00003a"]}}} (0.5562ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53353ea92475802cfa00003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53353ea82475802cfa00003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53353ea82475802cfa00003a", "content_type_id"=>"53353ea82475802cfa00003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53353ea82475802cfa000033", "_label_field_name"=>"name", "updated_at"=>2014-03-28 09:19:37 UTC, "created_at"=>2014-03-28 09:19:37 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::ContentEntry53353ea82475802cfa00003a", "original_id"=>"53353ea92475802cfa00003c", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53353ea92475802cfa00003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53353ea82475802cfa000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53353ea82475802cfa00003a", "original_id"=>"53353ea92475802cfa00003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1841ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 10:19:37 +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 (1.0641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53353ea82475802cfa000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (5.6ms) Completed 200 OK in 12.8ms (Views: 7.9ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 10:19:37 +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.8969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53353ea82475802cfa000020"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53353ea82475802cfa000020"} update={"$set"=>{"remember_created_at"=>2014-03-28 09:19:37 UTC, "updated_at"=>2014-03-28 09:19:37 UTC}} flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53353ea82475802cfa000020"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 09:19:37 UTC, "current_sign_in_at"=>2014-03-28 09:19:37 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 09:19:37 UTC}} flags=[] (0.1390ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 11.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 10:19:37 +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.9730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53353ea82475802cfa000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53353ea82475802cfa000020"]}} 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"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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, "target_klass_name"=>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.1570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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, "target_klass_name"=>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.0440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53353ea82475802cfa000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8440ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (15.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (5.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (8.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (25.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"53353ea82475802cfa000020", :role=>:admin}}}} (0.7601ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"53353ea82475802cfa000020"}} (0.4587ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"53353ea82475802cfa000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9651ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (4.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (12.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 73.0ms (Views: 50.1ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-03-28 10:19:37 +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.7627ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53353ea82475802cfa000020"}, "$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"=>["53353ea82475802cfa000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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, "target_klass_name"=>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.0039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53353ea82475802cfa000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9580ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (24.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_assets/_picker.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/theme_assets/_picker.html.haml (7.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_editable_elements.html.haml (7.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53353ea82475802cfa000021"}, "$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, "target_klass_name"=>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.4780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53353ea82475802cfa000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9729ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (5.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_form.html.haml (163.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (200.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"53353ea82475802cfa000020", :role=>:admin}}}} (0.5641ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (6.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53353ea82475802cfa000020"}} (0.4630ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"53353ea82475802cfa000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9577ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (3.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (9.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 252.7ms (Views: 232.1ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-03-28 10:19:38 +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.7751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6442ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7477ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5741ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7010ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8471ms) 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 (23.2172ms) 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 (17.5052ms) 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 (3.6070ms) 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.5360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335768124758072f9000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"7b1bf3b053cde7eed82c1b9af4ca82380521c2b7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"jgjT5nz2Nqxjh7vhS36t", "api_key"=>"142bedb9b26e2a30650586ce2f780a3d58e4bb84", "updated_at"=>2014-03-28 13:17:53 UTC, "created_at"=>2014-03-28 13:17:53 UTC}] flags=[] (0.1609ms) 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} (36.1719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335768124758072f9000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 13:17:52 UTC, "updated_at"=>2014-03-28 13:17:53 UTC, "memberships"=>[{"_id"=>"5335768124758072f9000003", "role"=>"admin", "account_id"=>"5335768124758072f9000001"}]}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768124758072f9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (24.1940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768124758072f9000002", "_id"=>{"$ne"=>"5335768124758072f9000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768124758072f9000004", "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"=>"5335768124758072f9000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:53 UTC, "created_at"=>2014-03-28 13:17:53 UTC}] flags=[] (0.2542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768124758072f9000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.2419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768124758072f9000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768124758072f9000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768124758072f9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768124758072f9000002", "_id"=>{"$ne"=>"5335768224758072f9000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.9309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768124758072f9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7863ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768224758072f9000005", "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"=>"5335768124758072f9000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:54 UTC, "created_at"=>2014-03-28 13:17:54 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768224758072f9000005"]}}, "$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"=>"5335768224758072f9000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768224758072f9000005"]}} 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=locomotive_content_types selector={"site_id"=>"5335768124758072f9000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335768224758072f9000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335768124758072f9000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335768224758072f9000007", "updated_at"=>2014-03-28 13:17:54 UTC, "created_at"=>2014-03-28 13:17:54 UTC, "entries_custom_fields"=>[{"_id"=>"5335768224758072f9000007", "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.2918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335768224758072f9000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335768224758072f9000008", "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", "updated_at"=>2014-03-28 13:17:54 UTC, "created_at"=>2014-03-28 13:17:54 UTC}}} flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335768224758072f9000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768224758072f9000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.5711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335768224758072f9000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4909ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768224758072f9000006"]}}} (0.9878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335768224758072f9000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335768224758072f9000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335768224758072f9000006", "content_type_id"=>"5335768224758072f9000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335768124758072f9000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:17:54 UTC, "created_at"=>2014-03-28 13:17:54 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335768324758072f900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768224758072f9000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335768224758072f9000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768224758072f9000006"]}}} (0.5469ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768224758072f9000006"]}}} (0.4323ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768224758072f9000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (7.8728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335768324758072f900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335768224758072f9000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335768224758072f9000006", "content_type_id"=>"5335768224758072f9000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335768124758072f9000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:17:55 UTC, "created_at"=>2014-03-28 13:17:55 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.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "$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"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002", "_id"=>{"$ne"=>"5335768324758072f900000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335768124758072f9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768324758072f900000b", "parent_ids"=>["5335768124758072f9000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:55 UTC, "created_at"=>2014-03-28 13:17:55 UTC}] flags=[] (0.4580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768324758072f900000b"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"5335768324758072f900000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768324758072f900000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3242ms) 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.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002", "_id"=>{"$ne"=>"5335768424758072f900000c"}, "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"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335768124758072f9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5335768424758072f900000c", "parent_ids"=>["5335768124758072f9000004"], "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"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:56 UTC, "created_at"=>2014-03-28 13:17:56 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768424758072f900000c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335768424758072f900000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768424758072f900000c"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002", "_id"=>{"$ne"=>"5335768424758072f900000d"}, "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"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335768124758072f9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9763ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768424758072f900000d", "parent_ids"=>["5335768124758072f9000004"], "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"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:56 UTC, "created_at"=>2014-03-28 13:17:56 UTC}] flags=[] (0.4029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768424758072f900000d"]}}, "$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"=>"5335768424758072f900000d"}, "$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"=>["5335768424758072f900000d"]}} 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.6022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002", "_id"=>{"$ne"=>"5335768424758072f900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.1100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768124758072f9000004", "site_id"=>"5335768124758072f9000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335768124758072f9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768424758072f900000e", "parent_ids"=>["5335768124758072f9000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335768124758072f9000002", "parent_id"=>"5335768124758072f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:56 UTC, "created_at"=>2014-03-28 13:17:56 UTC}] flags=[] (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768424758072f900000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"5335768424758072f900000e"}, "$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"=>["5335768424758072f900000e"]}} 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={"$query"=>{"site_id"=>"5335768124758072f9000002", "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_sites selector={"$query"=>{"_id"=>"5335768124758072f9000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335768124758072f9000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 13:17:56 UTC}} flags=[] (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "template_dependencies.en"=>{"$in"=>["5335768124758072f9000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6993ms) 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.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335768524758072f900000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 13:17:52 UTC, "updated_at"=>2014-03-28 13:17:57 UTC, "memberships"=>[{"_id"=>"5335768524758072f9000010", "role"=>"admin", "account_id"=>"5335768124758072f9000001"}]}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768524758072f900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5335768524758072f900000f", "_id"=>{"$ne"=>"5335768524758072f9000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335768524758072f9000011", "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"=>"5335768524758072f900000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:57 UTC, "created_at"=>2014-03-28 13:17:57 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768524758072f900000f", "template_dependencies.en"=>{"$in"=>["5335768524758072f9000011"]}}, "$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"=>"5335768524758072f9000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4227ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768524758072f9000011"]}} 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={"site_id"=>"5335768524758072f900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768524758072f900000f", "_id"=>{"$ne"=>"5335768624758072f9000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768524758072f900000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8378ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768624758072f9000012", "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"=>"5335768524758072f900000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:58 UTC, "created_at"=>2014-03-28 13:17:58 UTC}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768524758072f900000f", "template_dependencies.en"=>{"$in"=>["5335768624758072f9000012"]}}, "$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"=>"5335768624758072f9000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768624758072f9000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1616ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768524758072f900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768524758072f900000f", "_id"=>{"$ne"=>"5335768624758072f9000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768524758072f900000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6511ms) 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.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768624758072f9000013", "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"=>"5335768524758072f900000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:17:58 UTC, "created_at"=>2014-03-28 13:17:58 UTC}] flags=[] (0.5360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768524758072f900000f", "template_dependencies.en"=>{"$in"=>["5335768624758072f9000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768624758072f9000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768624758072f9000013"]}} 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_content_types selector={"site_id"=>"5335768524758072f900000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335768624758072f9000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335768524758072f900000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335768624758072f9000015", "updated_at"=>2014-03-28 13:17:58 UTC, "created_at"=>2014-03-28 13:17:58 UTC, "entries_custom_fields"=>[{"_id"=>"5335768624758072f9000015", "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.2768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335768624758072f9000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768624758072f9000014"]}} 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"=>"5335768624758072f9000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768624758072f9000014"]}}} (1.2388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335768624758072f9000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335768624758072f9000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335768624758072f9000014", "content_type_id"=>"5335768624758072f9000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335768524758072f900000f", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:17:58 UTC, "created_at"=>2014-03-28 13:17:58 UTC}] flags=[] (0.2372ms) Started GET "/" for 127.0.0.1 at 2014-03-28 14:17:59 +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.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5541ms) Rendered text template (0.0ms) Completed 200 OK in 21.6ms (Views: 15.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-28 14:17:59 +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.8337ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "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.6459ms) Rendered text template (0.0ms) Completed 200 OK in 463.2ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2014-03-28 14:17:59 +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.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "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.6409ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-28 14:17:59 +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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768124758072f9000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) Rendered text template (0.0ms) Completed 200 OK in 4.5ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-28 14:17:59 +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"=>"5335768124758072f9000002", "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) Rendered text template (0.0ms) Completed 200 OK in 441.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.8020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (5.1379ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7512ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.8868ms) 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.5350ms) 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.9260ms) 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.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335768824758072f9000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f3280976edfb4303110b76bc99a04b1a1950115b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"v4gsyYkxh8XUk7ZmXmvy", "api_key"=>"2966e227f653029fc1e494146378d7677cea382d", "updated_at"=>2014-03-28 13:18:00 UTC, "created_at"=>2014-03-28 13:18:00 UTC}] flags=[] (0.1271ms) 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} (2.2037ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335768824758072f9000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 13:17:52 UTC, "updated_at"=>2014-03-28 13:18:00 UTC, "memberships"=>[{"_id"=>"5335768824758072f9000019", "role"=>"admin", "account_id"=>"5335768824758072f9000017"}]}] flags=[] (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768824758072f9000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768824758072f9000018", "_id"=>{"$ne"=>"5335768824758072f900001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768824758072f900001a", "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"=>"5335768824758072f9000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:00 UTC, "created_at"=>2014-03-28 13:18:00 UTC}] flags=[] (0.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768824758072f900001a"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335768824758072f900001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768824758072f900001a"]}} 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={"site_id"=>"5335768824758072f9000018", "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"=>"5335768824758072f9000018", "_id"=>{"$ne"=>"5335768924758072f900001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768824758072f9000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5543ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768924758072f900001b", "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"=>"5335768824758072f9000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:01 UTC, "created_at"=>2014-03-28 13:18:01 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768924758072f900001b"]}}, "$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"=>"5335768924758072f900001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768924758072f900001b"]}} 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_content_types selector={"site_id"=>"5335768824758072f9000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335768924758072f900001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335768824758072f9000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335768924758072f900001d", "updated_at"=>2014-03-28 13:18:01 UTC, "created_at"=>2014-03-28 13:18:01 UTC, "entries_custom_fields"=>[{"_id"=>"5335768924758072f900001d", "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.2036ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335768924758072f900001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335768924758072f900001e", "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", "updated_at"=>2014-03-28 13:18:01 UTC, "created_at"=>2014-03-28 13:18:01 UTC}}} flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335768924758072f900001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8566ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335768924758072f900001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}}} (0.3998ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335768924758072f900001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335768924758072f900001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335768924758072f900001c", "content_type_id"=>"5335768924758072f900001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335768824758072f9000018", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:01 UTC, "created_at"=>2014-03-28 13:18:01 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335768a24758072f9000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}} 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={"content_type_id"=>"5335768924758072f900001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4072ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}}} (0.3567ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}}} (0.3259ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335768a24758072f9000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335768924758072f900001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335768924758072f900001c", "content_type_id"=>"5335768924758072f900001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335768824758072f9000018", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:02 UTC, "created_at"=>2014-03-28 13:18:02 UTC}] flags=[] (0.2310ms) 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.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018", "_id"=>{"$ne"=>"5335768a24758072f9000021"}, "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"=>"5335768824758072f900001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768a24758072f9000021", "parent_ids"=>["5335768824758072f900001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:02 UTC, "created_at"=>2014-03-28 13:18:02 UTC}] flags=[] (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768a24758072f9000021"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"5335768a24758072f9000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768a24758072f9000021"]}} 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_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"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018", "_id"=>{"$ne"=>"5335768b24758072f9000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018"}, "$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"=>"5335768824758072f900001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768b24758072f9000022", "parent_ids"=>["5335768824758072f900001a"], "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"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:03 UTC, "created_at"=>2014-03-28 13:18:03 UTC}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768b24758072f9000022"]}}, "$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"=>"5335768b24758072f9000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3793ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768b24758072f9000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) 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.6790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018", "_id"=>{"$ne"=>"5335768b24758072f9000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335768824758072f900001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768b24758072f9000023", "parent_ids"=>["5335768824758072f900001a"], "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"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:03 UTC, "created_at"=>2014-03-28 13:18:03 UTC}] flags=[] (0.4423ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768b24758072f9000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335768b24758072f9000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768b24758072f9000023"]}} 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.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018", "_id"=>{"$ne"=>"5335768b24758072f9000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335768824758072f900001a", "site_id"=>"5335768824758072f9000018"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335768824758072f900001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4597ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768b24758072f9000024", "parent_ids"=>["5335768824758072f900001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335768824758072f9000018", "parent_id"=>"5335768824758072f900001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:03 UTC, "created_at"=>2014-03-28 13:18:03 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768b24758072f9000024"]}}, "$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"=>"5335768b24758072f9000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3283ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768b24758072f9000024"]}} 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"=>"5335768824758072f9000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335768824758072f9000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0083ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335768824758072f900001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 13:18:04 UTC}} flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "template_dependencies.en"=>{"$in"=>["5335768824758072f900001a"]}}, "$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_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.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335768c24758072f9000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 13:17:52 UTC, "updated_at"=>2014-03-28 13:18:04 UTC, "memberships"=>[{"_id"=>"5335768c24758072f9000026", "role"=>"admin", "account_id"=>"5335768824758072f9000017"}]}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335768c24758072f9000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768c24758072f9000025", "_id"=>{"$ne"=>"5335768c24758072f9000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768c24758072f9000027", "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"=>"5335768c24758072f9000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:04 UTC, "created_at"=>2014-03-28 13:18:04 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768c24758072f9000025", "template_dependencies.en"=>{"$in"=>["5335768c24758072f9000027"]}}, "$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"=>"5335768c24758072f9000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4032ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768c24758072f9000027"]}} 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"=>"5335768c24758072f9000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768c24758072f9000025", "_id"=>{"$ne"=>"5335768e24758072f9000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768c24758072f9000025"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"5335768e24758072f9000028", "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"=>"5335768c24758072f9000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:06 UTC, "created_at"=>2014-03-28 13:18:06 UTC}] flags=[] (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768c24758072f9000025", "template_dependencies.en"=>{"$in"=>["5335768e24758072f9000028"]}}, "$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"=>"5335768e24758072f9000028"}, "$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"=>["5335768e24758072f9000028"]}} 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={"site_id"=>"5335768c24758072f9000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768c24758072f9000025", "_id"=>{"$ne"=>"5335768e24758072f9000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335768c24758072f9000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.9970ms) 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.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335768e24758072f9000029", "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"=>"5335768c24758072f9000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:06 UTC, "created_at"=>2014-03-28 13:18:06 UTC}] flags=[] (0.3128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768c24758072f9000025", "template_dependencies.en"=>{"$in"=>["5335768e24758072f9000029"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335768e24758072f9000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4692ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335768e24758072f9000029"]}} 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"=>"5335768c24758072f9000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335768e24758072f900002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335768c24758072f9000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335768e24758072f900002b", "updated_at"=>2014-03-28 13:18:06 UTC, "created_at"=>2014-03-28 13:18:06 UTC, "entries_custom_fields"=>[{"_id"=>"5335768e24758072f900002b", "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"=>"5335768e24758072f900002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768e24758072f900002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335768e24758072f900002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7212ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335768e24758072f900002a"]}}} (0.5102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335768e24758072f900002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335768e24758072f900002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335768e24758072f900002a", "content_type_id"=>"5335768e24758072f900002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335768c24758072f9000025", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:06 UTC, "created_at"=>2014-03-28 13:18:06 UTC}] flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335768924758072f900001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}} 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={"_id"=>{"$ne"=>"5335768a24758072f9000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335768924758072f900001c"} update={"$set"=>{"updated_at"=>2014-03-28 13:18:07 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335768924758072f900001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.0992ms) Started GET "/" for 127.0.0.1 at 2014-03-28 14:18:07 +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"=>"5335768824758072f9000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7591ms) Rendered text template (0.0ms) Completed 200 OK in 6.9ms (Views: 0.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 14:18:07 +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.7823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "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.7739ms) Rendered text template (0.0ms) Completed 200 OK in 440.9ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335768924758072f900001c"} 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"=>"5335768924758072f900001c", "updated_at"=>{"$lt"=>2014-03-28 13:18:07 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5335768924758072f900001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7443ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335768824758072f9000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5335768924758072f900001c"}, "$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_content_entries selector={"_id"=>"5335768924758072f900001f"} update={"$set"=>{"updated_at"=>2014-03-28 13:18:07 UTC}} flags=[] (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335768824758072f9000018"}, "$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_content_types selector={"$query"=>{"_id"=>"5335768924758072f900001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9599ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5335768a24758072f9000020"} update={"$set"=>{"updated_at"=>2014-03-28 13:18:08 UTC}} flags=[] (0.1590ms) Started GET "/en/" for 127.0.0.1 at 2014-03-28 14:18:09 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-28 14:18:09 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.7076ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 7.5ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 14:18:09 +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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335768824758072f9000018", "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.1261ms) Rendered text template (0.0ms) Completed 200 OK in 451.9ms (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.6852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.0611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2269ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8492ms) 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.5679ms) 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.9930ms) 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.0800ms) 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.9389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533576982475802580000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9471dbc4377852b2297b587375586a2b1773bd53", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zsRaWxqZZZ7WhMxA7Nro", "api_key"=>"e2f64073ff313bfaea21d6235c2cb06cdc182a43", "updated_at"=>2014-03-28 13:18:16 UTC, "created_at"=>2014-03-28 13:18:16 UTC}] flags=[] (0.2551ms) 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.8960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533576982475802580000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 13:18:16 UTC, "updated_at"=>2014-03-28 13:18:16 UTC, "memberships"=>[{"_id"=>"533576982475802580000003", "role"=>"admin", "account_id"=>"533576982475802580000001"}]}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576982475802580000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576982475802580000002", "_id"=>{"$ne"=>"533576982475802580000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533576982475802580000004", "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"=>"533576982475802580000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:16 UTC, "created_at"=>2014-03-28 13:18:16 UTC}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576982475802580000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["533576982475802580000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576982475802580000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576982475802580000004", "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"=>"533576982475802580000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576982475802580000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576982475802580000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576982475802580000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.5060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576982475802580000002", "_id"=>{"$ne"=>"533576982475802580000006"}, "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"=>nil, "site_id"=>"533576982475802580000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7582ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576982475802580000006", "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"=>"533576982475802580000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:16 UTC, "created_at"=>2014-03-28 13:18:16 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["533576982475802580000006"]}}, "$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"=>"533576982475802580000006"}, "$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"=>["533576982475802580000006"]}} 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"=>"533576982475802580000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533576982475802580000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576982475802580000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533576992475802580000008", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC, "entries_custom_fields"=>[{"_id"=>"533576992475802580000008", "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.2482ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533576982475802580000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533576992475802580000009", "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", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}}} flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53357699247580258000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576982475802580000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533576982475802580000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576982475802580000007"]}}} (0.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53357699247580258000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533576982475802580000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576982475802580000007", "content_type_id"=>"533576982475802580000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533576982475802580000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576982475802580000007", "original_id"=>"53357699247580258000000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53357699247580258000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533576982475802580000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576982475802580000007", "original_id"=>"53357699247580258000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53357699247580258000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533576982475802580000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7737ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533576982475802580000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576982475802580000007"]}}} (0.7570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576982475802580000007"]}}} (0.5460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576982475802580000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53357699247580258000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533576982475802580000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576982475802580000007", "content_type_id"=>"533576982475802580000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533576982475802580000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576982475802580000007", "original_id"=>"53357699247580258000000c", "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"=>"53357699247580258000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533576982475802580000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576982475802580000007", "original_id"=>"53357699247580258000000c", "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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"533576982475802580000004", "site_id"=>"533576982475802580000002", "_id"=>{"$ne"=>"53357699247580258000000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533576982475802580000004"}]}]}, "$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"=>"53357699247580258000000e", "parent_ids"=>["533576982475802580000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["53357699247580258000000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53357699247580258000000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53357699247580258000000e"]}} 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"=>"53357699247580258000000e", "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"=>"53357699247580258000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533576982475802580000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53357699247580258000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] 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.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5157ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576982475802580000004", "site_id"=>"533576982475802580000002", "_id"=>{"$ne"=>"533576992475802580000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"533576982475802580000004", "site_id"=>"533576982475802580000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533576982475802580000004"}]}]}, "$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"=>"533576992475802580000010", "parent_ids"=>["533576982475802580000004"], "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"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["533576992475802580000010"]}}, "$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"=>"533576992475802580000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3517ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000010"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7443ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576982475802580000004", "site_id"=>"533576982475802580000002", "_id"=>{"$ne"=>"533576992475802580000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576982475802580000004", "site_id"=>"533576982475802580000002"}, "$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"=>"533576982475802580000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576992475802580000011", "parent_ids"=>["533576982475802580000004"], "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"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["533576992475802580000011"]}}, "$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"=>"533576992475802580000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000011"]}} 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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533576982475802580000004", "site_id"=>"533576982475802580000002", "_id"=>{"$ne"=>"533576992475802580000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576982475802580000004", "site_id"=>"533576982475802580000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"533576982475802580000004"}]}]}, "$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"=>"533576992475802580000012", "parent_ids"=>["533576982475802580000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533576982475802580000002", "parent_id"=>"533576982475802580000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["533576992475802580000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"533576992475802580000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000012", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533576982475802580000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.3352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533576982475802580000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533576982475802580000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 13:18:17 UTC}} flags=[] (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "template_dependencies.en"=>{"$in"=>["533576982475802580000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576982475802580000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533576982475802580000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533576982475802580000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1619ms) 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.3192ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533576992475802580000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 13:18:16 UTC, "updated_at"=>2014-03-28 13:18:17 UTC, "memberships"=>[{"_id"=>"533576992475802580000015", "role"=>"admin", "account_id"=>"533576982475802580000001"}]}] flags=[] (0.1469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000014", "_id"=>{"$ne"=>"533576992475802580000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576992475802580000016", "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"=>"533576992475802580000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000014", "template_dependencies.en"=>{"$in"=>["533576992475802580000016"]}}, "$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"=>"533576992475802580000016"}, "$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"=>["533576992475802580000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000016", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576992475802580000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000014", "_id"=>{"$ne"=>"533576992475802580000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000014"}, "$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"=>"533576992475802580000018", "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"=>"533576992475802580000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1826ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000014", "template_dependencies.en"=>{"$in"=>["533576992475802580000018"]}}, "$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"=>"533576992475802580000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000018"]}} 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={"site_id"=>"533576992475802580000014", "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"=>"533576992475802580000014", "_id"=>{"$ne"=>"533576992475802580000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8161ms) 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.5531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576992475802580000019", "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"=>"533576992475802580000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000014", "template_dependencies.en"=>{"$in"=>["533576992475802580000019"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533576992475802580000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53357699247580258000001a", "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=>"533576992475802580000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576992475802580000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53357699247580258000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576992475802580000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53357699247580258000001c", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC, "entries_custom_fields"=>[{"_id"=>"53357699247580258000001c", "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.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53357699247580258000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53357699247580258000001b"]}} 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"=>"53357699247580258000001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7339ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53357699247580258000001b"]}}} (0.6418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53357699247580258000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53357699247580258000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53357699247580258000001b", "content_type_id"=>"53357699247580258000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533576992475802580000014", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53357699247580258000001b", "original_id"=>"53357699247580258000001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53357699247580258000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533576992475802580000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53357699247580258000001b", "original_id"=>"53357699247580258000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3300ms) 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.0997ms) 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.1099ms) Started GET "/" for 127.0.0.1 at 2014-03-28 14:18: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.6812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7873ms) Rendered text template (0.0ms) Completed 200 OK in 15.6ms (Views: 9.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-28 14:18:17 +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.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "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.7112ms) 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"=>"533576982475802580000002", "locale"=>"en"}} (0.5841ms) Rendered text template (0.0ms) Completed 200 OK in 16.5ms (Views: 0.9ms) Started GET "/findable" for 127.0.0.1 at 2014-03-28 14:18:17 +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.7303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "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.6123ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-28 14:18: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.6261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "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.9ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-28 14:18:17 +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.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576982475802580000002", "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.5312ms) 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"=>"533576982475802580000002", "locale"=>"en"}} (0.6049ms) Rendered text template (0.0ms) Completed 200 OK in 4.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.8290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.3050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8841ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5379ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.0278ms) 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.3359ms) 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.3002ms) 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.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53357699247580258000001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0177453f78b379b4db12a4723eccb775929a4f33", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"6qqforYRX8TxSNApUkwp", "api_key"=>"2e2e010ecd7fcfa38e046f1db2b17f3b3ff403b2", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1371ms) 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.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533576992475802580000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 13:18:16 UTC, "updated_at"=>2014-03-28 13:18:17 UTC, "memberships"=>[{"_id"=>"533576992475802580000021", "role"=>"admin", "account_id"=>"53357699247580258000001f"}]}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000020", "_id"=>{"$ne"=>"533576992475802580000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533576992475802580000022", "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"=>"533576992475802580000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["533576992475802580000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576992475802580000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000022"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576992475802580000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000020", "_id"=>{"$ne"=>"533576992475802580000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576992475802580000024", "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"=>"533576992475802580000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["533576992475802580000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576992475802580000024"}, "$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"=>["533576992475802580000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576992475802580000020", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"533576992475802580000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576992475802580000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533576992475802580000026", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC, "entries_custom_fields"=>[{"_id"=>"533576992475802580000026", "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.2418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533576992475802580000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533576992475802580000027", "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", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}}} flags=[] (0.2940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576992475802580000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}} 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"=>"533576992475802580000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4773ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}}} (0.4528ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576992475802580000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533576992475802580000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576992475802580000025", "content_type_id"=>"533576992475802580000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533576992475802580000020", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.3390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576992475802580000025", "original_id"=>"533576992475802580000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533576992475802580000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576992475802580000025", "original_id"=>"533576992475802580000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53357699247580258000002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533576992475802580000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}}} (0.6151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}}} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8552ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53357699247580258000002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533576992475802580000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576992475802580000025", "content_type_id"=>"533576992475802580000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533576992475802580000020", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576992475802580000025", "original_id"=>"53357699247580258000002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53357699247580258000002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533576992475802580000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576992475802580000025", "original_id"=>"53357699247580258000002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1967ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"533576992475802580000022", "site_id"=>"533576992475802580000020", "_id"=>{"$ne"=>"53357699247580258000002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533576992475802580000022"}]}]}, "$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"=>"53357699247580258000002c", "parent_ids"=>["533576992475802580000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["53357699247580258000002c"]}}, "$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"=>"53357699247580258000002c"}, "$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"=>["53357699247580258000002c"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53357699247580258000002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53357699247580258000002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533576992475802580000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53357699247580258000002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1488ms) 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.6278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"533576992475802580000022", "site_id"=>"533576992475802580000020", "_id"=>{"$ne"=>"53357699247580258000002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533576992475802580000022", "site_id"=>"533576992475802580000020"}, "$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"=>"533576992475802580000022"}]}]}, "$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"=>"53357699247580258000002e", "parent_ids"=>["533576992475802580000022"], "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"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["53357699247580258000002e"]}}, "$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"=>"53357699247580258000002e"}, "$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"=>["53357699247580258000002e"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576992475802580000022", "site_id"=>"533576992475802580000020", "_id"=>{"$ne"=>"53357699247580258000002f"}, "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"=>"533576992475802580000022", "site_id"=>"533576992475802580000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533576992475802580000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53357699247580258000002f", "parent_ids"=>["533576992475802580000022"], "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"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["53357699247580258000002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53357699247580258000002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53357699247580258000002f"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576992475802580000022", "site_id"=>"533576992475802580000020", "_id"=>{"$ne"=>"533576992475802580000030"}, "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"=>"533576992475802580000022", "site_id"=>"533576992475802580000020"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533576992475802580000022"}]}]}, "$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"=>"533576992475802580000030", "parent_ids"=>["533576992475802580000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533576992475802580000020", "parent_id"=>"533576992475802580000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["533576992475802580000030"]}}, "$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"=>"533576992475802580000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3309ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000030"]}} 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"=>"533576992475802580000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533576992475802580000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6027ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533576992475802580000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533576992475802580000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 13:18:17 UTC}} flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "template_dependencies.en"=>{"$in"=>["533576992475802580000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4697ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533576992475802580000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533576992475802580000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2539ms) 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.5298ms) 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"=>"533576992475802580000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 13:18:16 UTC, "updated_at"=>2014-03-28 13:18:17 UTC, "memberships"=>[{"_id"=>"533576992475802580000033", "role"=>"admin", "account_id"=>"53357699247580258000001f"}]}] flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"533576992475802580000032", "_id"=>{"$ne"=>"533576992475802580000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533576992475802580000034", "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"=>"533576992475802580000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000032", "template_dependencies.en"=>{"$in"=>["533576992475802580000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533576992475802580000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000034"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000034", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576992475802580000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576992475802580000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000032", "_id"=>{"$ne"=>"533576992475802580000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576992475802580000036", "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"=>"533576992475802580000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000032", "template_dependencies.en"=>{"$in"=>["533576992475802580000036"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576992475802580000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576992475802580000036"]}} 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"=>"533576992475802580000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576992475802580000032", "_id"=>{"$ne"=>"533576992475802580000037"}, "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"=>"533576992475802580000032"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576992475802580000037", "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"=>"533576992475802580000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000032", "template_dependencies.en"=>{"$in"=>["533576992475802580000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576992475802580000037"}, "$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"=>["533576992475802580000037"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576992475802580000038", "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=>"533576992475802580000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576992475802580000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576992475802580000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533576992475802580000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576992475802580000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53357699247580258000003a", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC, "entries_custom_fields"=>[{"_id"=>"53357699247580258000003a", "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.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53357699247580258000003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000039"]}} 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"=>"533576992475802580000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000039"]}}} (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53357699247580258000003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533576992475802580000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576992475802580000039", "content_type_id"=>"533576992475802580000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533576992475802580000032", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:17 UTC, "created_at"=>2014-03-28 13:18:17 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576992475802580000039", "original_id"=>"53357699247580258000003b", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53357699247580258000003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533576992475802580000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576992475802580000039", "original_id"=>"53357699247580258000003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1850ms) 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.2220ms) 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.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576992475802580000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}} 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={"_id"=>{"$ne"=>"53357699247580258000002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533576992475802580000025"} update={"$set"=>{"updated_at"=>2014-03-28 13:18:17 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533576992475802580000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1280ms) Started GET "/" for 127.0.0.1 at 2014-03-28 14:18: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.7408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9120ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 14:18: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.7308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "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.8492ms) 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"=>"533576992475802580000020", "locale"=>"en"}} (0.7670ms) Rendered text template (0.0ms) Completed 200 OK in 7.0ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533576992475802580000025"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533576992475802580000025", "updated_at"=>{"$lt"=>2014-03-28 13:18:17 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry533576992475802580000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533576992475802580000020"}, "$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"=>"533576992475802580000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"533576992475802580000028"} update={"$set"=>{"updated_at"=>2014-03-28 13:18:17 UTC}} flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576992475802580000025", "original_id"=>"533576992475802580000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0378ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533576992475802580000029"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533576992475802580000020", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533576992475802580000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533576992475802580000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53357699247580258000002a"} update={"$set"=>{"updated_at"=>2014-03-28 13:18:17 UTC}} flags=[] (0.1278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576992475802580000025", "original_id"=>"53357699247580258000002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5977ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53357699247580258000002b"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533576992475802580000020", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1290ms) Started GET "/en/" for 127.0.0.1 at 2014-03-28 14:18:17 +0100 Started GET "/en" for 127.0.0.1 at 2014-03-28 14:18:17 +0100 Processing by Locomotive::Public::PagesController#show as HTML Parameters: {"page_path"=>"index", "locale"=>"en"} [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.6547ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4.8ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 14:18: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.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576992475802580000020", "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.5212ms) 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"=>"533576992475802580000020", "locale"=>"en"}} (0.4511ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.6709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4883ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4258ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.6399ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9520ms) 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.8180ms) 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.6330ms) 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.1311ms) 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.5839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335769f2475809530000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3db90934e372fae6f169efd806f6bfd4c4780b7e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"uqpTWxEQ7rGFW5pJym49", "api_key"=>"111ffd35165252ea24f7f7ee3d007653bf028ab3", "updated_at"=>2014-03-28 13:18:23 UTC, "created_at"=>2014-03-28 13:18:23 UTC}] flags=[] (0.2460ms) 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.9711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335769f2475809530000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 13:18:23 UTC, "updated_at"=>2014-03-28 13:18:23 UTC, "memberships"=>[{"_id"=>"5335769f2475809530000003", "role"=>"admin", "account_id"=>"5335769f2475809530000001"}]}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335769f2475809530000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335769f2475809530000002", "_id"=>{"$ne"=>"5335769f2475809530000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6719ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335769f2475809530000004", "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"=>"5335769f2475809530000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:23 UTC, "created_at"=>2014-03-28 13:18:23 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["5335769f2475809530000004"]}}, "$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"=>["5335769f2475809530000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335769f2475809530000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335769f2475809530000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335769f2475809530000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335769f2475809530000004", "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"=>"5335769f2475809530000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335769f2475809530000002", "_id"=>{"$ne"=>"5335769f2475809530000006"}, "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"=>"5335769f2475809530000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335769f2475809530000006", "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"=>"5335769f2475809530000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:23 UTC, "created_at"=>2014-03-28 13:18:23 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["5335769f2475809530000006"]}}, "$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"=>"5335769f2475809530000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335769f2475809530000006"]}} 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_content_types selector={"site_id"=>"5335769f2475809530000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335769f2475809530000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335769f2475809530000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533576a02475809530000008", "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC, "entries_custom_fields"=>[{"_id"=>"533576a02475809530000008", "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.4859ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335769f2475809530000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533576a02475809530000009", "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", "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}}} flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576a0247580953000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335769f2475809530000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0643ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335769f2475809530000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6220ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335769f2475809530000007"]}}} (0.6678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576a0247580953000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335769f2475809530000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335769f2475809530000007", "content_type_id"=>"5335769f2475809530000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335769f2475809530000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335769f2475809530000007", "original_id"=>"533576a0247580953000000a", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a0247580953000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335769f2475809530000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335769f2475809530000007", "original_id"=>"533576a0247580953000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576a0247580953000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335769f2475809530000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335769f2475809530000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335769f2475809530000007"]}}} (0.3521ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335769f2475809530000007"]}}} (0.2801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335769f2475809530000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576a0247580953000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335769f2475809530000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335769f2475809530000007", "content_type_id"=>"5335769f2475809530000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335769f2475809530000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335769f2475809530000007", "original_id"=>"533576a0247580953000000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a0247580953000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335769f2475809530000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335769f2475809530000007", "original_id"=>"533576a0247580953000000c", "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.9761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002", "_id"=>{"$ne"=>"533576a0247580953000000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335769f2475809530000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a0247580953000000e", "parent_ids"=>["5335769f2475809530000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["533576a0247580953000000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533576a0247580953000000e"}, "$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"=>["533576a0247580953000000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a0247580953000000e", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533576a0247580953000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335769f2475809530000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a0247580953000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1819ms) 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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002", "_id"=>{"$ne"=>"533576a02475809530000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335769f2475809530000004"}]}]}, "$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"=>"533576a02475809530000010", "parent_ids"=>["5335769f2475809530000004"], "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"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["533576a02475809530000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a02475809530000010"}, "$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"=>["533576a02475809530000010"]}} 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.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002", "_id"=>{"$ne"=>"533576a02475809530000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335769f2475809530000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a02475809530000011", "parent_ids"=>["5335769f2475809530000004"], "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"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["533576a02475809530000011"]}}, "$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"=>"533576a02475809530000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a02475809530000011"]}} 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.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002", "_id"=>{"$ne"=>"533576a02475809530000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335769f2475809530000004", "site_id"=>"5335769f2475809530000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335769f2475809530000004"}]}]}, "$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"=>"533576a02475809530000012", "parent_ids"=>["5335769f2475809530000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335769f2475809530000002", "parent_id"=>"5335769f2475809530000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["533576a02475809530000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533576a02475809530000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a02475809530000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1013ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a02475809530000012", "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"=>"533576a02475809530000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335769f2475809530000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a02475809530000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335769f2475809530000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335769f2475809530000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 13:18:24 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002", "template_dependencies.en"=>{"$in"=>["5335769f2475809530000004"]}}, "$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"=>"5335769f2475809530000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335769f2475809530000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335769f2475809530000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3221ms) 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.5288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533576a02475809530000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 13:18:23 UTC, "updated_at"=>2014-03-28 13:18:24 UTC, "memberships"=>[{"_id"=>"533576a02475809530000015", "role"=>"admin", "account_id"=>"5335769f2475809530000001"}]}] flags=[] (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a02475809530000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a02475809530000014", "_id"=>{"$ne"=>"533576a02475809530000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533576a02475809530000016", "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"=>"533576a02475809530000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a02475809530000014", "template_dependencies.en"=>{"$in"=>["533576a02475809530000016"]}}, "$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"=>"533576a02475809530000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a02475809530000016"]}} 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"=>"533576a02475809530000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3343ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a02475809530000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576a02475809530000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a02475809530000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a02475809530000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"533576a02475809530000014", "_id"=>{"$ne"=>"533576a02475809530000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6173ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a02475809530000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a02475809530000018", "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"=>"533576a02475809530000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a02475809530000014", "template_dependencies.en"=>{"$in"=>["533576a02475809530000018"]}}, "$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"=>"533576a02475809530000018"}, "$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"=>["533576a02475809530000018"]}} 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"=>"533576a02475809530000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"533576a02475809530000014", "_id"=>{"$ne"=>"533576a02475809530000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a02475809530000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9360ms) 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.4039ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a02475809530000019", "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"=>"533576a02475809530000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a02475809530000014", "template_dependencies.en"=>{"$in"=>["533576a02475809530000019"]}}, "$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"=>"533576a02475809530000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a02475809530000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a02475809530000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a0247580953000001a", "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=>"533576a02475809530000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a02475809530000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576a02475809530000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533576a0247580953000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576a02475809530000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533576a0247580953000001c", "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC, "entries_custom_fields"=>[{"_id"=>"533576a0247580953000001c", "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.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576a0247580953000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576a0247580953000001b"]}} 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"=>"533576a0247580953000001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6347ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576a0247580953000001b"]}}} (0.5429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576a0247580953000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533576a0247580953000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576a0247580953000001b", "content_type_id"=>"533576a0247580953000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533576a02475809530000014", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:24 UTC, "created_at"=>2014-03-28 13:18:24 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576a0247580953000001b", "original_id"=>"533576a0247580953000001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4463ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a0247580953000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533576a02475809530000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576a0247580953000001b", "original_id"=>"533576a0247580953000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2079ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 14:18: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.7639ms) 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.5319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335769f2475809530000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5097ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (22.6ms) Completed 200 OK in 47.7ms (Views: 41.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 14:18:25 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 14:18:25 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (14ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 14:18:25 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 14:18: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.7222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335769f2475809530000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4249ms) 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.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335769f2475809530000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 13:18:25 UTC, "updated_at"=>2014-03-28 13:18:25 UTC}} flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335769f2475809530000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 13:18:25 UTC, "current_sign_in_at"=>2014-03-28 13:18:25 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 13:18:25 UTC}} flags=[] (0.2298ms) 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-03-28 14:18:25 +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.6618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335769f2475809530000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5335769f2475809530000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"5335769f2475809530000002"}, "$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, "target_klass_name"=>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.4079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002"}, "$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, "target_klass_name"=>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.3230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335769f2475809530000002"}, "$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.7391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335769f2475809530000002"}, "$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.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335769f2475809530000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8008ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (29.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (10.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (56.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5335769f2475809530000001", :role=>:admin}}}} (0.5319ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (1.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (16.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335769f2475809530000001"}} (0.5131ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5335769f2475809530000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (4.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (25.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (1.5ms) Completed 200 OK in 142.6ms (Views: 123.6ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 14:18:26 +0100 Served asset /locomotive.js - 200 OK (214ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 14:18:26 +0100 Served asset /locomotive.css - 200 OK (70ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 14:18:26 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 14:18:26 +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-03-28 14:18: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-03-28 14:18: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 (1.0121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335769f2475809530000001"}, "$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={"_id"=>{"$in"=>["5335769f2475809530000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5335769f2475809530000002"}, "$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, "target_klass_name"=>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.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335769f2475809530000002"}, "$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.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335769f2475809530000002"}, "$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.4451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335769f2475809530000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8061ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (15.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335769f2475809530000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6940ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (6.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_select_templates.html.haml (2.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/custom_fields/_form.html.haml (68.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335769f2475809530000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5350ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/_form.html.haml (91.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (118.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"5335769f2475809530000001", :role=>:admin}}}} (0.6709ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5335769f2475809530000001"}} (0.5128ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"5335769f2475809530000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9041ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (9.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 156.2ms (Views: 142.2ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-03-28 14:18:27 +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 (0.6628ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3299ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.6102ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4360ms) 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.4501ms) 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.6480ms) 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.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533576a32475809530000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ee3f7f96b6a011700faf4d4da712ca33fb97a60c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"EPPUD3qyydbMDCV9qC8z", "api_key"=>"0fcdd14ab54c15e00b5e5f76d1331ecc6fa24066", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.4733ms) 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.1747ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533576a32475809530000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 13:18:23 UTC, "updated_at"=>2014-03-28 13:18:27 UTC, "memberships"=>[{"_id"=>"533576a32475809530000022", "role"=>"admin", "account_id"=>"533576a32475809530000020"}]}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000021", "_id"=>{"$ne"=>"533576a32475809530000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533576a32475809530000023", "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"=>"533576a32475809530000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a32475809530000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4427ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a32475809530000023"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a32475809530000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576a32475809530000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000021", "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"=>"533576a32475809530000021", "_id"=>{"$ne"=>"533576a32475809530000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a32475809530000025", "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"=>"533576a32475809530000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a32475809530000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533576a32475809530000025"}, "$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"=>["533576a32475809530000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576a32475809530000021", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"533576a32475809530000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576a32475809530000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533576a32475809530000027", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC, "entries_custom_fields"=>[{"_id"=>"533576a32475809530000027", "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.2191ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533576a32475809530000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533576a32475809530000028", "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", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}}} flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576a32475809530000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576a32475809530000026"]}} 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"=>"533576a32475809530000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576a32475809530000026"]}}} (0.6721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576a32475809530000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533576a32475809530000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576a32475809530000026", "content_type_id"=>"533576a32475809530000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533576a32475809530000021", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576a32475809530000026", "original_id"=>"533576a32475809530000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6428ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a3247580953000002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533576a32475809530000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576a32475809530000026", "original_id"=>"533576a32475809530000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2007ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576a3247580953000002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533576a32475809530000026"]}} 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"=>"533576a32475809530000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5672ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576a32475809530000026"]}}} (0.4239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576a32475809530000026"]}}} (0.2742ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576a32475809530000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576a3247580953000002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533576a32475809530000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576a32475809530000026", "content_type_id"=>"533576a32475809530000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533576a32475809530000021", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576a32475809530000026", "original_id"=>"533576a3247580953000002b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"533576a3247580953000002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533576a32475809530000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576a32475809530000026", "original_id"=>"533576a3247580953000002b", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2081ms) 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.6382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021", "_id"=>{"$ne"=>"533576a3247580953000002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533576a32475809530000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a3247580953000002d", "parent_ids"=>["533576a32475809530000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a3247580953000002d"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"533576a3247580953000002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4578ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a3247580953000002d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a3247580953000002d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a3247580953000002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533576a32475809530000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a3247580953000002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1910ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021", "_id"=>{"$ne"=>"533576a3247580953000002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"533576a32475809530000023"}]}]}, "$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"=>"533576a3247580953000002f", "parent_ids"=>["533576a32475809530000023"], "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"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a3247580953000002f"]}}, "$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"=>"533576a3247580953000002f"}, "$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"=>["533576a3247580953000002f"]}} 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.6022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021", "_id"=>{"$ne"=>"533576a32475809530000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021"}, "$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"=>"533576a32475809530000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a32475809530000030", "parent_ids"=>["533576a32475809530000023"], "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"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a32475809530000030"]}}, "$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"=>"533576a32475809530000030"}, "$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"=>["533576a32475809530000030"]}} 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.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021", "_id"=>{"$ne"=>"533576a32475809530000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000023", "site_id"=>"533576a32475809530000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533576a32475809530000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a32475809530000031", "parent_ids"=>["533576a32475809530000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533576a32475809530000021", "parent_id"=>"533576a32475809530000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a32475809530000031"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533576a32475809530000031"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["533576a32475809530000031"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000031", "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"=>"533576a32475809530000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533576a32475809530000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533576a32475809530000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533576a32475809530000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 13:18:27 UTC}} flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021", "template_dependencies.en"=>{"$in"=>["533576a32475809530000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5429ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533576a32475809530000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533576a32475809530000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2751ms) 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.8459ms) 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.3777ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533576a32475809530000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 13:18:23 UTC, "updated_at"=>2014-03-28 13:18:27 UTC, "memberships"=>[{"_id"=>"533576a32475809530000034", "role"=>"admin", "account_id"=>"533576a32475809530000020"}]}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000033", "_id"=>{"$ne"=>"533576a32475809530000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533576a32475809530000035", "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"=>"533576a32475809530000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000033", "template_dependencies.en"=>{"$in"=>["533576a32475809530000035"]}}, "$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"=>"533576a32475809530000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a32475809530000035"]}} 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"=>"533576a32475809530000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3116ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a32475809530000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533576a32475809530000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000035", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533576a32475809530000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000033", "_id"=>{"$ne"=>"533576a32475809530000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8557ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a32475809530000037", "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"=>"533576a32475809530000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000033", "template_dependencies.en"=>{"$in"=>["533576a32475809530000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533576a32475809530000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a32475809530000037"]}} 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"=>"533576a32475809530000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5157ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000033", "_id"=>{"$ne"=>"533576a32475809530000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533576a32475809530000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6192ms) 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.5369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533576a32475809530000038", "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"=>"533576a32475809530000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000033", "template_dependencies.en"=>{"$in"=>["533576a32475809530000038"]}}, "$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"=>"533576a32475809530000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533576a32475809530000038"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a32475809530000039", "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=>"533576a32475809530000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533576a32475809530000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576a32475809530000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533576a3247580953000003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533576a32475809530000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533576a3247580953000003b", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC, "entries_custom_fields"=>[{"_id"=>"533576a3247580953000003b", "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.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533576a3247580953000003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533576a3247580953000003a"]}} 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"=>"533576a3247580953000003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533576a3247580953000003a"]}}} (0.4451ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533576a3247580953000003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533576a3247580953000003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533576a3247580953000003a", "content_type_id"=>"533576a3247580953000003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533576a32475809530000033", "_label_field_name"=>"name", "updated_at"=>2014-03-28 13:18:27 UTC, "created_at"=>2014-03-28 13:18:27 UTC}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533576a3247580953000003a", "original_id"=>"533576a3247580953000003c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4067ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533576a3247580953000003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533576a32475809530000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533576a3247580953000003a", "original_id"=>"533576a3247580953000003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2313ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 14:18: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.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533576a32475809530000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8512ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (5.9ms) Completed 200 OK in 12.2ms (Views: 7.9ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 14:18: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.7889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533576a32475809530000020"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$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_accounts selector={"_id"=>"533576a32475809530000020"} update={"$set"=>{"remember_created_at"=>2014-03-28 13:18:27 UTC, "updated_at"=>2014-03-28 13:18:27 UTC}} flags=[] (0.0999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533576a32475809530000020"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 13:18:27 UTC, "current_sign_in_at"=>2014-03-28 13:18: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-03-28 13:18:27 UTC}} flags=[] (0.1180ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 8.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 14:18: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.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533576a32475809530000020"}, "$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"=>["533576a32475809530000020"]}} 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"=>"533576a32475809530000021"}, "$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, "target_klass_name"=>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.2500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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, "target_klass_name"=>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.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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.4058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533576a32475809530000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6320ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (14.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (6.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_page.html.haml (9.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (25.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"533576a32475809530000020", :role=>:admin}}}} (0.8590ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (5.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533576a32475809530000020"}} (0.4590ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"533576a32475809530000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5569ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (6.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.6ms (Views: 40.4ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-03-28 14:18: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.7842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533576a32475809530000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533576a32475809530000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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, "target_klass_name"=>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.1151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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.7911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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.5670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533576a32475809530000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.1747ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/menu/_contents.html.haml (16.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/content_assets/_picker.html.haml (5.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/theme_assets/_picker.html.haml (4.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_editable_elements.html.haml (5.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533576a32475809530000021"}, "$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, "target_klass_name"=>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.1020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533576a32475809530000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9291ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/_form.html.haml (107.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (134.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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=>"533576a32475809530000020", :role=>:admin}}}} (0.6039ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_head.html.haml (5.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533576a32475809530000020"}} (0.4158ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/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"=>"533576a32475809530000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6492ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_site_picker.html.haml (2.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_header.html.haml (7.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 173.7ms (Views: 156.4ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-03-28 14:18:28 +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.9511ms) 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.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.3920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3722ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.8912ms) 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.6061ms) 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.6220ms) 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 (17.9882ms) 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.9520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359543247580d967000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"94d04a9729eec8d702897b023a80a32002c16507", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"nt9shT3VdYkVdYY2TELp", "api_key"=>"631a5f170eae76bf2cd84b7c19a903fcfaad71e9", "updated_at"=>2014-03-28 15:29:07 UTC, "created_at"=>2014-03-28 15:29:07 UTC}] flags=[] (0.3240ms) 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} (16.8500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359543247580d967000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:29:07 UTC, "updated_at"=>2014-03-28 15:29:07 UTC, "memberships"=>[{"_id"=>"53359543247580d967000003", "role"=>"admin", "account_id"=>"53359543247580d967000001"}]}] flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359543247580d967000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.9693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359543247580d967000002", "_id"=>{"$ne"=>"53359544247580d967000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53359544247580d967000004", "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"=>"53359543247580d967000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d967000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2121ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359544247580d967000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359543247580d967000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359543247580d967000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359543247580d967000002", "_id"=>{"$ne"=>"53359544247580d967000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.8740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359543247580d967000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d967000006", "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"=>"53359543247580d967000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.2217ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d967000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5491ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359543247580d967000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359544247580d967000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359543247580d967000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359544247580d967000008", "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC, "entries_custom_fields"=>[{"_id"=>"53359544247580d967000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359544247580d967000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359544247580d967000009", "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", "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}}} flags=[] (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359544247580d96700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d967000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359544247580d967000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d967000007"]}}} (1.1091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359544247580d96700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359544247580d967000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359544247580d967000007", "content_type_id"=>"53359544247580d967000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359543247580d967000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.5171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359544247580d967000007", "original_id"=>"53359544247580d96700000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359544247580d96700000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359543247580d967000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359544247580d967000007", "original_id"=>"53359544247580d96700000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359544247580d96700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d967000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359544247580d967000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d967000007"]}}} (0.8693ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d967000007"]}}} (0.4630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d967000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359544247580d96700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359544247580d967000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359544247580d967000007", "content_type_id"=>"53359544247580d967000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359543247580d967000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359544247580d967000007", "original_id"=>"53359544247580d96700000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"53359544247580d96700000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359543247580d967000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359544247580d967000007", "original_id"=>"53359544247580d96700000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.4599ms) 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.3702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002", "_id"=>{"$ne"=>"53359544247580d96700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1687ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359544247580d967000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5509ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d96700000e", "parent_ids"=>["53359544247580d967000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d96700000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d96700000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7272ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d96700000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d96700000e", "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"=>"53359544247580d96700000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359543247580d967000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d96700000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2069ms) 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.8168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002", "_id"=>{"$ne"=>"53359544247580d967000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359544247580d967000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2228ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d967000010", "parent_ids"=>["53359544247580d967000004"], "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"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d967000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2827ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3781ms) 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.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002", "_id"=>{"$ne"=>"53359544247580d967000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359544247580d967000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7081ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d967000011", "parent_ids"=>["53359544247580d967000004"], "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"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d967000011"]}}, "$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"=>"53359544247580d967000011"}, "$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"=>["53359544247580d967000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1206ms) 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"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002", "_id"=>{"$ne"=>"53359544247580d967000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000004", "site_id"=>"53359543247580d967000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359544247580d967000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d967000012", "parent_ids"=>["53359544247580d967000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359543247580d967000002", "parent_id"=>"53359544247580d967000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.1898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d967000012"]}}, "$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"=>"53359544247580d967000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3357ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000012"]}} 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"=>"53359544247580d967000012", "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"=>"53359544247580d967000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359543247580d967000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "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"=>"53359543247580d967000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359544247580d967000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:29:08 UTC}} flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359543247580d967000002", "template_dependencies.en"=>{"$in"=>["53359544247580d967000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4570ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359544247580d967000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359543247580d967000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1371ms) 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.5460ms) 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.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359544247580d967000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:29:07 UTC, "updated_at"=>2014-03-28 15:29:08 UTC, "memberships"=>[{"_id"=>"53359544247580d967000015", "role"=>"admin", "account_id"=>"53359543247580d967000001"}]}] flags=[] (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359544247580d967000014", "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"=>"53359544247580d967000014", "_id"=>{"$ne"=>"53359544247580d967000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359544247580d967000016", "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"=>"53359544247580d967000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359544247580d967000014", "template_dependencies.en"=>{"$in"=>["53359544247580d967000016"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"53359544247580d967000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359544247580d967000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359544247580d967000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359544247580d967000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4706ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359544247580d967000014", "_id"=>{"$ne"=>"53359544247580d967000018"}, "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"=>"53359544247580d967000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d967000018", "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"=>"53359544247580d967000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.1867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359544247580d967000014", "template_dependencies.en"=>{"$in"=>["53359544247580d967000018"]}}, "$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"=>"53359544247580d967000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000018"]}} 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={"site_id"=>"53359544247580d967000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359544247580d967000014", "_id"=>{"$ne"=>"53359544247580d967000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359544247580d967000014"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2608ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359544247580d967000019", "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"=>"53359544247580d967000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359544247580d967000014", "template_dependencies.en"=>{"$in"=>["53359544247580d967000019"]}}, "$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"=>"53359544247580d967000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359544247580d967000019"]}} 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"=>"53359544247580d967000019", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359544247580d96700001a", "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=>"53359544247580d967000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359544247580d967000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359544247580d967000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359544247580d96700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359544247580d967000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359544247580d96700001c", "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC, "entries_custom_fields"=>[{"_id"=>"53359544247580d96700001c", "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.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359544247580d96700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d96700001b"]}} 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"=>"53359544247580d96700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359544247580d96700001b"]}}} (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359544247580d96700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359544247580d96700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359544247580d96700001b", "content_type_id"=>"53359544247580d96700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359544247580d967000014", "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:29:08 UTC, "created_at"=>2014-03-28 15:29:08 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359544247580d96700001b", "original_id"=>"53359544247580d96700001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359544247580d96700001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359544247580d967000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359544247580d96700001b", "original_id"=>"53359544247580d96700001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1311ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:29: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} (1.4000ms) 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.2369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359543247580d967000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6478ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (21.0ms) Completed 200 OK in 48.3ms (Views: 38.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:29:10 +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-03-28 16:29:10 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (15ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 16:29:10 +0100 Served asset /locomotive/background/body.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 (2.9061ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:29: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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (6.5939ms) 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.7889ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359543247580d967000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9480ms) Completed 500 Internal Server Error in 4.4ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2858ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (7.3900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9153ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (2.2540ms) 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.0619ms) 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.5598ms) 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.9072ms) 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.8028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533596aa247580e4b3000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0ecb9f19aa66df525757bbc35d068e6fb5816251", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yMLduUy4Zy7Pqr5zypNz", "api_key"=>"c772f6063e7ec0c30b24581c9b3de90a8066ed88", "updated_at"=>2014-03-28 15:35:06 UTC, "created_at"=>2014-03-28 15:35:06 UTC}] flags=[] (0.1888ms) 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.9100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533596aa247580e4b3000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:35:06 UTC, "updated_at"=>2014-03-28 15:35:06 UTC, "memberships"=>[{"_id"=>"533596aa247580e4b3000003", "role"=>"admin", "account_id"=>"533596aa247580e4b3000001"}]}] flags=[] (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596aa247580e4b3000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (5.7249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596aa247580e4b3000002", "_id"=>{"$ne"=>"533596aa247580e4b3000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596aa247580e4b3000004", "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"=>"533596aa247580e4b3000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:06 UTC, "created_at"=>2014-03-28 15:35:06 UTC}] flags=[] (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.2863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596aa247580e4b3000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596aa247580e4b3000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533596aa247580e4b3000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (7.2010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b3000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533596aa247580e4b3000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533596aa247580e4b3000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596aa247580e4b3000002", "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"=>"533596aa247580e4b3000002", "_id"=>{"$ne"=>"533596ab247580e4b3000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.1060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596aa247580e4b3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000006", "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"=>"533596aa247580e4b3000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000006"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"533596ab247580e4b3000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6893ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (1.5862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533596aa247580e4b3000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533596ab247580e4b3000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533596aa247580e4b3000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533596ab247580e4b3000008", "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC, "entries_custom_fields"=>[{"_id"=>"533596ab247580e4b3000008", "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.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533596ab247580e4b3000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533596ab247580e4b3000009", "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", "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}}} flags=[] (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533596ab247580e4b300000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b3000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533596ab247580e4b3000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b3000007"]}}} (0.6340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533596ab247580e4b300000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533596ab247580e4b3000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533596ab247580e4b3000007", "content_type_id"=>"533596ab247580e4b3000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533596aa247580e4b3000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533596ab247580e4b3000007", "original_id"=>"533596ab247580e4b300000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b300000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533596aa247580e4b3000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533596ab247580e4b3000007", "original_id"=>"533596ab247580e4b300000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.3757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533596ab247580e4b300000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b3000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533596ab247580e4b3000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4329ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b3000007"]}}} (2.8729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b3000007"]}}} (0.6127ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b3000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533596ab247580e4b300000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533596ab247580e4b3000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533596ab247580e4b3000007", "content_type_id"=>"533596ab247580e4b3000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533596aa247580e4b3000002", "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533596ab247580e4b3000007", "original_id"=>"533596ab247580e4b300000c", "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"=>"533596ab247580e4b300000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533596aa247580e4b3000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533596ab247580e4b3000007", "original_id"=>"533596ab247580e4b300000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.4389ms) 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.0729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002", "_id"=>{"$ne"=>"533596ab247580e4b300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533596aa247580e4b3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.3022ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b300000e", "parent_ids"=>["533596aa247580e4b3000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b300000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596ab247580e4b300000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9022ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b300000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b300000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7167ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b300000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533596aa247580e4b3000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b300000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.4010ms) 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.0262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.4099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002", "_id"=>{"$ne"=>"533596ab247580e4b3000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533596aa247580e4b3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000010", "parent_ids"=>["533596aa247580e4b3000004"], "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"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.0322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596ab247580e4b3000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0543ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4191ms) 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.6208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002", "_id"=>{"$ne"=>"533596ab247580e4b3000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.3167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533596aa247580e4b3000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.4309ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000011", "parent_ids"=>["533596aa247580e4b3000004"], "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"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596ab247580e4b3000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2449ms) 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.0409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002", "_id"=>{"$ne"=>"533596ab247580e4b3000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596aa247580e4b3000004", "site_id"=>"533596aa247580e4b3000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533596aa247580e4b3000004"}]}]}, "$orderby"=>{"depth"=>1}} 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=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000012", "parent_ids"=>["533596aa247580e4b3000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533596aa247580e4b3000002", "parent_id"=>"533596aa247580e4b3000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000012"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533596ab247580e4b3000012"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b3000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.7590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b3000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533596aa247580e4b3000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b3000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (2.3701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.2562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533596aa247580e4b3000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533596aa247580e4b3000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:35:07 UTC}} flags=[] (1.2507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596aa247580e4b3000002", "template_dependencies.en"=>{"$in"=>["533596aa247580e4b3000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533596aa247580e4b3000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.5060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533596ab247580e4b3000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533596aa247580e4b3000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.5147ms) 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.8711ms) 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.9711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533596ab247580e4b3000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:35:06 UTC, "updated_at"=>2014-03-28 15:35:07 UTC, "memberships"=>[{"_id"=>"533596ab247580e4b3000015", "role"=>"admin", "account_id"=>"533596aa247580e4b3000001"}]}] flags=[] (0.5293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596ab247580e4b3000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596ab247580e4b3000014", "_id"=>{"$ne"=>"533596ab247580e4b3000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000016", "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"=>"533596ab247580e4b3000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596ab247580e4b3000014", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533596ab247580e4b3000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6761ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.6473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b3000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b3000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533596ab247580e4b3000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b3000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596ab247580e4b3000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596ab247580e4b3000014", "_id"=>{"$ne"=>"533596ab247580e4b3000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.0280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596ab247580e4b3000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000018", "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"=>"533596ab247580e4b3000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596ab247580e4b3000014", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596ab247580e4b3000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.0339ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533596ab247580e4b3000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596ab247580e4b3000014", "_id"=>{"$ne"=>"533596ab247580e4b3000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.0669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533596ab247580e4b3000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0809ms) 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.8461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533596ab247580e4b3000019", "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"=>"533596ab247580e4b3000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533596ab247580e4b3000014", "template_dependencies.en"=>{"$in"=>["533596ab247580e4b3000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7946ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533596ab247580e4b3000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.0192ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533596ab247580e4b3000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b3000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b300001a", "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=>"533596ab247580e4b3000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533596ab247580e4b3000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.4458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533596ab247580e4b3000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533596ab247580e4b300001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533596ab247580e4b3000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533596ab247580e4b300001c", "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC, "entries_custom_fields"=>[{"_id"=>"533596ab247580e4b300001c", "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.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533596ab247580e4b300001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b300001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.0552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533596ab247580e4b300001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533596ab247580e4b300001b"]}}} (0.9773ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533596ab247580e4b300001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533596ab247580e4b300001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533596ab247580e4b300001b", "content_type_id"=>"533596ab247580e4b300001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533596ab247580e4b3000014", "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:35:07 UTC, "created_at"=>2014-03-28 15:35:07 UTC}] flags=[] (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533596ab247580e4b300001b", "original_id"=>"533596ab247580e4b300001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533596ab247580e4b300001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533596ab247580e4b3000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533596ab247580e4b300001b", "original_id"=>"533596ab247580e4b300001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3331ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:35:11 +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} (3.0601ms) 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.8889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533596aa247580e4b3000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7250ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (53.5ms) Completed 200 OK in 113.1ms (Views: 93.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:35:12 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (26ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 16:35:12 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (41ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 16:35:12 +0100 Served asset /locomotive/background/body.png - 200 OK (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 (9.1221ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:35:12 +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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (26.1209ms) 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 (14.7851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (13.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533596aa247580e4b3000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (11.6670ms) Completed 500 Internal Server Error in 34.3ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (7.4019ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (17.5769ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (11.2801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (3.8152ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.4999ms) 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.5502ms) 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.4498ms) 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 (10.7996ms) 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} (7.6420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359854247580f791000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b0cf8e4448c657d988910b3b8bb5e1923b5b12d7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"VdpWhQjdpX8aE8d5Fqfj", "api_key"=>"eaaa95f02b0735cc0a220fb242d3d95bd7d4c1a0", "updated_at"=>2014-03-28 15:42:12 UTC, "created_at"=>2014-03-28 15:42:12 UTC}] flags=[] (0.6161ms) 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.6181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359854247580f791000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:42:11 UTC, "updated_at"=>2014-03-28 15:42:12 UTC, "memberships"=>[{"_id"=>"53359854247580f791000003", "role"=>"admin", "account_id"=>"53359854247580f791000001"}]}] flags=[] (0.3440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359854247580f791000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (5.3220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359854247580f791000002", "_id"=>{"$ne"=>"53359854247580f791000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.8412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359854247580f791000004", "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"=>"53359854247580f791000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:12 UTC, "created_at"=>2014-03-28 15:42:12 UTC}] flags=[] (0.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.7852ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359854247580f791000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8309ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359854247580f791000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.8972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359854247580f791000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.7501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359854247580f791000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359854247580f791000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359854247580f791000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359854247580f791000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359854247580f791000002", "_id"=>{"$ne"=>"53359854247580f791000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359854247580f791000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6398ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359854247580f791000006", "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"=>"53359854247580f791000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:12 UTC, "created_at"=>2014-03-28 15:42:12 UTC}] flags=[] (0.7169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359854247580f791000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (4.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1119ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359854247580f791000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359854247580f791000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"53359854247580f791000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359854247580f791000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359855247580f791000008", "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC, "entries_custom_fields"=>[{"_id"=>"53359855247580f791000008", "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.5460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359854247580f791000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359855247580f791000009", "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", "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}}} flags=[] (2.4948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359855247580f79100000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359854247580f791000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359854247580f791000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359854247580f791000007"]}}} (0.7150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359855247580f79100000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359854247580f791000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359854247580f791000007", "content_type_id"=>"53359854247580f791000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359854247580f791000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}] flags=[] (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359854247580f791000007", "original_id"=>"53359855247580f79100000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359855247580f79100000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359854247580f791000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359854247580f791000007", "original_id"=>"53359855247580f79100000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.8278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359855247580f79100000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359854247580f791000007"]}} 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_entries selector={"content_type_id"=>"53359854247580f791000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0171ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359854247580f791000007"]}}} (1.0712ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359854247580f791000007"]}}} (0.8481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359854247580f791000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2736ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359855247580f79100000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359854247580f791000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359854247580f791000007", "content_type_id"=>"53359854247580f791000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359854247580f791000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}] flags=[] (0.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359854247580f791000007", "original_id"=>"53359855247580f79100000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359855247580f79100000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359854247580f791000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359854247580f791000007", "original_id"=>"53359855247580f79100000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3190ms) 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.5039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002", "_id"=>{"$ne"=>"53359855247580f79100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6394ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359854247580f791000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7540ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359855247580f79100000e", "parent_ids"=>["53359854247580f791000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}] flags=[] (0.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359855247580f79100000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7517ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359855247580f79100000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1482ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359855247580f79100000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359855247580f79100000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359855247580f79100000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359854247580f791000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359855247580f79100000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.7889ms) 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 (2.1091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002", "_id"=>{"$ne"=>"53359855247580f791000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.4211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.7922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359854247580f791000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359855247580f791000010", "parent_ids"=>["53359854247580f791000004"], "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"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}] flags=[] (0.8471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359855247580f791000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359855247580f791000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.6700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359855247580f791000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2761ms) 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 (2.1000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002", "_id"=>{"$ne"=>"53359855247580f791000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.0949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (5.6319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359854247580f791000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359855247580f791000011", "parent_ids"=>["53359854247580f791000004"], "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"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}] flags=[] (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359855247580f791000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359855247580f791000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359855247580f791000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3922ms) 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 (2.4691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002", "_id"=>{"$ne"=>"53359855247580f791000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (8.7371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359854247580f791000004", "site_id"=>"53359854247580f791000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359854247580f791000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359855247580f791000012", "parent_ids"=>["53359854247580f791000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359854247580f791000002", "parent_id"=>"53359854247580f791000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:13 UTC, "created_at"=>2014-03-28 15:42:13 UTC}] flags=[] (0.8800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359855247580f791000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359855247580f791000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4501ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359855247580f791000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (1.0350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359855247580f791000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359855247580f791000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359854247580f791000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359855247580f791000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.7138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.0350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53359854247580f791000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.0560ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359854247580f791000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:42:14 UTC}} flags=[] (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359854247580f791000002", "template_dependencies.en"=>{"$in"=>["53359854247580f791000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359854247580f791000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.5959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359854247580f791000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359854247580f791000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3910ms) 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 (3.9680ms) 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.1008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359856247580f791000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:42:11 UTC, "updated_at"=>2014-03-28 15:42:14 UTC, "memberships"=>[{"_id"=>"53359856247580f791000015", "role"=>"admin", "account_id"=>"53359854247580f791000001"}]}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359856247580f791000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359856247580f791000014", "_id"=>{"$ne"=>"53359856247580f791000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (5.7821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359856247580f791000016", "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"=>"53359856247580f791000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:14 UTC, "created_at"=>2014-03-28 15:42:14 UTC}] flags=[] (0.7408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359856247580f791000014", "template_dependencies.en"=>{"$in"=>["53359856247580f791000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"53359856247580f791000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2403ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359856247580f791000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359856247580f791000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0113ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359856247580f791000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359856247580f791000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359856247580f791000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (3.7739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359856247580f791000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359856247580f791000014", "_id"=>{"$ne"=>"53359856247580f791000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359856247580f791000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8237ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359856247580f791000018", "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"=>"53359856247580f791000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:14 UTC, "created_at"=>2014-03-28 15:42:14 UTC}] flags=[] (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359856247580f791000014", "template_dependencies.en"=>{"$in"=>["53359856247580f791000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359856247580f791000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3766ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359856247580f791000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359856247580f791000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359856247580f791000014", "_id"=>{"$ne"=>"53359856247580f791000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.8098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359856247580f791000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.1026ms) 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.9131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359856247580f791000019", "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"=>"53359856247580f791000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:42:14 UTC, "created_at"=>2014-03-28 15:42:14 UTC}] flags=[] (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359856247580f791000014", "template_dependencies.en"=>{"$in"=>["53359856247580f791000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359856247580f791000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8771ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359856247580f791000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359856247580f791000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.8160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359856247580f79100001a", "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=>"53359856247580f791000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359856247580f791000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.7498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359856247580f791000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359856247580f79100001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359856247580f791000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359856247580f79100001c", "updated_at"=>2014-03-28 15:42:14 UTC, "created_at"=>2014-03-28 15:42:14 UTC, "entries_custom_fields"=>[{"_id"=>"53359856247580f79100001c", "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.0180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359856247580f79100001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359856247580f79100001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359856247580f79100001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7811ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359856247580f79100001b"]}}} (10.6571ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359856247580f79100001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359856247580f79100001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359856247580f79100001b", "content_type_id"=>"53359856247580f79100001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359856247580f791000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:42:14 UTC, "created_at"=>2014-03-28 15:42:14 UTC}] flags=[] (3.9864ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359856247580f79100001b", "original_id"=>"53359856247580f79100001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4410ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359856247580f79100001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359856247580f791000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359856247580f79100001b", "original_id"=>"53359856247580f79100001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.9642ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:42: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} (10.0119ms) 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.5390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359854247580f791000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4331ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (103.9ms) Completed 200 OK in 189.9ms (Views: 152.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:42:20 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (28ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 16:42:20 +0100 Compiled locomotive/not_logged_in/layout.css (7418ms) (pid 9272) Compiled locomotive/not_logged_in.css (9ms) (pid 9272) Served asset /locomotive/not_logged_in.css - 200 OK (7511ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 16:42:28 +0100 Served asset /locomotive/background/body.png - 200 OK (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 (8.7261ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:42: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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (15.3430ms) 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.4271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (14.2169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359854247580f791000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (12.6610ms) Completed 500 Internal Server Error in 23.5ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (6.5989ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (4.0970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (6.5300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (3.4692ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (4.3721ms) 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 (2.1000ms) 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 (1.4572ms) 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.8442ms) 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} (2.6071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533598b6247580ecac000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c257897cdc932bd978a6c353f9cecd1dd2abc006", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ngyygVATJyB9qSJXNCPL", "api_key"=>"3bd3a546a3dedff4db4fb3aef031c02599d4fc47", "updated_at"=>2014-03-28 15:43:50 UTC, "created_at"=>2014-03-28 15:43:50 UTC}] flags=[] (0.4351ms) 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} (3.9639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533598b6247580ecac000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:43:50 UTC, "updated_at"=>2014-03-28 15:43:50 UTC, "memberships"=>[{"_id"=>"533598b6247580ecac000003", "role"=>"admin", "account_id"=>"533598b6247580ecac000001"}]}] flags=[] (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b6247580ecac000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.3028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b6247580ecac000002", "_id"=>{"$ne"=>"533598b7247580ecac000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b7247580ecac000004", "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"=>"533598b6247580ecac000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:51 UTC, "created_at"=>2014-03-28 15:43:51 UTC}] flags=[] (0.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.5818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b7247580ecac000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b7247580ecac000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533598b7247580ecac000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8571ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b7247580ecac000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533598b6247580ecac000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533598b7247580ecac000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.6647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b6247580ecac000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b6247580ecac000002", "_id"=>{"$ne"=>"533598b7247580ecac000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.6162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b6247580ecac000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b7247580ecac000006", "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"=>"533598b6247580ecac000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:51 UTC, "created_at"=>2014-03-28 15:43:51 UTC}] flags=[] (0.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b7247580ecac000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b7247580ecac000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533598b6247580ecac000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533598b7247580ecac000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533598b6247580ecac000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533598b7247580ecac000008", "updated_at"=>2014-03-28 15:43:51 UTC, "created_at"=>2014-03-28 15:43:51 UTC, "entries_custom_fields"=>[{"_id"=>"533598b7247580ecac000008", "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.7219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533598b7247580ecac000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533598b7247580ecac000009", "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", "updated_at"=>2014-03-28 15:43:51 UTC, "created_at"=>2014-03-28 15:43:51 UTC}}} flags=[] (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533598b8247580ecac00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533598b7247580ecac000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.3129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533598b7247580ecac000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533598b7247580ecac000007"]}}} (1.0862ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533598b8247580ecac00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533598b7247580ecac000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533598b7247580ecac000007", "content_type_id"=>"533598b7247580ecac000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533598b6247580ecac000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.7000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533598b7247580ecac000007", "original_id"=>"533598b8247580ecac00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533598b6247580ecac000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533598b7247580ecac000007", "original_id"=>"533598b8247580ecac00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.3552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533598b8247580ecac00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533598b7247580ecac000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533598b7247580ecac000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533598b7247580ecac000007"]}}} (1.3731ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533598b7247580ecac000007"]}}} (1.7059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533598b7247580ecac000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.4641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533598b8247580ecac00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533598b7247580ecac000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533598b7247580ecac000007", "content_type_id"=>"533598b7247580ecac000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533598b6247580ecac000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.6869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533598b7247580ecac000007", "original_id"=>"533598b8247580ecac00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.8628ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533598b6247580ecac000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533598b7247580ecac000007", "original_id"=>"533598b8247580ecac00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.4230ms) 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 (2.2199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.3990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002", "_id"=>{"$ne"=>"533598b8247580ecac00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533598b7247580ecac000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac00000e", "parent_ids"=>["533598b7247580ecac000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (1.3349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b8247580ecac00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5278ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533598b6247580ecac000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.6239ms) 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.0078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002", "_id"=>{"$ne"=>"533598b8247580ecac000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533598b7247580ecac000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (11.4150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac000010", "parent_ids"=>["533598b7247580ecac000004"], "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"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.0530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b8247580ecac000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0822ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2849ms) 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 (2.0721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002", "_id"=>{"$ne"=>"533598b8247580ecac000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.0819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533598b7247580ecac000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.6301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac000011", "parent_ids"=>["533598b7247580ecac000004"], "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"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533598b8247580ecac000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0931ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4702ms) 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.9460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002", "_id"=>{"$ne"=>"533598b8247580ecac000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.5470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b7247580ecac000004", "site_id"=>"533598b6247580ecac000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.4211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533598b7247580ecac000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.8009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac000012", "parent_ids"=>["533598b7247580ecac000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533598b6247580ecac000002", "parent_id"=>"533598b7247580ecac000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b8247580ecac000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.8129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7632ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533598b6247580ecac000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.8240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (7.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533598b6247580ecac000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533598b7247580ecac000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:43:52 UTC}} flags=[] (0.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b6247580ecac000002", "template_dependencies.en"=>{"$in"=>["533598b7247580ecac000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.8749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533598b7247580ecac000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4422ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533598b7247580ecac000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533598b6247580ecac000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.5772ms) 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.8487ms) 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.3609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533598b8247580ecac000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:43:50 UTC, "updated_at"=>2014-03-28 15:43:52 UTC, "memberships"=>[{"_id"=>"533598b8247580ecac000015", "role"=>"admin", "account_id"=>"533598b6247580ecac000001"}]}] flags=[] (0.6988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b8247580ecac000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b8247580ecac000014", "_id"=>{"$ne"=>"533598b8247580ecac000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.2061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac000016", "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"=>"533598b8247580ecac000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b8247580ecac000014", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b8247580ecac000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7402ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (4.5440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533598b8247580ecac000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533598b8247580ecac000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b8247580ecac000014", "_id"=>{"$ne"=>"533598b8247580ecac000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b8247580ecac000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac000018", "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"=>"533598b8247580ecac000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.7973ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b8247580ecac000014", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac000018"]}}, "$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"=>"533598b8247580ecac000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1811ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac000018"]}} 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=locomotive_pages selector={"site_id"=>"533598b8247580ecac000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b8247580ecac000014", "_id"=>{"$ne"=>"533598b8247580ecac000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (5.3079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533598b8247580ecac000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0249ms) 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.5989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533598b8247580ecac000019", "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"=>"533598b8247580ecac000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.3581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533598b8247580ecac000014", "template_dependencies.en"=>{"$in"=>["533598b8247580ecac000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533598b8247580ecac000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.8191ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533598b8247580ecac000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.5427ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac00001a", "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=>"533598b8247580ecac000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533598b8247580ecac000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533598b8247580ecac000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533598b8247580ecac00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533598b8247580ecac000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533598b8247580ecac00001c", "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC, "entries_custom_fields"=>[{"_id"=>"533598b8247580ecac00001c", "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.3982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533598b8247580ecac00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533598b8247580ecac00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533598b8247580ecac00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.3789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533598b8247580ecac00001b"]}}} (1.3802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533598b8247580ecac00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533598b8247580ecac00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533598b8247580ecac00001b", "content_type_id"=>"533598b8247580ecac00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533598b8247580ecac000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:43:52 UTC, "created_at"=>2014-03-28 15:43:52 UTC}] flags=[] (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533598b8247580ecac00001b", "original_id"=>"533598b8247580ecac00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7422ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533598b8247580ecac00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533598b8247580ecac000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533598b8247580ecac00001b", "original_id"=>"533598b8247580ecac00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3319ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:43: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 COMMAND database=admin command={:ismaster=>1} (1.6909ms) 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.8191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533598b6247580ecac000001"]}}, "$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_accounts selector={"$query"=>{"_id"=>{"$in"=>["533598b6247580ecac000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.9560ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (78.3ms) Completed 200 OK in 152.0ms (Views: 127.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:43:56 +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-03-28 16:43:56 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (45ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 16:43:57 +0100 Served asset /locomotive/background/body.png - 200 OK (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 (1.8802ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:43:57 +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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (23.4728ms) 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 (3.6480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (13.2318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533598b6247580ecac000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (8.6999ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (17.2691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533598b6247580ecac000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (17.1759ms) Completed 500 Internal Server Error in 43.6ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (4.7319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (5.0919ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.7719ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8149ms) 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.6270ms) 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.5910ms) 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.9811ms) 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.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533599d424758012a0000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"fb433eeb75555b49d96d0d96c12a203a2160fbf9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"T9pgLuTrTx1zAgJivEHy", "api_key"=>"306d9fcbb4d51f2add003073d774b060ea34a9e4", "updated_at"=>2014-03-28 15:48:36 UTC, "created_at"=>2014-03-28 15:48:36 UTC}] flags=[] (0.1798ms) 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.8073ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533599d424758012a0000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:48:36 UTC, "updated_at"=>2014-03-28 15:48:36 UTC, "memberships"=>[{"_id"=>"533599d424758012a0000003", "role"=>"admin", "account_id"=>"533599d424758012a0000001"}]}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d424758012a0000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d424758012a0000002", "_id"=>{"$ne"=>"533599d424758012a0000004"}, "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"=>"533599d424758012a0000004", "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"=>"533599d424758012a0000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:36 UTC, "created_at"=>2014-03-28 15:48:36 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d424758012a0000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4187ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d424758012a0000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d424758012a0000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599d424758012a0000004", "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"=>"533599d424758012a0000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533599d424758012a0000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d424758012a0000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d424758012a0000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d424758012a0000002", "_id"=>{"$ne"=>"533599d424758012a0000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d424758012a0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533599d424758012a0000006", "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"=>"533599d424758012a0000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:36 UTC, "created_at"=>2014-03-28 15:48:36 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d424758012a0000006"]}}, "$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"=>"533599d424758012a0000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d424758012a0000006"]}} 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"=>"533599d424758012a0000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533599d424758012a0000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533599d424758012a0000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533599d524758012a0000008", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC, "entries_custom_fields"=>[{"_id"=>"533599d524758012a0000008", "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.2551ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533599d424758012a0000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533599d524758012a0000009", "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", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}}} flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d424758012a0000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533599d424758012a0000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4952ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d424758012a0000007"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599d524758012a000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533599d424758012a0000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599d424758012a0000007", "content_type_id"=>"533599d424758012a0000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533599d424758012a0000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599d424758012a0000007", "original_id"=>"533599d524758012a000000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533599d424758012a0000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599d424758012a0000007", "original_id"=>"533599d524758012a000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d424758012a0000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533599d424758012a0000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d424758012a0000007"]}}} (0.3920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d424758012a0000007"]}}} (0.2830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d424758012a0000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599d524758012a000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533599d424758012a0000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599d424758012a0000007", "content_type_id"=>"533599d424758012a0000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533599d424758012a0000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599d424758012a0000007", "original_id"=>"533599d524758012a000000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533599d424758012a0000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599d424758012a0000007", "original_id"=>"533599d524758012a000000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (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.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4697ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002", "_id"=>{"$ne"=>"533599d524758012a000000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533599d424758012a0000004"}]}]}, "$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"=>"533599d524758012a000000e", "parent_ids"=>["533599d424758012a0000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d524758012a000000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a000000e"}, "$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"=>["533599d524758012a000000e"]}} 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"=>"533599d524758012a000000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533599d424758012a0000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1862ms) 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.6349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002", "_id"=>{"$ne"=>"533599d524758012a0000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533599d424758012a0000004"}]}]}, "$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"=>"533599d524758012a0000010", "parent_ids"=>["533599d424758012a0000004"], "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"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000010"]}}, "$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"=>"533599d524758012a0000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000010"]}} 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.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002", "_id"=>{"$ne"=>"533599d524758012a0000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533599d424758012a0000004"}]}]}, "$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"=>"533599d524758012a0000011", "parent_ids"=>["533599d424758012a0000004"], "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"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000011"]}}, "$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"=>"533599d524758012a0000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000011"]}} 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={"$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"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002", "_id"=>{"$ne"=>"533599d524758012a0000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d424758012a0000004", "site_id"=>"533599d424758012a0000002"}, "$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"=>"533599d424758012a0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533599d524758012a0000012", "parent_ids"=>["533599d424758012a0000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533599d424758012a0000002", "parent_id"=>"533599d424758012a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000012"]}}, "$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"=>"533599d524758012a0000012"}, "$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"=>["533599d524758012a0000012"]}} 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"=>"533599d524758012a0000012", "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"=>"533599d524758012a0000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533599d424758012a0000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533599d424758012a0000002"}, "$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"=>"533599d424758012a0000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:48:37 UTC}} flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "template_dependencies.en"=>{"$in"=>["533599d424758012a0000004"]}}, "$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"=>"533599d424758012a0000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533599d424758012a0000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533599d424758012a0000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1612ms) 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.5801ms) 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.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533599d524758012a0000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:48:36 UTC, "updated_at"=>2014-03-28 15:48:37 UTC, "memberships"=>[{"_id"=>"533599d524758012a0000015", "role"=>"admin", "account_id"=>"533599d424758012a0000001"}]}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000014", "_id"=>{"$ne"=>"533599d524758012a0000016"}, "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"=>"533599d524758012a0000016", "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"=>"533599d524758012a0000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000014", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000016"]}}, "$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"=>"533599d524758012a0000016"}, "$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"=>["533599d524758012a0000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"533599d524758012a0000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533599d524758012a0000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000014", "_id"=>{"$ne"=>"533599d524758012a0000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533599d524758012a0000018", "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"=>"533599d524758012a0000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000014", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000018"]}}, "$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"=>"533599d524758012a0000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000018"]}} 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"=>"533599d524758012a0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000014", "_id"=>{"$ne"=>"533599d524758012a0000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4728ms) 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"=>"533599d524758012a0000019", "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"=>"533599d524758012a0000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2644ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000014", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000019"]}}, "$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"=>"533599d524758012a0000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a000001a", "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=>"533599d524758012a0000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533599d524758012a0000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533599d524758012a000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533599d524758012a0000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533599d524758012a000001c", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC, "entries_custom_fields"=>[{"_id"=>"533599d524758012a000001c", "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"=>"533599d524758012a000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a000001b"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"533599d524758012a000001b", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a000001b"]}}} (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599d524758012a000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533599d524758012a000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599d524758012a000001b", "content_type_id"=>"533599d524758012a000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533599d524758012a0000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 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::ContentEntry533599d524758012a000001b", "original_id"=>"533599d524758012a000001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533599d524758012a0000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599d524758012a000001b", "original_id"=>"533599d524758012a000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1400ms) 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.0820ms) 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.1061ms) Started GET "/" for 127.0.0.1 at 2014-03-28 16:48:37 +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"=>"533599d424758012a0000002", "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 12.3ms (Views: 7.2ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-28 16:48:37 +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.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "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.6161ms) 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"=>"533599d424758012a0000002", "locale"=>"en"}} (0.5722ms) Rendered text template (0.0ms) Completed 200 OK in 17.4ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2014-03-28 16:48:37 +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.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "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.5548ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-28 16:48:37 +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.5102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "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.3ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-28 16:48:37 +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.5341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d424758012a0000002", "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.5510ms) 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"=>"533599d424758012a0000002", "locale"=>"en"}} (0.4170ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (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.6139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.0929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.1470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.8280ms) 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.5622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.0481ms) 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.3738ms) 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.4270ms) 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.3459ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533599d524758012a000001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e087e6b563cec6b33dfd5e263e4155d03747d630", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"jqFsaC1sPQGCtmhqLovn", "api_key"=>"1368cbb4b45c8ffa37e23a976852b95bc20e7353", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1130ms) 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.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533599d524758012a0000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:48:36 UTC, "updated_at"=>2014-03-28 15:48:37 UTC, "memberships"=>[{"_id"=>"533599d524758012a0000021", "role"=>"admin", "account_id"=>"533599d524758012a000001f"}]}] flags=[] (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4773ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000020", "_id"=>{"$ne"=>"533599d524758012a0000022"}, "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"=>"533599d524758012a0000022", "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"=>"533599d524758012a0000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000022"]}}, "$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"=>"533599d524758012a0000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000022"]}} 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"=>"533599d524758012a0000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3064ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a0000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533599d524758012a0000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"533599d524758012a0000020", "_id"=>{"$ne"=>"533599d524758012a0000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533599d524758012a0000024", "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"=>"533599d524758012a0000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000024"]}}, "$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"=>"533599d524758012a0000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000024"]}} 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_content_types selector={"site_id"=>"533599d524758012a0000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533599d524758012a0000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533599d524758012a0000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533599d524758012a0000026", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC, "entries_custom_fields"=>[{"_id"=>"533599d524758012a0000026", "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.2429ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533599d524758012a0000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533599d524758012a0000027", "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", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}}} flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a0000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533599d524758012a0000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5460ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}}} (0.5381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599d524758012a0000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533599d524758012a0000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "content_type_id"=>"533599d524758012a0000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533599d524758012a0000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "original_id"=>"533599d524758012a0000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a0000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533599d524758012a0000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "original_id"=>"533599d524758012a0000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a000002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}} 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=locomotive_content_entries selector={"content_type_id"=>"533599d524758012a0000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}}} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}}} (0.3579ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599d524758012a000002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533599d524758012a0000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "content_type_id"=>"533599d524758012a0000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533599d524758012a0000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 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::ContentEntry533599d524758012a0000025", "original_id"=>"533599d524758012a000002a", "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"=>"533599d524758012a000002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533599d524758012a0000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "original_id"=>"533599d524758012a000002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1762ms) 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"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020", "_id"=>{"$ne"=>"533599d524758012a000002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533599d524758012a0000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599d524758012a000002c", "parent_ids"=>["533599d524758012a0000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a000002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a000002c"}, "$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"=>["533599d524758012a000002c"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a000002c", "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"=>"533599d524758012a000002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533599d524758012a0000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a000002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1681ms) 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.6642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020", "_id"=>{"$ne"=>"533599d524758012a000002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020"}, "$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"=>"533599d524758012a0000022"}]}]}, "$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"=>"533599d524758012a000002e", "parent_ids"=>["533599d524758012a0000022"], "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"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a000002e"]}}, "$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"=>"533599d524758012a000002e"}, "$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"=>["533599d524758012a000002e"]}} 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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020", "_id"=>{"$ne"=>"533599d524758012a000002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020"}, "$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"=>"533599d524758012a0000022"}]}]}, "$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"=>"533599d524758012a000002f", "parent_ids"=>["533599d524758012a0000022"], "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"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a000002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a000002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a000002f"]}} 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.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020", "_id"=>{"$ne"=>"533599d524758012a0000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599d524758012a0000022", "site_id"=>"533599d524758012a0000020"}, "$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"=>"533599d524758012a0000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599d524758012a0000030", "parent_ids"=>["533599d524758012a0000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533599d524758012a0000020", "parent_id"=>"533599d524758012a0000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000030"]}}, "$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"=>"533599d524758012a0000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000030"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000030", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a0000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533599d524758012a0000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"533599d524758012a0000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533599d524758012a0000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:48:37 UTC}} flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000022"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5019ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533599d524758012a0000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533599d524758012a0000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1559ms) 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.6199ms) 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.3283ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533599d524758012a0000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:48:36 UTC, "updated_at"=>2014-03-28 15:48:37 UTC, "memberships"=>[{"_id"=>"533599d524758012a0000033", "role"=>"admin", "account_id"=>"533599d524758012a000001f"}]}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599d524758012a0000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000032", "_id"=>{"$ne"=>"533599d524758012a0000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533599d524758012a0000034", "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"=>"533599d524758012a0000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000032", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000034"]}}, "$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"=>"533599d524758012a0000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000034"]}} 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"=>"533599d524758012a0000034", "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"=>"533599d524758012a0000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533599d524758012a0000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000034", "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"=>"533599d524758012a0000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000032", "_id"=>{"$ne"=>"533599d524758012a0000036"}, "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"=>"533599d524758012a0000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533599d524758012a0000036", "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"=>"533599d524758012a0000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000032", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000036"]}}, "$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"=>"533599d524758012a0000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599d524758012a0000036"]}} 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={"site_id"=>"533599d524758012a0000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"533599d524758012a0000032", "_id"=>{"$ne"=>"533599d524758012a0000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599d524758012a0000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5112ms) 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.2549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599d524758012a0000037", "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"=>"533599d524758012a0000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000032", "template_dependencies.en"=>{"$in"=>["533599d524758012a0000037"]}}, "$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"=>"533599d524758012a0000037"}, "$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"=>["533599d524758012a0000037"]}} 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"=>"533599d524758012a0000037", "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"=>"533599d524758012a0000038", "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=>"533599d524758012a0000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599d524758012a0000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533599d524758012a0000032", "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"=>"533599d524758012a0000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533599d524758012a0000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533599d524758012a000003a", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC, "entries_custom_fields"=>[{"_id"=>"533599d524758012a000003a", "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.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a000003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000039"]}} 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"=>"533599d524758012a0000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000039"]}}} (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599d524758012a000003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533599d524758012a0000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599d524758012a0000039", "content_type_id"=>"533599d524758012a0000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533599d524758012a0000032", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:37 UTC, "created_at"=>2014-03-28 15:48:37 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599d524758012a0000039", "original_id"=>"533599d524758012a000003b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599d524758012a000003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533599d524758012a0000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599d524758012a0000039", "original_id"=>"533599d524758012a000003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1481ms) 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.0823ms) 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.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a0000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}} 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_content_entries selector={"_id"=>{"$ne"=>"533599d524758012a000002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}} 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_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533599d524758012a0000025"} update={"$set"=>{"updated_at"=>2014-03-28 15:48:37 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533599d524758012a0000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1519ms) Started GET "/" for 127.0.0.1 at 2014-03-28 16:48:37 +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.5543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "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 5.2ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 16:48:37 +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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "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.6318ms) 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"=>"533599d524758012a0000020", "locale"=>"en"}} (0.4799ms) 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=locomotive_content_types selector={"_id"=>"533599d524758012a0000025"} 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"=>"533599d524758012a0000025", "updated_at"=>{"$lt"=>2014-03-28 15:48:37 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry533599d524758012a0000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533599d524758012a0000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4187ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533599d524758012a0000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4497ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"533599d524758012a0000028"} update={"$set"=>{"updated_at"=>2014-03-28 15:48:37 UTC}} flags=[] (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "original_id"=>"533599d524758012a0000028", "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"=>"533599d524758012a0000029"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533599d524758012a0000020", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533599d524758012a0000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533599d524758012a0000025"}, "$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_content_entries selector={"_id"=>"533599d524758012a000002a"} update={"$set"=>{"updated_at"=>2014-03-28 15:48:37 UTC}} flags=[] (0.1268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599d524758012a0000025", "original_id"=>"533599d524758012a000002a", "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"=>"533599d524758012a000002b"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533599d524758012a0000020", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1421ms) Started GET "/" for 127.0.0.1 at 2014-03-28 16:48:37 +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.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599d524758012a0000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 4.9ms (Views: 0.4ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-28 16:48:37 +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"=>"533599d524758012a0000020", "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.5219ms) 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"=>"533599d524758012a0000020", "locale"=>"en"}} (0.4861ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.6301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5198ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4961ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4480ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7360ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9842ms) 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.7279ms) 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.4792ms) 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.7911ms) 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.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533599de2475807f32000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"383df7a7cad8d1f276867ee224e6274ee0e55080", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"LgusWayJ6hx7UoHZVJi4", "api_key"=>"7de3d96b28bf9a76da93d22083443baa03eba617", "updated_at"=>2014-03-28 15:48:46 UTC, "created_at"=>2014-03-28 15:48:46 UTC}] flags=[] (0.1538ms) 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.8440ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533599de2475807f32000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:48:46 UTC, "updated_at"=>2014-03-28 15:48:46 UTC, "memberships"=>[{"_id"=>"533599de2475807f32000003", "role"=>"admin", "account_id"=>"533599de2475807f32000001"}]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599de2475807f32000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599de2475807f32000002", "_id"=>{"$ne"=>"533599df2475807f32000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"533599df2475807f32000004", "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"=>"533599de2475807f32000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599df2475807f32000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4833ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f32000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533599de2475807f32000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599de2475807f32000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599de2475807f32000002", "_id"=>{"$ne"=>"533599df2475807f32000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599de2475807f32000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599df2475807f32000006", "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"=>"533599de2475807f32000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000006"]}}, "$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"=>"533599df2475807f32000006"}, "$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"=>["533599df2475807f32000006"]}} 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"=>"533599de2475807f32000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533599df2475807f32000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533599de2475807f32000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533599df2475807f32000008", "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC, "entries_custom_fields"=>[{"_id"=>"533599df2475807f32000008", "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.2670ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533599df2475807f32000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533599df2475807f32000009", "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", "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}}} flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599df2475807f3200000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f32000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533599df2475807f32000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f32000007"]}}} (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599df2475807f3200000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533599df2475807f32000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599df2475807f32000007", "content_type_id"=>"533599df2475807f32000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533599de2475807f32000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599df2475807f32000007", "original_id"=>"533599df2475807f3200000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f3200000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533599de2475807f32000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599df2475807f32000007", "original_id"=>"533599df2475807f3200000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599df2475807f3200000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f32000007"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"533599df2475807f32000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f32000007"]}}} (0.4847ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f32000007"]}}} (0.3071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f32000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5238ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599df2475807f3200000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533599df2475807f32000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599df2475807f32000007", "content_type_id"=>"533599df2475807f32000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533599de2475807f32000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 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::ContentEntry533599df2475807f32000007", "original_id"=>"533599df2475807f3200000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3808ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f3200000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533599de2475807f32000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599df2475807f32000007", "original_id"=>"533599df2475807f3200000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1383ms) 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.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "$or"=>[{"slug.en"=>"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"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002", "_id"=>{"$ne"=>"533599df2475807f3200000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533599df2475807f32000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599df2475807f3200000e", "parent_ids"=>["533599df2475807f32000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f3200000e"]}}, "$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"=>"533599df2475807f3200000e"}, "$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"=>["533599df2475807f3200000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1106ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f3200000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f3200000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533599de2475807f32000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f3200000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1688ms) 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.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002", "_id"=>{"$ne"=>"533599df2475807f32000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533599df2475807f32000004"}]}]}, "$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"=>"533599df2475807f32000010", "parent_ids"=>["533599df2475807f32000004"], "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"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599df2475807f32000010"]}} 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={"$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"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002", "_id"=>{"$ne"=>"533599df2475807f32000011"}, "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"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002"}, "$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"=>"533599df2475807f32000004"}]}]}, "$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"=>"533599df2475807f32000011", "parent_ids"=>["533599df2475807f32000004"], "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"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000011"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599df2475807f32000011"]}} 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.6392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002", "_id"=>{"$ne"=>"533599df2475807f32000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000004", "site_id"=>"533599de2475807f32000002"}, "$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"=>"533599df2475807f32000004"}]}]}, "$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"=>"533599df2475807f32000012", "parent_ids"=>["533599df2475807f32000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533599de2475807f32000002", "parent_id"=>"533599df2475807f32000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599df2475807f32000012"]}} 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"=>"533599df2475807f32000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f32000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533599de2475807f32000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533599de2475807f32000002"}, "$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"=>"533599df2475807f32000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:48:47 UTC}} flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599de2475807f32000002", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000004", "locale"=>"en"}, "$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=active_search_mongoid_indices selector={"_id"=>"533599df2475807f32000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533599de2475807f32000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1848ms) 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.5209ms) 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.3839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533599df2475807f32000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:48:46 UTC, "updated_at"=>2014-03-28 15:48:47 UTC, "memberships"=>[{"_id"=>"533599df2475807f32000015", "role"=>"admin", "account_id"=>"533599de2475807f32000001"}]}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599df2475807f32000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599df2475807f32000014", "_id"=>{"$ne"=>"533599df2475807f32000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533599df2475807f32000016", "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"=>"533599df2475807f32000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599df2475807f32000014", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000016"]}}, "$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"=>"533599df2475807f32000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533599df2475807f32000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000016", "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"=>"533599df2475807f32000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533599df2475807f32000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599df2475807f32000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599df2475807f32000014", "_id"=>{"$ne"=>"533599df2475807f32000018"}, "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"=>"533599df2475807f32000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599df2475807f32000018", "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"=>"533599df2475807f32000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599df2475807f32000014", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000018"}, "$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"=>["533599df2475807f32000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533599df2475807f32000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533599df2475807f32000014", "_id"=>{"$ne"=>"533599df2475807f32000019"}, "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"=>"533599df2475807f32000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533599df2475807f32000019", "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"=>"533599df2475807f32000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533599df2475807f32000014", "template_dependencies.en"=>{"$in"=>["533599df2475807f32000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3207ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533599df2475807f32000019"}, "$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"=>["533599df2475807f32000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f3200001a", "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=>"533599df2475807f32000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533599df2475807f32000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533599df2475807f32000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533599df2475807f3200001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533599df2475807f32000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533599df2475807f3200001c", "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC, "entries_custom_fields"=>[{"_id"=>"533599df2475807f3200001c", "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.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533599df2475807f3200001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f3200001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533599df2475807f3200001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533599df2475807f3200001b"]}}} (0.4342ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533599df2475807f3200001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533599df2475807f3200001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533599df2475807f3200001b", "content_type_id"=>"533599df2475807f3200001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533599df2475807f32000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:48:47 UTC, "created_at"=>2014-03-28 15:48:47 UTC}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533599df2475807f3200001b", "original_id"=>"533599df2475807f3200001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533599df2475807f3200001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533599df2475807f32000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533599df2475807f3200001b", "original_id"=>"533599df2475807f3200001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2091ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:48: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.9451ms) 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.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533599de2475807f32000001"]}}, "$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"=>{"$in"=>["533599de2475807f32000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5319ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.9ms) Completed 200 OK in 51.3ms (Views: 40.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:48:48 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (10ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 16:48:48 +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-03-28 16:48:48 +0100 Served asset /locomotive/background/body.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.3342ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:48: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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (15.6782ms) 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.9871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533599de2475807f32000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533599de2475807f32000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9782ms) Completed 500 Internal Server Error in 7.6ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.9112ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3900ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9608ms) 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.6709ms) 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.6599ms) 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.7498ms) 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.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359a0524758050d7000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0000df384e43d38959fea9dcb906b78a58171f71", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pxVrWayaGrTpJAyArtfJ", "api_key"=>"b2e5518f08f8ae533b3ffa59e6de6a242606da35", "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 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.8402ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359a0524758050d7000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:49:25 UTC, "updated_at"=>2014-03-28 15:49:25 UTC, "memberships"=>[{"_id"=>"53359a0524758050d7000003", "role"=>"admin", "account_id"=>"53359a0524758050d7000001"}]}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000002", "_id"=>{"$ne"=>"53359a0524758050d7000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53359a0524758050d7000004", "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"=>"53359a0524758050d7000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.2937ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000004"}, "$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"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359a0524758050d7000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d7000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"53359a0524758050d7000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359a0524758050d7000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d7000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000002", "_id"=>{"$ne"=>"53359a0524758050d7000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000002"}, "$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"=>"53359a0524758050d7000006", "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"=>"53359a0524758050d7000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000006"}, "$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"=>["53359a0524758050d7000006"]}} 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"=>"53359a0524758050d7000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359a0524758050d7000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359a0524758050d7000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359a0524758050d7000008", "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC, "entries_custom_fields"=>[{"_id"=>"53359a0524758050d7000008", "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.3068ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359a0524758050d7000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359a0524758050d7000009", "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", "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}}} flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359a0524758050d700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359a0524758050d7000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359a0524758050d7000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4902ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359a0524758050d7000007"]}}} (0.3963ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359a0524758050d700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359a0524758050d7000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359a0524758050d7000007", "content_type_id"=>"53359a0524758050d7000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359a0524758050d7000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359a0524758050d7000007", "original_id"=>"53359a0524758050d700000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0524758050d700000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359a0524758050d7000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359a0524758050d7000007", "original_id"=>"53359a0524758050d700000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359a0524758050d700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359a0524758050d7000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359a0524758050d7000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3707ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359a0524758050d7000007"]}}} (0.5081ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359a0524758050d7000007"]}}} (0.3092ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359a0524758050d7000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359a0524758050d700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359a0524758050d7000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359a0524758050d7000007", "content_type_id"=>"53359a0524758050d7000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359a0524758050d7000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 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::ContentEntry53359a0524758050d7000007", "original_id"=>"53359a0524758050d700000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0524758050d700000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359a0524758050d7000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359a0524758050d7000007", "original_id"=>"53359a0524758050d700000c", "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.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002", "_id"=>{"$ne"=>"53359a0524758050d700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359a0524758050d7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359a0524758050d700000e", "parent_ids"=>["53359a0524758050d7000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d700000e"]}}, "$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"=>"53359a0524758050d700000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359a0524758050d700000e"]}} 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"=>"53359a0524758050d700000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0524758050d700000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359a0524758050d7000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d700000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] 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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002", "_id"=>{"$ne"=>"53359a0524758050d7000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5987ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002"}, "$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"=>"53359a0524758050d7000004"}]}]}, "$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"=>"53359a0524758050d7000010", "parent_ids"=>["53359a0524758050d7000004"], "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"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000010"]}}, "$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"=>"53359a0524758050d7000010"}, "$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"=>["53359a0524758050d7000010"]}} 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.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4587ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002", "_id"=>{"$ne"=>"53359a0524758050d7000011"}, "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"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359a0524758050d7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"53359a0524758050d7000011", "parent_ids"=>["53359a0524758050d7000004"], "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"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000011"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000011"}, "$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"=>["53359a0524758050d7000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) 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.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002", "_id"=>{"$ne"=>"53359a0524758050d7000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000004", "site_id"=>"53359a0524758050d7000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359a0524758050d7000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359a0524758050d7000012", "parent_ids"=>["53359a0524758050d7000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359a0524758050d7000002", "parent_id"=>"53359a0524758050d7000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000012"]}}, "$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"=>"53359a0524758050d7000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359a0524758050d7000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d7000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3397ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0524758050d7000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359a0524758050d7000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d7000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "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"=>"53359a0524758050d7000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359a0524758050d7000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:49:25 UTC}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000002", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000004"]}}, "$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"=>"53359a0524758050d7000004", "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"=>"53359a0524758050d7000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359a0524758050d7000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3002ms) 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.6831ms) 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.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359a0524758050d7000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:49:25 UTC, "updated_at"=>2014-03-28 15:49:25 UTC, "memberships"=>[{"_id"=>"53359a0524758050d7000015", "role"=>"admin", "account_id"=>"53359a0524758050d7000001"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"53359a0524758050d7000014", "_id"=>{"$ne"=>"53359a0524758050d7000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53359a0524758050d7000016", "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"=>"53359a0524758050d7000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:25 UTC, "created_at"=>2014-03-28 15:49:25 UTC}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000014", "template_dependencies.en"=>{"$in"=>["53359a0524758050d7000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0524758050d7000016"}, "$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"=>["53359a0524758050d7000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d7000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0624758050d7000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359a0524758050d7000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359a0524758050d7000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359a0524758050d7000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000014", "_id"=>{"$ne"=>"53359a0624758050d7000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53359a0624758050d7000018", "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"=>"53359a0524758050d7000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:26 UTC, "created_at"=>2014-03-28 15:49:26 UTC}] flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000014", "template_dependencies.en"=>{"$in"=>["53359a0624758050d7000018"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"53359a0624758050d7000018"}, "$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"=>["53359a0624758050d7000018"]}} 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"=>"53359a0524758050d7000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000014", "_id"=>{"$ne"=>"53359a0624758050d7000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359a0524758050d7000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359a0624758050d7000019", "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"=>"53359a0524758050d7000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:49:26 UTC, "created_at"=>2014-03-28 15:49:26 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359a0524758050d7000014", "template_dependencies.en"=>{"$in"=>["53359a0624758050d7000019"]}}, "$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"=>"53359a0624758050d7000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359a0624758050d7000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359a0624758050d7000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0624758050d700001a", "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=>"53359a0524758050d7000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359a0624758050d7000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359a0524758050d7000014", "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"=>"53359a0624758050d700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359a0524758050d7000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359a0624758050d700001c", "updated_at"=>2014-03-28 15:49:26 UTC, "created_at"=>2014-03-28 15:49:26 UTC, "entries_custom_fields"=>[{"_id"=>"53359a0624758050d700001c", "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"=>"53359a0624758050d700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359a0624758050d700001b"]}} 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"=>"53359a0624758050d700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359a0624758050d700001b"]}}} (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359a0624758050d700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359a0624758050d700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359a0624758050d700001b", "content_type_id"=>"53359a0624758050d700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359a0524758050d7000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:49:26 UTC, "created_at"=>2014-03-28 15:49:26 UTC}] flags=[] (0.1597ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359a0624758050d700001b", "original_id"=>"53359a0624758050d700001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359a0624758050d700001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359a0524758050d7000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359a0624758050d700001b", "original_id"=>"53359a0624758050d700001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1581ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:49: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.9038ms) 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.6537ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359a0524758050d7000001"]}}, "$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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359a0524758050d7000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4179ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.3ms) Completed 200 OK in 37.8ms (Views: 29.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:49:27 +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-03-28 16:49:27 +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-03-28 16:49:27 +0100 Served asset /locomotive/background/body.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 (3.9489ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:49: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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (6.5742ms) 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.8900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359a0524758050d7000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.9861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359a0524758050d7000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) Completed 500 Internal Server Error in 6.6ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.5118ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5782ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9232ms) 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.5510ms) 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.5877ms) 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.1361ms) 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.4268ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359ae6247580ea09000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2960afe6140d6a88f8d5d23178e2dcd91177add3", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"aYTxJzPZq9FUsz4J8Ass", "api_key"=>"1289fa02e720819ecad51858f72bb643f9d70f7a", "updated_at"=>2014-03-28 15:53:10 UTC, "created_at"=>2014-03-28 15:53:10 UTC}] flags=[] (0.1450ms) 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.7272ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359ae6247580ea09000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:53:10 UTC, "updated_at"=>2014-03-28 15:53:10 UTC, "memberships"=>[{"_id"=>"53359ae6247580ea09000003", "role"=>"admin", "account_id"=>"53359ae6247580ea09000001"}]}] flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae6247580ea09000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359ae6247580ea09000002", "_id"=>{"$ne"=>"53359ae6247580ea09000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359ae6247580ea09000004", "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"=>"53359ae6247580ea09000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:10 UTC, "created_at"=>2014-03-28 15:53:10 UTC}] flags=[] (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359ae6247580ea09000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4296ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae6247580ea09000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359ae6247580ea09000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359ae6247580ea09000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2398ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359ae6247580ea09000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359ae6247580ea09000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359ae6247580ea09000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae6247580ea09000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359ae6247580ea09000002", "_id"=>{"$ne"=>"53359ae6247580ea09000006"}, "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"=>nil, "site_id"=>"53359ae6247580ea09000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359ae6247580ea09000006", "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"=>"53359ae6247580ea09000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:10 UTC, "created_at"=>2014-03-28 15:53:10 UTC}] flags=[] (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae6247580ea09000006"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359ae6247580ea09000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359ae6247580ea09000006"]}} 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=locomotive_content_types selector={"site_id"=>"53359ae6247580ea09000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359ae6247580ea09000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359ae6247580ea09000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359ae7247580ea09000008", "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC, "entries_custom_fields"=>[{"_id"=>"53359ae7247580ea09000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359ae6247580ea09000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359ae7247580ea09000009", "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", "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}}} flags=[] (0.1936ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359ae7247580ea0900000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359ae6247580ea09000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359ae6247580ea09000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359ae6247580ea09000007"]}}} (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359ae7247580ea0900000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359ae6247580ea09000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359ae6247580ea09000007", "content_type_id"=>"53359ae6247580ea09000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359ae6247580ea09000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359ae6247580ea09000007", "original_id"=>"53359ae7247580ea0900000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359ae7247580ea0900000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359ae6247580ea09000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359ae6247580ea09000007", "original_id"=>"53359ae7247580ea0900000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359ae7247580ea0900000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359ae6247580ea09000007"]}} 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_entries selector={"content_type_id"=>"53359ae6247580ea09000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359ae6247580ea09000007"]}}} (0.4141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359ae6247580ea09000007"]}}} (0.2890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359ae6247580ea09000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359ae7247580ea0900000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359ae6247580ea09000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359ae6247580ea09000007", "content_type_id"=>"53359ae6247580ea09000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359ae6247580ea09000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 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::ContentEntry53359ae6247580ea09000007", "original_id"=>"53359ae7247580ea0900000c", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359ae7247580ea0900000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359ae6247580ea09000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359ae6247580ea09000007", "original_id"=>"53359ae7247580ea0900000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1740ms) 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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002", "_id"=>{"$ne"=>"53359ae7247580ea0900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359ae6247580ea09000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359ae7247580ea0900000e", "parent_ids"=>["53359ae6247580ea09000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea0900000e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359ae7247580ea0900000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359ae7247580ea0900000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea0900000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3636ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359ae7247580ea0900000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359ae6247580ea09000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea0900000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1912ms) 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.8061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002", "_id"=>{"$ne"=>"53359ae7247580ea09000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359ae6247580ea09000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359ae7247580ea09000010", "parent_ids"=>["53359ae6247580ea09000004"], "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"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea09000010"]}}, "$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"=>"53359ae7247580ea09000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359ae7247580ea09000010"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002", "_id"=>{"$ne"=>"53359ae7247580ea09000011"}, "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"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359ae6247580ea09000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359ae7247580ea09000011", "parent_ids"=>["53359ae6247580ea09000004"], "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"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea09000011"]}}, "$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"=>"53359ae7247580ea09000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359ae7247580ea09000011"]}} 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.7110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002", "_id"=>{"$ne"=>"53359ae7247580ea09000012"}, "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"=>"53359ae6247580ea09000004", "site_id"=>"53359ae6247580ea09000002"}, "$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"=>"53359ae6247580ea09000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6406ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359ae7247580ea09000012", "parent_ids"=>["53359ae6247580ea09000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359ae6247580ea09000002", "parent_id"=>"53359ae6247580ea09000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.3660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea09000012"]}}, "$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"=>"53359ae7247580ea09000012"}, "$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"=>["53359ae7247580ea09000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea09000012", "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"=>"53359ae7247580ea09000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359ae6247580ea09000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea09000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"53359ae6247580ea09000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359ae6247580ea09000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:53:11 UTC}} flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae6247580ea09000002", "template_dependencies.en"=>{"$in"=>["53359ae6247580ea09000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359ae6247580ea09000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359ae6247580ea09000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359ae6247580ea09000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1738ms) 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.5479ms) 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.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359ae7247580ea09000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:53:10 UTC, "updated_at"=>2014-03-28 15:53:11 UTC, "memberships"=>[{"_id"=>"53359ae7247580ea09000015", "role"=>"admin", "account_id"=>"53359ae6247580ea09000001"}]}] flags=[] (0.1616ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae7247580ea09000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"53359ae7247580ea09000014", "_id"=>{"$ne"=>"53359ae7247580ea09000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359ae7247580ea09000016", "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"=>"53359ae7247580ea09000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae7247580ea09000014", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea09000016"]}}, "$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"=>"53359ae7247580ea09000016"}, "$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"=>["53359ae7247580ea09000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea09000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359ae7247580ea09000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359ae7247580ea09000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea09000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359ae7247580ea09000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359ae7247580ea09000014", "_id"=>{"$ne"=>"53359ae7247580ea09000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359ae7247580ea09000014"}, "$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"=>"53359ae7247580ea09000018", "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"=>"53359ae7247580ea09000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae7247580ea09000014", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea09000018"]}}, "$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"=>"53359ae7247580ea09000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359ae7247580ea09000018"]}} 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=locomotive_pages selector={"site_id"=>"53359ae7247580ea09000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359ae7247580ea09000014", "_id"=>{"$ne"=>"53359ae7247580ea09000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359ae7247580ea09000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359ae7247580ea09000019", "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"=>"53359ae7247580ea09000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359ae7247580ea09000014", "template_dependencies.en"=>{"$in"=>["53359ae7247580ea09000019"]}}, "$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"=>"53359ae7247580ea09000019"}, "$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"=>["53359ae7247580ea09000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea09000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359ae7247580ea0900001a", "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=>"53359ae7247580ea09000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359ae7247580ea09000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359ae7247580ea09000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359ae7247580ea0900001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359ae7247580ea09000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359ae7247580ea0900001c", "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC, "entries_custom_fields"=>[{"_id"=>"53359ae7247580ea0900001c", "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"=>"53359ae7247580ea0900001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359ae7247580ea0900001b"]}} 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={"content_type_id"=>"53359ae7247580ea0900001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4628ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359ae7247580ea0900001b"]}}} (0.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359ae7247580ea0900001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359ae7247580ea0900001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359ae7247580ea0900001b", "content_type_id"=>"53359ae7247580ea0900001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359ae7247580ea09000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:53:11 UTC, "created_at"=>2014-03-28 15:53:11 UTC}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359ae7247580ea0900001b", "original_id"=>"53359ae7247580ea0900001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359ae7247580ea0900001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359ae7247580ea09000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359ae7247580ea0900001b", "original_id"=>"53359ae7247580ea0900001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1969ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:53:12 +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.7360ms) 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"=>["53359ae6247580ea09000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4957ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359ae6247580ea09000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3462ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.3ms) Completed 200 OK in 36.8ms (Views: 29.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:53:12 +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-03-28 16:53:12 +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-03-28 16:53:12 +0100 Served asset /locomotive/background/body.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 (3.0708ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:53:12 +0100 Processing by Locomotive::SessionsController#create as HTML MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (4.7500ms) 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 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.6042ms) 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.6778ms) [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1249ms) 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.4709ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.2641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.8700ms) Redirected to http://test.example.com:7171/locomotive/installation Filter chain halted as :require_site rendered or redirected MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1961ms) Completed 302 Found in 7.0ms MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0021ms) Started GET "/locomotive/installation" for 127.0.0.1 at 2014-03-28 16:53:12 +0100 Processing by Locomotive::InstallationController#show as HTML Parameters: {"step"=>1} MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4039ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{}} (0.3302ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/installation/step_1.html.haml within /locomotive/layouts/not_logged_in (16.7ms) Completed 200 OK in 24.4ms (Views: 22.0ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9410ms) 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.5779ms) 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.4733ms) 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.7260ms) 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.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359b06247580db98000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c0f5e10aba779cbdd0120bc1b2492e72c7853a5e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ZPzuW6nPSCt6xnMecsQQ", "api_key"=>"c68309244e78b6eeb9dd15e48cff3b9003d36393", "updated_at"=>2014-03-28 15:53:42 UTC, "created_at"=>2014-03-28 15:53:42 UTC}] flags=[] (0.1652ms) 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.8759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b06247580db98000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:53:42 UTC, "updated_at"=>2014-03-28 15:53:42 UTC, "memberships"=>[{"_id"=>"53359b06247580db98000003", "role"=>"admin", "account_id"=>"53359b06247580db98000001"}]}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b06247580db98000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b06247580db98000002", "_id"=>{"$ne"=>"53359b07247580db98000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6096ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db98000004", "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"=>"53359b06247580db98000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004"}, "$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"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000004"]}}, "$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"=>["53359b07247580db98000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b07247580db98000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b06247580db98000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b06247580db98000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b06247580db98000002", "_id"=>{"$ne"=>"53359b07247580db98000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b06247580db98000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db98000006", "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"=>"53359b06247580db98000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000006"]}}, "$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"=>{"parent_id"=>"53359b07247580db98000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4683ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b06247580db98000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b07247580db98000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b06247580db98000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b07247580db98000008", "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC, "entries_custom_fields"=>[{"_id"=>"53359b07247580db98000008", "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.3052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359b07247580db98000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359b07247580db98000009", "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", "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}}} flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b07247580db9800000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db98000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359b07247580db98000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db98000007"]}}} (0.4218ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b07247580db9800000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b07247580db98000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b07247580db98000007", "content_type_id"=>"53359b07247580db98000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359b06247580db98000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 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::ContentEntry53359b07247580db98000007", "original_id"=>"53359b07247580db9800000a", "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"=>"53359b07247580db9800000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359b06247580db98000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b07247580db98000007", "original_id"=>"53359b07247580db9800000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b07247580db9800000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db98000007"]}} 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"=>"53359b07247580db98000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db98000007"]}}} (0.5269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db98000007"]}}} (0.2789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db98000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b07247580db9800000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b07247580db98000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b07247580db98000007", "content_type_id"=>"53359b07247580db98000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359b06247580db98000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b07247580db98000007", "original_id"=>"53359b07247580db9800000c", "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"=>"53359b07247580db9800000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359b06247580db98000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b07247580db98000007", "original_id"=>"53359b07247580db9800000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1721ms) 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.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002", "_id"=>{"$ne"=>"53359b07247580db9800000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b07247580db98000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db9800000e", "parent_ids"=>["53359b07247580db98000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.3922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db9800000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"53359b07247580db9800000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db9800000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db9800000e", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b07247580db9800000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359b06247580db98000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db9800000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This 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.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002", "_id"=>{"$ne"=>"53359b07247580db98000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b07247580db98000004"}]}]}, "$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"=>"53359b07247580db98000010", "parent_ids"=>["53359b07247580db98000004"], "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"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000010"]}}, "$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"=>"53359b07247580db98000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1957ms) 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.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002", "_id"=>{"$ne"=>"53359b07247580db98000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b07247580db98000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db98000011", "parent_ids"=>["53359b07247580db98000004"], "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"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.5913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002", "_id"=>{"$ne"=>"53359b07247580db98000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000004", "site_id"=>"53359b06247580db98000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b07247580db98000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"53359b07247580db98000012", "parent_ids"=>["53359b07247580db98000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359b06247580db98000002", "parent_id"=>"53359b07247580db98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000012"]}} 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"=>"53359b07247580db98000012", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b07247580db98000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359b06247580db98000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"53359b06247580db98000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359b07247580db98000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:53:43 UTC}} flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8218ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359b07247580db98000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359b06247580db98000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3090ms) 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.6857ms) 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.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b07247580db98000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:53:42 UTC, "updated_at"=>2014-03-28 15:53:43 UTC, "memberships"=>[{"_id"=>"53359b07247580db98000015", "role"=>"admin", "account_id"=>"53359b06247580db98000001"}]}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b07247580db98000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b07247580db98000014", "_id"=>{"$ne"=>"53359b07247580db98000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6192ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db98000016", "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"=>"53359b07247580db98000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.3607ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b07247580db98000014", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000016"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4921ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000016"]}} 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"=>"53359b07247580db98000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b07247580db98000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b07247580db98000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b07247580db98000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b07247580db98000014", "_id"=>{"$ne"=>"53359b07247580db98000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b07247580db98000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db98000018", "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"=>"53359b07247580db98000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b07247580db98000014", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000018"]}} 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={"site_id"=>"53359b07247580db98000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b07247580db98000014", "_id"=>{"$ne"=>"53359b07247580db98000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b07247580db98000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7198ms) 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.4177ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b07247580db98000019", "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"=>"53359b07247580db98000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.3211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b07247580db98000014", "template_dependencies.en"=>{"$in"=>["53359b07247580db98000019"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359b07247580db98000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b07247580db98000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b07247580db9800001a", "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=>"53359b07247580db98000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b07247580db98000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b07247580db98000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b07247580db9800001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b07247580db98000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b07247580db9800001c", "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC, "entries_custom_fields"=>[{"_id"=>"53359b07247580db9800001c", "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.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b07247580db9800001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db9800001b"]}} 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"=>"53359b07247580db9800001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4678ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b07247580db9800001b"]}}} (0.7071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b07247580db9800001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b07247580db9800001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b07247580db9800001b", "content_type_id"=>"53359b07247580db9800001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359b07247580db98000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:53:43 UTC, "created_at"=>2014-03-28 15:53:43 UTC}] flags=[] (0.3660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b07247580db9800001b", "original_id"=>"53359b07247580db9800001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b07247580db9800001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359b07247580db98000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b07247580db9800001b", "original_id"=>"53359b07247580db9800001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2518ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:53:44 +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.8781ms) 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.6120ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b06247580db98000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b06247580db98000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4020ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.2ms) Completed 200 OK in 36.4ms (Views: 28.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:53:45 +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-03-28 16:53:45 +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-03-28 16:53:45 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:53:45 +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.6399ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b06247580db98000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b06247580db98000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) 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.8330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b06247580db98000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:53:45 UTC, "updated_at"=>2014-03-28 15:53:45 UTC}} flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b06247580db98000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:53:45 UTC, "current_sign_in_at"=>2014-03-28 15:53:45 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 15:53:45 UTC}} flags=[] (0.1650ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 26.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:53:45 +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.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b06247580db98000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359b06247580db98000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002"}, "$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.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b06247580db98000002"}, "$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.3549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b06247580db98000002"}, "$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.5667ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b06247580db98000002"}, "$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.3760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359b07247580db98000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6480ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (51.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b06247580db98000001", :role=>:admin}}}} (0.5348ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359b06247580db98000001"}} (0.5071ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b06247580db98000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6218ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (25.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 133.0ms (Views: 115.3ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 16:53:45 +0100 Compiled locomotive/shared/common.css (633ms) (pid 10077) Compiled locomotive/backoffice/_box.css (1362ms) (pid 10077) Compiled locomotive/backoffice/_buttons.css (465ms) (pid 10077) Compiled locomotive/backoffice/application.css (2737ms) (pid 10077) Compiled locomotive/backoffice/content_assets.css (1326ms) (pid 10077) Compiled locomotive/backoffice/dialog_changes.css (1402ms) (pid 10077) Compiled locomotive/backoffice/editable_elements.css (2410ms) (pid 10077) Compiled locomotive/backoffice/formtastic_changes.css (1506ms) (pid 10077) Compiled locomotive/backoffice/layout.css (1274ms) (pid 10077) Compiled locomotive/backoffice/pagination.css (895ms) (pid 10077) Compiled locomotive.css (14126ms) (pid 10077) Served asset /locomotive.css - 200 OK (14152ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 16:53:59 +0100 Compiled locomotive/backbone.sync.js (0ms) (pid 10077) Compiled locomotive/vendor.js (4ms) (pid 10077) Compiled locomotive/utils/core_ext.js (0ms) (pid 10077) Compiled locomotive/models/content_asset.js (146ms) (pid 10077) Compiled locomotive/models/content_entry.js (131ms) (pid 10077) Compiled locomotive/views/content_assets/picker_item_view.js (119ms) (pid 10077) Compiled locomotive/views/shared/asset_picker_view.js (162ms) (pid 10077) Compiled locomotive/views/content_assets/picker_view.js (287ms) (pid 10077) Compiled locomotive/views/content_entries/_form_view.js (265ms) (pid 10077) Compiled locomotive/views/content_entries/_popup_form_view.js (150ms) (pid 10077) Compiled locomotive/views/inline_editor/application_view.js (156ms) (pid 10077) Compiled locomotive/views/pages/_form_view.js (205ms) (pid 10077) Compiled locomotive/views/shared/fields/belongs_to_view.js (95ms) (pid 10077) Compiled locomotive/views/shared/fields/many_to_many_view.js (166ms) (pid 10077) Compiled locomotive/views/snippets/_form_view.js (141ms) (pid 10077) Compiled locomotive/views/theme_assets/image_picker_view.js (119ms) (pid 10077) Compiled locomotive/views/shared/fields/_relationship_view.js (102ms) (pid 10077) Compiled locomotive/application.js (212ms) (pid 10077) Compiled locomotive.js (2619ms) (pid 10077) Served asset /locomotive.js - 200 OK (2910ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 16:54:02 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 16:54:02 +0100 Served asset /locomotive/nocoffee.png - 200 OK (5ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-03-28 16:54:02 +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-03-28 16:54:02 +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.7801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b06247580db98000001"}, "$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_accounts selector={"_id"=>{"$in"=>["53359b06247580db98000001"]}} 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"=>{"site_id"=>"53359b06247580db98000002"}, "$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.0228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b06247580db98000002"}, "$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.5138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b06247580db98000002"}, "$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.3848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359b07247580db98000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9491ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b06247580db98000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7231ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/custom_fields/_select_templates.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/custom_fields/_form.html.haml (70.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b06247580db98000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_types/_form.html.haml (95.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (123.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b06247580db98000001", :role=>:admin}}}} (0.5310ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b06247580db98000001"}} (0.5350ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53359b06247580db98000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6092ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 166.7ms (Views: 148.4ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-03-28 16:54:03 +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 (0.6409ms) 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.2879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3151ms) 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.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.6609ms) 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.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359b1b247580db98000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5789f9550c46af48c072a4ba6efd04a293ef7aca", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"wBB39HyKt2UtJQkszfSk", "api_key"=>"2eb2cba1c67251fea1d99500104463c80008b681", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.1259ms) 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.7548ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b1b247580db98000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:53:42 UTC, "updated_at"=>2014-03-28 15:54:03 UTC, "memberships"=>[{"_id"=>"53359b1b247580db98000022", "role"=>"admin", "account_id"=>"53359b1b247580db98000020"}]}] flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000021", "_id"=>{"$ne"=>"53359b1b247580db98000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db98000023", "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"=>"53359b1b247580db98000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000023"]}}, "$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"=>"53359b1b247580db98000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b1b247580db98000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000023", "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"=>"53359b1b247580db98000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b1b247580db98000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000021", "_id"=>{"$ne"=>"53359b1b247580db98000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53359b1b247580db98000025", "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"=>"53359b1b247580db98000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3037ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000025"}, "$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"=>["53359b1b247580db98000025"]}} 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"=>"53359b1b247580db98000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b1b247580db98000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b1b247580db98000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b1b247580db98000027", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC, "entries_custom_fields"=>[{"_id"=>"53359b1b247580db98000027", "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.3211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359b1b247580db98000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359b1b247580db98000028", "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", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}}} flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b1b247580db98000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db98000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359b1b247580db98000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db98000026"]}}} (0.7937ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b1b247580db98000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b1b247580db98000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b1b247580db98000026", "content_type_id"=>"53359b1b247580db98000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359b1b247580db98000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.3147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b1b247580db98000026", "original_id"=>"53359b1b247580db98000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5929ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b1b247580db9800002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359b1b247580db98000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b1b247580db98000026", "original_id"=>"53359b1b247580db98000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b1b247580db9800002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db98000026"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359b1b247580db98000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db98000026"]}}} (0.5178ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db98000026"]}}} (0.4117ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db98000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5093ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b1b247580db9800002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b1b247580db98000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b1b247580db98000026", "content_type_id"=>"53359b1b247580db98000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359b1b247580db98000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.2863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b1b247580db98000026", "original_id"=>"53359b1b247580db9800002b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b1b247580db9800002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359b1b247580db98000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b1b247580db98000026", "original_id"=>"53359b1b247580db9800002b", "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.7949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021", "_id"=>{"$ne"=>"53359b1b247580db9800002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b1b247580db98000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db9800002d", "parent_ids"=>["53359b1b247580db98000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db9800002d"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db9800002d"}, "$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"=>["53359b1b247580db9800002d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db9800002d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b1b247580db9800002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359b1b247580db98000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db9800002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2151ms) 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.9930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021", "_id"=>{"$ne"=>"53359b1b247580db9800002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021"}, "$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"=>"53359b1b247580db98000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6223ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db9800002f", "parent_ids"=>["53359b1b247580db98000023"], "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"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db9800002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db9800002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b1b247580db9800002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1500ms) 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.7532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021", "_id"=>{"$ne"=>"53359b1b247580db98000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021"}, "$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"=>"53359b1b247580db98000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db98000030", "parent_ids"=>["53359b1b247580db98000023"], "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"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000030"]}}, "$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"=>"53359b1b247580db98000030"}, "$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"=>["53359b1b247580db98000030"]}} 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.5608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021", "_id"=>{"$ne"=>"53359b1b247580db98000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000023", "site_id"=>"53359b1b247580db98000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b1b247580db98000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db98000031", "parent_ids"=>["53359b1b247580db98000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359b1b247580db98000021", "parent_id"=>"53359b1b247580db98000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000031"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359b1b247580db98000031"}, "$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"=>["53359b1b247580db98000031"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000031", "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"=>"53359b1b247580db98000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359b1b247580db98000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53359b1b247580db98000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5467ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359b1b247580db98000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:54:03 UTC}} flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7560ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359b1b247580db98000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359b1b247580db98000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2651ms) 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.6840ms) 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.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b1b247580db98000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:53:42 UTC, "updated_at"=>2014-03-28 15:54:03 UTC, "memberships"=>[{"_id"=>"53359b1b247580db98000034", "role"=>"admin", "account_id"=>"53359b1b247580db98000020"}]}] flags=[] (0.5412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000033", "_id"=>{"$ne"=>"53359b1b247580db98000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db98000035", "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"=>"53359b1b247580db98000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000033", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000035"]}}, "$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"=>"53359b1b247580db98000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3483ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b1b247580db98000035"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000035", "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"=>"53359b1b247580db98000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b1b247580db98000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000035", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000033", "_id"=>{"$ne"=>"53359b1b247580db98000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db98000037", "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"=>"53359b1b247580db98000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000033", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b1b247580db98000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b1b247580db98000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000033", "_id"=>{"$ne"=>"53359b1b247580db98000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b1b247580db98000033"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b1b247580db98000038", "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"=>"53359b1b247580db98000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000033", "template_dependencies.en"=>{"$in"=>["53359b1b247580db98000038"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359b1b247580db98000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b1b247580db98000038"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b1b247580db98000039", "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=>"53359b1b247580db98000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b1b247580db98000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3228ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b1b247580db98000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b1b247580db9800003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b1b247580db98000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b1b247580db9800003b", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 UTC, "entries_custom_fields"=>[{"_id"=>"53359b1b247580db9800003b", "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.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b1b247580db9800003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db9800003a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359b1b247580db9800003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b1b247580db9800003a"]}}} (0.7360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b1b247580db9800003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b1b247580db9800003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b1b247580db9800003a", "content_type_id"=>"53359b1b247580db9800003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359b1b247580db98000033", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:54:03 UTC, "created_at"=>2014-03-28 15:54:03 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::ContentEntry53359b1b247580db9800003a", "original_id"=>"53359b1b247580db9800003c", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359b1b247580db9800003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359b1b247580db98000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b1b247580db9800003a", "original_id"=>"53359b1b247580db9800003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1669ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:54:03 +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.5538ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b1b247580db98000020"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b1b247580db98000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4351ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (4.4ms) Completed 200 OK in 11.1ms (Views: 6.0ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:54:03 +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.6051ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b1b247580db98000020"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b1b247580db98000020"]}}, "$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.5472ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b1b247580db98000020"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:54:03 UTC, "updated_at"=>2014-03-28 15:54:03 UTC}} flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b1b247580db98000020"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:54:03 UTC, "current_sign_in_at"=>2014-03-28 15:54:03 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 15:54:03 UTC}} flags=[] (0.1719ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 11.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:54:03 +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.7720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b1b247580db98000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359b1b247580db98000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.3208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.6192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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_entries selector={"$query"=>{"content_type_id"=>"53359b1b247580db98000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7119ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (17.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (28.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b1b247580db98000020", :role=>:admin}}}} (0.5188ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (4.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359b1b247580db98000020"}} (0.4022ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b1b247580db98000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (7.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.5ms) Completed 200 OK in 69.7ms (Views: 47.0ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-03-28 16:54:03 +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.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b1b247580db98000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359b1b247580db98000020"]}} 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_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.3158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.5589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359b1b247580db98000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8578ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_assets/_picker.html.haml (8.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/theme_assets/_picker.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_editable_elements.html.haml (6.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b1b247580db98000021"}, "$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.2898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b1b247580db98000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_form.html.haml (107.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (131.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b1b247580db98000020", :role=>:admin}}}} (0.5372ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b1b247580db98000020"}} (0.4339ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53359b1b247580db98000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8242ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.5ms) Completed 200 OK in 170.2ms (Views: 157.1ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-03-28 16:54:04 +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.8359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.8943ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.7560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.7741ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7992ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (6.0098ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0581ms) 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.6011ms) 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.5469ms) 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.4820ms) 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.5982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359b42247580439d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"06afcf3f4182cc4615cbaec724d5632749ad1f2b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"vmyzSJgvUhyKg5kC1dTy", "api_key"=>"8f4edf866f7f808b512ac046a3a5ff5e1d5315dd", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.3238ms) 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.9038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b42247580439d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:54:41 UTC, "updated_at"=>2014-03-28 15:54:42 UTC, "memberships"=>[{"_id"=>"53359b42247580439d000003", "role"=>"admin", "account_id"=>"53359b42247580439d000001"}]}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b42247580439d000002", "_id"=>{"$ne"=>"53359b42247580439d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b42247580439d000004", "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"=>"53359b42247580439d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d000004"}, "$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"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4110ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b42247580439d000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3848ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b42247580439d000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b42247580439d000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b42247580439d000002", "_id"=>{"$ne"=>"53359b42247580439d000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b42247580439d000002"}, "$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"=>"53359b42247580439d000006", "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"=>"53359b42247580439d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000006"]}}, "$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"=>"53359b42247580439d000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b42247580439d000006"]}} 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_content_types selector={"site_id"=>"53359b42247580439d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b42247580439d000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b42247580439d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b42247580439d000008", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC, "entries_custom_fields"=>[{"_id"=>"53359b42247580439d000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359b42247580439d000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359b42247580439d000009", "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", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}}} flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b42247580439d00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359b42247580439d000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d000007"]}}} (0.3808ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b42247580439d00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b42247580439d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b42247580439d000007", "content_type_id"=>"53359b42247580439d000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359b42247580439d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b42247580439d000007", "original_id"=>"53359b42247580439d00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b42247580439d00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359b42247580439d000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b42247580439d000007", "original_id"=>"53359b42247580439d00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b42247580439d00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d000007"]}} 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"=>"53359b42247580439d000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d000007"]}}} (0.3750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d000007"]}}} (0.3021ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4427ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b42247580439d00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b42247580439d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b42247580439d000007", "content_type_id"=>"53359b42247580439d000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359b42247580439d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b42247580439d000007", "original_id"=>"53359b42247580439d00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3846ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b42247580439d00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359b42247580439d000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b42247580439d000007", "original_id"=>"53359b42247580439d00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1338ms) 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.5889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "$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"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002", "_id"=>{"$ne"=>"53359b42247580439d00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b42247580439d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5558ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b42247580439d00000e", "parent_ids"=>["53359b42247580439d000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b42247580439d00000e"]}} 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"=>"53359b42247580439d00000e", "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"=>"53359b42247580439d00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359b42247580439d000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1812ms) 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.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "$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"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002", "_id"=>{"$ne"=>"53359b42247580439d000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b42247580439d000004"}]}]}, "$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"=>"53359b42247580439d000010", "parent_ids"=>["53359b42247580439d000004"], "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"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000010"]}}, "$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"=>"53359b42247580439d000010"}, "$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"=>["53359b42247580439d000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1411ms) 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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002", "_id"=>{"$ne"=>"53359b42247580439d000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002"}, "$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"=>"53359b42247580439d000004"}]}]}, "$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"=>"53359b42247580439d000011", "parent_ids"=>["53359b42247580439d000004"], "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"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000011"]}}, "$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"=>"53359b42247580439d000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b42247580439d000011"]}} 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={"$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"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002", "_id"=>{"$ne"=>"53359b42247580439d000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d000004", "site_id"=>"53359b42247580439d000002"}, "$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"=>"53359b42247580439d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53359b42247580439d000012", "parent_ids"=>["53359b42247580439d000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359b42247580439d000002", "parent_id"=>"53359b42247580439d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000012"]}}, "$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"=>"53359b42247580439d000012"}, "$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"=>["53359b42247580439d000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000012", "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"=>"53359b42247580439d000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359b42247580439d000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"53359b42247580439d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3958ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359b42247580439d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:54:42 UTC}} flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359b42247580439d000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359b42247580439d000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1459ms) 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.5362ms) 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.3498ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b42247580439d000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:54:41 UTC, "updated_at"=>2014-03-28 15:54:42 UTC, "memberships"=>[{"_id"=>"53359b42247580439d000015", "role"=>"admin", "account_id"=>"53359b42247580439d000001"}]}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b42247580439d000014", "_id"=>{"$ne"=>"53359b42247580439d000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53359b42247580439d000016", "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"=>"53359b42247580439d000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000014", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b42247580439d000016"}, "$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"=>["53359b42247580439d000016"]}} 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"=>"53359b42247580439d000016", "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"=>"53359b42247580439d000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b42247580439d000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b42247580439d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53359b42247580439d000014", "_id"=>{"$ne"=>"53359b42247580439d000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53359b42247580439d000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b42247580439d000018", "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"=>"53359b42247580439d000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000014", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"53359b42247580439d000018"}, "$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"=>["53359b42247580439d000018"]}} 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={"site_id"=>"53359b42247580439d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b42247580439d000014", "_id"=>{"$ne"=>"53359b42247580439d000019"}, "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"=>"53359b42247580439d000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b42247580439d000019", "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"=>"53359b42247580439d000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000014", "template_dependencies.en"=>{"$in"=>["53359b42247580439d000019"]}}, "$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"=>"53359b42247580439d000019"}, "$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"=>["53359b42247580439d000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3622ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b42247580439d00001a", "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=>"53359b42247580439d000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b42247580439d000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b42247580439d000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b42247580439d00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b42247580439d000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b42247580439d00001c", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC, "entries_custom_fields"=>[{"_id"=>"53359b42247580439d00001c", "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.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b42247580439d00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d00001b"]}} 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_entries selector={"content_type_id"=>"53359b42247580439d00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5548ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b42247580439d00001b"]}}} (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b42247580439d00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b42247580439d00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b42247580439d00001b", "content_type_id"=>"53359b42247580439d00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359b42247580439d000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:54:42 UTC, "created_at"=>2014-03-28 15:54:42 UTC}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b42247580439d00001b", "original_id"=>"53359b42247580439d00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b42247580439d00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359b42247580439d000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b42247580439d00001b", "original_id"=>"53359b42247580439d00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3059ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:54:43 +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.7422ms) 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.7968ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b42247580439d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6421ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b42247580439d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.3ms) Completed 200 OK in 36.3ms (Views: 27.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:54:43 +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-03-28 16:54:43 +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-03-28 16:54:43 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:54:43 +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.6680ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b42247580439d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) # MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b42247580439d000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6061ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b42247580439d000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:54:43 UTC, "updated_at"=>2014-03-28 15:54:43 UTC}} flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b42247580439d000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:54:43 UTC, "current_sign_in_at"=>2014-03-28 15:54:43 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 15:54:43 UTC}} flags=[] (0.1938ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:54:43 +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.6218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b42247580439d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359b42247580439d000001"]}} 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"=>{"site_id"=>"53359b42247580439d000002"}, "$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.6398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002"}, "$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.1119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b42247580439d000002"}, "$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.0891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b42247580439d000002"}, "$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.9339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359b42247580439d000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.5817ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (40.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (18.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (74.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"53359b42247580439d000001", :role=>:admin}}}} (0.6049ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (1.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (19.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359b42247580439d000001"}} (0.8030ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (4.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53359b42247580439d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6950ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (5.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (40.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (5.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (2.1ms) Completed 200 OK in 185.9ms (Views: 168.4ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 16:54:44 +0100 Served asset /locomotive.css - 200 OK (46ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 16:54:44 +0100 Served asset /locomotive.js - 200 OK (129ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 16:54:44 +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-03-28 16:54:44 +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-03-28 16:54:44 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:54:44 +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.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b42247580439d000001"}, "$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={"_id"=>{"$in"=>["53359b42247580439d000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"53359b42247580439d000002"}, "$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.0650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b42247580439d000002"}, "$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.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b42247580439d000002"}, "$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.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b42247580439d000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"53359b42247580439d000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7911ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b42247580439d000001", :role=>:admin}}}} (0.5040ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b42247580439d000001"}} (0.4451ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b42247580439d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5462ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (8.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 57.3ms (Views: 40.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.6149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3893ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3630ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.7042ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2782ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.8928ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9191ms) 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.6201ms) 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 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.8199ms) 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.4208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359b7a24758051f9000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8735fde2061061421b8f968530d45904737c13db", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"nvbZ3MrkYzyHwpho8zAC", "api_key"=>"027bfcc10042fabc1dc7763a973c30a13f8448d6", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.1857ms) 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.9584ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b7a24758051f9000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:55:38 UTC, "updated_at"=>2014-03-28 15:55:38 UTC, "memberships"=>[{"_id"=>"53359b7a24758051f9000003", "role"=>"admin", "account_id"=>"53359b7a24758051f9000001"}]}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b7a24758051f9000002", "_id"=>{"$ne"=>"53359b7a24758051f9000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7708ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b7a24758051f9000004", "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"=>"53359b7a24758051f9000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000004"}, "$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"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"53359b7a24758051f9000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b7a24758051f9000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53359b7a24758051f9000002", "_id"=>{"$ne"=>"53359b7a24758051f9000006"}, "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"=>"53359b7a24758051f9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53359b7a24758051f9000006", "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"=>"53359b7a24758051f9000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b7a24758051f9000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b7a24758051f9000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b7a24758051f9000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b7a24758051f9000008", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC, "entries_custom_fields"=>[{"_id"=>"53359b7a24758051f9000008", "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.2692ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359b7a24758051f9000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359b7a24758051f9000009", "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", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}}} flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b7a24758051f900000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f9000007"]}} 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_entries selector={"content_type_id"=>"53359b7a24758051f9000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6154ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f9000007"]}}} (0.4542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b7a24758051f900000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b7a24758051f9000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b7a24758051f9000007", "content_type_id"=>"53359b7a24758051f9000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359b7a24758051f9000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b7a24758051f9000007", "original_id"=>"53359b7a24758051f900000a", "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"=>"53359b7a24758051f900000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359b7a24758051f9000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b7a24758051f9000007", "original_id"=>"53359b7a24758051f900000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b7a24758051f900000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f9000007"]}} 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_content_entries selector={"content_type_id"=>"53359b7a24758051f9000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f9000007"]}}} (0.3822ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f9000007"]}}} (0.3159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f9000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5047ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b7a24758051f900000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b7a24758051f9000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b7a24758051f9000007", "content_type_id"=>"53359b7a24758051f9000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359b7a24758051f9000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 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::ContentEntry53359b7a24758051f9000007", "original_id"=>"53359b7a24758051f900000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b7a24758051f900000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359b7a24758051f9000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b7a24758051f9000007", "original_id"=>"53359b7a24758051f900000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1769ms) 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.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "$or"=>[{"slug.en"=>"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"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002", "_id"=>{"$ne"=>"53359b7a24758051f900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4816ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b7a24758051f9000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b7a24758051f900000e", "parent_ids"=>["53359b7a24758051f9000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f900000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359b7a24758051f900000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f900000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f900000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b7a24758051f900000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359b7a24758051f9000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f900000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1659ms) 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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "$or"=>[{"slug.en"=>"unpublished-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"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002", "_id"=>{"$ne"=>"53359b7a24758051f9000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b7a24758051f9000004"}]}]}, "$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"=>"53359b7a24758051f9000010", "parent_ids"=>["53359b7a24758051f9000004"], "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"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3748ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000010"]}} 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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002", "_id"=>{"$ne"=>"53359b7a24758051f9000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b7a24758051f9000004"}]}]}, "$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"=>"53359b7a24758051f9000011", "parent_ids"=>["53359b7a24758051f9000004"], "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"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002", "_id"=>{"$ne"=>"53359b7a24758051f9000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000004", "site_id"=>"53359b7a24758051f9000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359b7a24758051f9000004"}]}]}, "$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"=>"53359b7a24758051f9000012", "parent_ids"=>["53359b7a24758051f9000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359b7a24758051f9000002", "parent_id"=>"53359b7a24758051f9000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000012"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b7a24758051f9000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359b7a24758051f9000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "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_sites selector={"$query"=>{"_id"=>"53359b7a24758051f9000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359b7a24758051f9000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:55:38 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359b7a24758051f9000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359b7a24758051f9000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1450ms) 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.5338ms) 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.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359b7a24758051f9000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:55:38 UTC, "updated_at"=>2014-03-28 15:55:38 UTC, "memberships"=>[{"_id"=>"53359b7a24758051f9000015", "role"=>"admin", "account_id"=>"53359b7a24758051f9000001"}]}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"53359b7a24758051f9000014", "_id"=>{"$ne"=>"53359b7a24758051f9000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b7a24758051f9000016", "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"=>"53359b7a24758051f9000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000014", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000016"]}}, "$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"=>"53359b7a24758051f9000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000016"]}} 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"=>"53359b7a24758051f9000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b7a24758051f9000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359b7a24758051f9000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359b7a24758051f9000014", "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"=>"53359b7a24758051f9000014", "_id"=>{"$ne"=>"53359b7a24758051f9000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b7a24758051f9000014"}, "$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"=>"53359b7a24758051f9000018", "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"=>"53359b7a24758051f9000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000014", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359b7a24758051f9000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000018"]}} 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={"site_id"=>"53359b7a24758051f9000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359b7a24758051f9000014", "_id"=>{"$ne"=>"53359b7a24758051f9000019"}, "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"=>{"parent_id"=>nil, "site_id"=>"53359b7a24758051f9000014"}, "$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.2649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359b7a24758051f9000019", "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"=>"53359b7a24758051f9000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000014", "template_dependencies.en"=>{"$in"=>["53359b7a24758051f9000019"]}}, "$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"=>"53359b7a24758051f9000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359b7a24758051f9000019"]}} 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"=>"53359b7a24758051f9000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359b7a24758051f900001a", "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=>"53359b7a24758051f9000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359b7a24758051f9000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359b7a24758051f9000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359b7a24758051f900001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359b7a24758051f9000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359b7a24758051f900001c", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC, "entries_custom_fields"=>[{"_id"=>"53359b7a24758051f900001c", "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.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359b7a24758051f900001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f900001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359b7a24758051f900001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359b7a24758051f900001b"]}}} (0.6011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359b7a24758051f900001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359b7a24758051f900001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359b7a24758051f900001b", "content_type_id"=>"53359b7a24758051f900001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359b7a24758051f9000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:55:38 UTC, "created_at"=>2014-03-28 15:55:38 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359b7a24758051f900001b", "original_id"=>"53359b7a24758051f900001d", "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"=>"53359b7a24758051f900001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359b7a24758051f9000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359b7a24758051f900001b", "original_id"=>"53359b7a24758051f900001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2041ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:55: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} (0.8521ms) 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.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b7a24758051f9000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4730ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.8ms) Completed 200 OK in 35.8ms (Views: 29.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:55:40 +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-03-28 16:55:40 +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-03-28 16:55:40 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:55: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 (0.6099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359b7a24758051f9000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) 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.5400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b7a24758051f9000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:55:40 UTC, "updated_at"=>2014-03-28 15:55:40 UTC}} flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359b7a24758051f9000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:55:40 UTC, "current_sign_in_at"=>2014-03-28 15:55: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-03-28 15:55:40 UTC}} flags=[] (0.1922ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:55: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.7093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359b7a24758051f9000001"}, "$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={"_id"=>{"$in"=>["53359b7a24758051f9000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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.1148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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.5524ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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.3662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359b7a24758051f9000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8121ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (29.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (17.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (61.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b7a24758051f9000001", :role=>:admin}}}} (0.6871ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (16.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359b7a24758051f9000001"}} (0.5171ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b7a24758051f9000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7932ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (5.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.7ms) Completed 200 OK in 151.3ms (Views: 134.6ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 16:55:40 +0100 Served asset /locomotive.js - 200 OK (137ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 16:55:40 +0100 Served asset /locomotive.css - 200 OK (53ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 16:55:41 +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-03-28 16:55:41 +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-03-28 16:55:41 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:55:41 +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"=>"53359b7a24758051f9000001"}, "$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"=>["53359b7a24758051f9000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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.1289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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.1668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359b7a24758051f9000002"}, "$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"=>"53359b7a24758051f9000002"}, "$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.4077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359b7a24758051f9000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7582ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359b7a24758051f9000001", :role=>:admin}}}} (0.4952ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b7a24758051f9000001"}} (0.4060ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359b7a24758051f9000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5789ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (8.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 57.2ms (Views: 41.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.7300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3361ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.1101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6967ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8821ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1778ms) 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.7200ms) 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.5240ms) 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.9258ms) 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.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359baa2475803e25000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"356732685cb1f5b61949b74d4b5e805e671b84f4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"YcqqWw1QFKqqSoFBYRuB", "api_key"=>"519263e6a1402537c8612e9d9f5fb309d157557e", "updated_at"=>2014-03-28 15:56:26 UTC, "created_at"=>2014-03-28 15:56:26 UTC}] flags=[] (0.2382ms) 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.2522ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359baa2475803e25000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:56:26 UTC, "updated_at"=>2014-03-28 15:56:26 UTC, "memberships"=>[{"_id"=>"53359baa2475803e25000003", "role"=>"admin", "account_id"=>"53359baa2475803e25000001"}]}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359baa2475803e25000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359baa2475803e25000002", "_id"=>{"$ne"=>"53359bab2475803e25000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359bab2475803e25000004", "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"=>"53359baa2475803e25000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004"}, "$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"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e25000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000004", "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"=>"53359bab2475803e25000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359baa2475803e25000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359baa2475803e25000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359baa2475803e25000002", "_id"=>{"$ne"=>"53359bab2475803e25000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359baa2475803e25000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000006", "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"=>"53359baa2475803e25000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e25000006"]}} 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"=>"53359baa2475803e25000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359bab2475803e25000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359baa2475803e25000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359bab2475803e25000008", "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC, "entries_custom_fields"=>[{"_id"=>"53359bab2475803e25000008", "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.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359bab2475803e25000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359bab2475803e25000009", "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", "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}}} flags=[] (0.2937ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359bab2475803e2500000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e25000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0056ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359bab2475803e25000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e25000007"]}}} (0.7460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359bab2475803e2500000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359bab2475803e25000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359bab2475803e25000007", "content_type_id"=>"53359bab2475803e25000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359baa2475803e25000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359bab2475803e25000007", "original_id"=>"53359bab2475803e2500000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e2500000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359baa2475803e25000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359bab2475803e25000007", "original_id"=>"53359bab2475803e2500000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359bab2475803e2500000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e25000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359bab2475803e25000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4132ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e25000007"]}}} (0.4241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e25000007"]}}} (0.5391ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e25000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359bab2475803e2500000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359bab2475803e25000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359bab2475803e25000007", "content_type_id"=>"53359bab2475803e25000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359baa2475803e25000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359bab2475803e25000007", "original_id"=>"53359bab2475803e2500000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6168ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e2500000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359baa2475803e25000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359bab2475803e25000007", "original_id"=>"53359bab2475803e2500000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002", "_id"=>{"$ne"=>"53359bab2475803e2500000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bab2475803e25000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9160ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e2500000e", "parent_ids"=>["53359bab2475803e25000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e2500000e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e2500000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e2500000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e2500000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e2500000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359baa2475803e25000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e2500000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] 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.8628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002", "_id"=>{"$ne"=>"53359bab2475803e25000010"}, "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"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bab2475803e25000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000010", "parent_ids"=>["53359bab2475803e25000004"], "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"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359bab2475803e25000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e25000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1643ms) 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.7582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002", "_id"=>{"$ne"=>"53359bab2475803e25000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bab2475803e25000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6990ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000011", "parent_ids"=>["53359bab2475803e25000004"], "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"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.3567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000011"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"53359bab2475803e25000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1439ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e25000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002", "_id"=>{"$ne"=>"53359bab2475803e25000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000004", "site_id"=>"53359baa2475803e25000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bab2475803e25000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000012", "parent_ids"=>["53359bab2475803e25000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359baa2475803e25000002", "parent_id"=>"53359bab2475803e25000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000012"}, "$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"=>["53359bab2475803e25000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e25000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359baa2475803e25000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53359baa2475803e25000002"}, "$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"=>"53359bab2475803e25000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:56:27 UTC}} flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359bab2475803e25000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359baa2475803e25000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2377ms) 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.0698ms) 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"=>"53359bab2475803e25000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:56:26 UTC, "updated_at"=>2014-03-28 15:56:27 UTC, "memberships"=>[{"_id"=>"53359bab2475803e25000015", "role"=>"admin", "account_id"=>"53359baa2475803e25000001"}]}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bab2475803e25000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bab2475803e25000014", "_id"=>{"$ne"=>"53359bab2475803e25000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5677ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000016", "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"=>"53359bab2475803e25000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bab2475803e25000014", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000016"}, "$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"=>["53359bab2475803e25000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e25000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359bab2475803e25000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bab2475803e25000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bab2475803e25000014", "_id"=>{"$ne"=>"53359bab2475803e25000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bab2475803e25000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000018", "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"=>"53359bab2475803e25000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bab2475803e25000014", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53359bab2475803e25000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e25000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bab2475803e25000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7243ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bab2475803e25000014", "_id"=>{"$ne"=>"53359bab2475803e25000019"}, "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"=>nil, "site_id"=>"53359bab2475803e25000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2369ms) 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.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bab2475803e25000019", "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"=>"53359bab2475803e25000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bab2475803e25000014", "template_dependencies.en"=>{"$in"=>["53359bab2475803e25000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bab2475803e25000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bab2475803e25000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5407ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e2500001a", "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=>"53359bab2475803e25000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bab2475803e25000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359bab2475803e25000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6697ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359bab2475803e2500001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359bab2475803e25000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359bab2475803e2500001c", "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC, "entries_custom_fields"=>[{"_id"=>"53359bab2475803e2500001c", "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.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359bab2475803e2500001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e2500001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359bab2475803e2500001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bab2475803e2500001b"]}}} (0.8147ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359bab2475803e2500001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359bab2475803e2500001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359bab2475803e2500001b", "content_type_id"=>"53359bab2475803e2500001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359bab2475803e25000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:56:27 UTC, "created_at"=>2014-03-28 15:56:27 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359bab2475803e2500001b", "original_id"=>"53359bab2475803e2500001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bab2475803e2500001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359bab2475803e25000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359bab2475803e2500001b", "original_id"=>"53359bab2475803e2500001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.4740ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:56:28 +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.2400ms) 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.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359baa2475803e25000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8249ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (22.1ms) Completed 200 OK in 48.9ms (Views: 39.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:56:28 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 16:56:28 +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-03-28 16:56:28 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:56:29 +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.0030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359baa2475803e25000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6621ms) 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.7529ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359baa2475803e25000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:56:29 UTC, "updated_at"=>2014-03-28 15:56:29 UTC}} flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359baa2475803e25000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:56:29 UTC, "current_sign_in_at"=>2014-03-28 15:56:29 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 15:56:29 UTC}} flags=[] (0.2551ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 29.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:56:29 +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.7389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359baa2475803e25000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["53359baa2475803e25000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.6091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.4560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.9260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.6747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359bab2475803e25000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9649ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (36.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (17.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (68.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"53359baa2475803e25000001", :role=>:admin}}}} (0.5569ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (17.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359baa2475803e25000001"}} (0.6502ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359baa2475803e25000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7541ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (5.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.9ms) Completed 200 OK in 172.3ms (Views: 146.5ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 16:56:29 +0100 Served asset /locomotive.js - 200 OK (144ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 16:56:29 +0100 Served asset /locomotive.css - 200 OK (51ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 16:56:29 +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-03-28 16:56:29 +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-03-28 16:56:29 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:56:29 +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.9131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359baa2475803e25000001"}, "$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"=>["53359baa2475803e25000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.3540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.8902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.8571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359baa2475803e25000002"}, "$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.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359bab2475803e25000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7477ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (21.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (35.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359baa2475803e25000001", :role=>:admin}}}} (0.5803ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359baa2475803e25000001"}} (0.6032ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53359baa2475803e25000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5651ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (11.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 82.2ms (Views: 60.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.0433ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.3181ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.2998ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.2159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.6367ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2350ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9568ms) 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.6726ms) 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.7811ms) 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.0691ms) 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.4299ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359bf3247580f677000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"161d82ce825ce044a340f680bd4067cc3b5879b6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ejfAw3VVzgcsSmrbjJmS", "api_key"=>"f2b625cf545a48506417cb8af456d6d503fd7606", "updated_at"=>2014-03-28 15:57:39 UTC, "created_at"=>2014-03-28 15:57:39 UTC}] flags=[] (0.2403ms) 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.9689ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359bf3247580f677000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:57:39 UTC, "updated_at"=>2014-03-28 15:57:39 UTC, "memberships"=>[{"_id"=>"53359bf3247580f677000003", "role"=>"admin", "account_id"=>"53359bf3247580f677000001"}]}] flags=[] (0.2842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf3247580f677000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf3247580f677000002", "_id"=>{"$ne"=>"53359bf3247580f677000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359bf3247580f677000004", "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"=>"53359bf3247580f677000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:39 UTC, "created_at"=>2014-03-28 15:57:39 UTC}] flags=[] (0.4051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf3247580f677000004"]}}, "$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"=>["53359bf3247580f677000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bf3247580f677000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f677000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359bf3247580f677000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bf3247580f677000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf3247580f677000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf3247580f677000002", "_id"=>{"$ne"=>"53359bf4247580f677000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf3247580f677000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bf4247580f677000006", "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"=>"53359bf3247580f677000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000006"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359bf4247580f677000006"}, "$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"=>["53359bf4247580f677000006"]}} 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_content_types selector={"site_id"=>"53359bf3247580f677000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359bf4247580f677000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359bf3247580f677000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359bf4247580f677000008", "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC, "entries_custom_fields"=>[{"_id"=>"53359bf4247580f677000008", "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.2832ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359bf4247580f677000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359bf4247580f677000009", "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", "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}}} flags=[] (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359bf4247580f67700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f677000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359bf4247580f677000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f677000007"]}}} (0.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359bf4247580f67700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359bf4247580f677000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359bf4247580f677000007", "content_type_id"=>"53359bf4247580f677000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359bf3247580f677000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359bf4247580f677000007", "original_id"=>"53359bf4247580f67700000a", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f67700000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359bf3247580f677000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359bf4247580f677000007", "original_id"=>"53359bf4247580f67700000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359bf4247580f67700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f677000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359bf4247580f677000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6749ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f677000007"]}}} (0.6380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f677000007"]}}} (0.5891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f677000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.1241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359bf4247580f67700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359bf4247580f677000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359bf4247580f677000007", "content_type_id"=>"53359bf4247580f677000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359bf3247580f677000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.3779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359bf4247580f677000007", "original_id"=>"53359bf4247580f67700000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f67700000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359bf3247580f677000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359bf4247580f677000007", "original_id"=>"53359bf4247580f67700000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3500ms) 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.0290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002", "_id"=>{"$ne"=>"53359bf4247580f67700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bf3247580f677000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bf4247580f67700000e", "parent_ids"=>["53359bf3247580f677000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.7403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf4247580f67700000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf4247580f67700000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bf4247580f67700000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bf4247580f67700000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f67700000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359bf3247580f677000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bf4247580f67700000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.3121ms) 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.9003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002", "_id"=>{"$ne"=>"53359bf4247580f677000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bf3247580f677000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2708ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bf4247580f677000010", "parent_ids"=>["53359bf3247580f677000004"], "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"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.5193ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000010"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53359bf4247580f677000010"}, "$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"=>["53359bf4247580f677000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2019ms) 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.8678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002", "_id"=>{"$ne"=>"53359bf4247580f677000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359bf3247580f677000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bf4247580f677000011", "parent_ids"=>["53359bf3247580f677000004"], "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"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.6449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf4247580f677000011"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53359bf4247580f677000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1788ms) 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.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002", "_id"=>{"$ne"=>"53359bf4247580f677000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359bf3247580f677000004", "site_id"=>"53359bf3247580f677000002"}, "$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"=>"53359bf3247580f677000004"}]}]}, "$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"=>"53359bf4247580f677000012", "parent_ids"=>["53359bf3247580f677000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359bf3247580f677000002", "parent_id"=>"53359bf3247580f677000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000012"]}}, "$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"=>{"parent_id"=>"53359bf4247580f677000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2407ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bf4247580f677000012"]}} 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"=>"53359bf4247580f677000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f677000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359bf3247580f677000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bf4247580f677000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53359bf3247580f677000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359bf3247580f677000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:57:40 UTC}} flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002", "template_dependencies.en"=>{"$in"=>["53359bf3247580f677000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bf3247580f677000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5376ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359bf4247580f677000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359bf3247580f677000002", :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.5238ms) 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.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359bf4247580f677000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:57:39 UTC, "updated_at"=>2014-03-28 15:57:40 UTC, "memberships"=>[{"_id"=>"53359bf4247580f677000015", "role"=>"admin", "account_id"=>"53359bf3247580f677000001"}]}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf4247580f677000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf4247580f677000014", "_id"=>{"$ne"=>"53359bf4247580f677000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bf4247580f677000016", "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"=>"53359bf4247580f677000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf4247580f677000014", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000016"]}}, "$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"=>"53359bf4247580f677000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bf4247580f677000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359bf4247580f677000016", "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"=>"53359bf4247580f677000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359bf4247580f677000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bf4247580f677000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf4247580f677000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf4247580f677000014", "_id"=>{"$ne"=>"53359bf4247580f677000018"}, "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"=>nil, "site_id"=>"53359bf4247580f677000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359bf4247580f677000018", "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"=>"53359bf4247580f677000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf4247580f677000014", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53359bf4247580f677000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bf4247580f677000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359bf4247580f677000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf4247580f677000014", "_id"=>{"$ne"=>"53359bf4247580f677000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359bf4247580f677000014"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$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"=>"53359bf4247580f677000019", "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"=>"53359bf4247580f677000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf4247580f677000014", "template_dependencies.en"=>{"$in"=>["53359bf4247580f677000019"]}}, "$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"=>"53359bf4247580f677000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3552ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359bf4247580f677000019"]}} 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"=>"53359bf4247580f677000019", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f67700001a", "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=>"53359bf4247580f677000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359bf4247580f677000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359bf4247580f677000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359bf4247580f67700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359bf4247580f677000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359bf4247580f67700001c", "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC, "entries_custom_fields"=>[{"_id"=>"53359bf4247580f67700001c", "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"=>"53359bf4247580f67700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f67700001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359bf4247580f67700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359bf4247580f67700001b"]}}} (0.7932ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359bf4247580f67700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359bf4247580f67700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359bf4247580f67700001b", "content_type_id"=>"53359bf4247580f67700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359bf4247580f677000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:57:40 UTC, "created_at"=>2014-03-28 15:57:40 UTC}] flags=[] (0.3881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359bf4247580f67700001b", "original_id"=>"53359bf4247580f67700001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359bf4247580f67700001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359bf4247580f677000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359bf4247580f67700001b", "original_id"=>"53359bf4247580f67700001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3269ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:57:41 +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.8740ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359bf3247580f677000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7329ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.6ms) Completed 200 OK in 40.6ms (Views: 33.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:57:41 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 16:57:41 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 16:57:41 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:57:41 +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.6783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359bf3247580f677000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6452ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359bf3247580f677000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:57:41 UTC, "updated_at"=>2014-03-28 15:57:41 UTC}} flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359bf3247580f677000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:57:41 UTC, "current_sign_in_at"=>2014-03-28 15:57:41 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 15:57:41 UTC}} flags=[] (0.1550ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:57:41 +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.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359bf3247580f677000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359bf3247580f677000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.4870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.4992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.8233ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359bf4247580f677000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.1110ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (34.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (58.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"53359bf3247580f677000001", :role=>:admin}}}} (0.5460ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359bf3247580f677000001"}} (0.5209ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359bf3247580f677000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6781ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (5.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (27.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 142.9ms (Views: 123.6ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 16:57:42 +0100 Served asset /locomotive.js - 200 OK (108ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 16:57:42 +0100 Served asset /locomotive.css - 200 OK (35ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 16:57:42 +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-03-28 16:57:42 +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-03-28 16:57:42 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:57: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 (0.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359bf3247580f677000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359bf3247580f677000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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} (3.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.5349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359bf3247580f677000002"}, "$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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359bf4247580f677000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8531ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (20.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (31.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359bf3247580f677000001", :role=>:admin}}}} (0.5960ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (4.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359bf3247580f677000001"}} (0.4432ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359bf3247580f677000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (1.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (8.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 68.1ms (Views: 49.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.6270ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.1022ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8450ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9532ms) 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.6430ms) 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.6299ms) 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.8640ms) 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.8521ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359c4224758060e6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1ffb0567bc94641924a4941a36f58b6bfa0d6398", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"kJHzBrqHoQmdq6wwBRme", "api_key"=>"981fdd92b70c372a6accdf6a609acddf27023267", "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.2570ms) 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.1799ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359c4224758060e6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 15:58:58 UTC, "updated_at"=>2014-03-28 15:58:58 UTC, "memberships"=>[{"_id"=>"53359c4224758060e6000003", "role"=>"admin", "account_id"=>"53359c4224758060e6000001"}]}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4224758060e6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4224758060e6000002", "_id"=>{"$ne"=>"53359c4224758060e6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359c4224758060e6000004", "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"=>"53359c4224758060e6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4224758060e6000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e6000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4224758060e6000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e6000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4224758060e6000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359c4224758060e6000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e6000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4224758060e6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4224758060e6000002", "_id"=>{"$ne"=>"53359c4224758060e6000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4224758060e6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (3.2029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c4224758060e6000006", "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"=>"53359c4224758060e6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e6000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4224758060e6000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.9588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4224758060e6000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359c4224758060e6000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359c4224758060e6000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359c4224758060e6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359c4224758060e6000008", "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC, "entries_custom_fields"=>[{"_id"=>"53359c4224758060e6000008", "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.2487ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359c4224758060e6000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359c4224758060e6000009", "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", "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}}} flags=[] (0.2937ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359c4224758060e600000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359c4224758060e6000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359c4224758060e6000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4523ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c4224758060e6000007"]}}} (0.4110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359c4224758060e600000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359c4224758060e6000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359c4224758060e6000007", "content_type_id"=>"53359c4224758060e6000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359c4224758060e6000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359c4224758060e6000007", "original_id"=>"53359c4224758060e600000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4224758060e600000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359c4224758060e6000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359c4224758060e6000007", "original_id"=>"53359c4224758060e600000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1447ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359c4224758060e600000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359c4224758060e6000007"]}} 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"=>"53359c4224758060e6000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3958ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c4224758060e6000007"]}}} (0.4110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c4224758060e6000007"]}}} (0.2887ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c4224758060e6000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359c4224758060e600000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359c4224758060e6000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359c4224758060e6000007", "content_type_id"=>"53359c4224758060e6000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359c4224758060e6000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359c4224758060e6000007", "original_id"=>"53359c4224758060e600000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4224758060e600000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359c4224758060e6000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359c4224758060e6000007", "original_id"=>"53359c4224758060e600000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2558ms) 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.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002", "_id"=>{"$ne"=>"53359c4224758060e600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359c4224758060e6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c4224758060e600000e", "parent_ids"=>["53359c4224758060e6000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e600000e"]}}, "$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"=>"53359c4224758060e600000e"}, "$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"=>["53359c4224758060e600000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e600000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3238ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4224758060e600000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359c4224758060e6000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e600000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2072ms) 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.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002", "_id"=>{"$ne"=>"53359c4224758060e6000010"}, "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"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002"}, "$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"=>"53359c4224758060e6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c4224758060e6000010", "parent_ids"=>["53359c4224758060e6000004"], "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"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e6000010"]}}, "$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"=>"53359c4224758060e6000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4224758060e6000010"]}} 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.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "$or"=>[{"slug.en"=>"seems-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"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002", "_id"=>{"$ne"=>"53359c4224758060e6000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002"}, "$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"=>"53359c4224758060e6000004"}]}]}, "$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"=>"53359c4224758060e6000011", "parent_ids"=>["53359c4224758060e6000004"], "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"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:58 UTC, "created_at"=>2014-03-28 15:58:58 UTC}] flags=[] (0.2162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e6000011"]}}, "$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"=>"53359c4224758060e6000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4224758060e6000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002", "_id"=>{"$ne"=>"53359c4224758060e6000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4224758060e6000004", "site_id"=>"53359c4224758060e6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359c4224758060e6000004"}]}]}, "$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"=>"53359c4224758060e6000012", "parent_ids"=>["53359c4224758060e6000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359c4224758060e6000002", "parent_id"=>"53359c4224758060e6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:59 UTC, "created_at"=>2014-03-28 15:58:59 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e6000012"]}}, "$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"=>"53359c4224758060e6000012"}, "$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"=>["53359c4224758060e6000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e6000012", "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"=>"53359c4324758060e6000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359c4224758060e6000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e6000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "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_sites selector={"$query"=>{"_id"=>"53359c4224758060e6000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3819ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359c4224758060e6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 15:58:59 UTC}} flags=[] (0.2077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002", "template_dependencies.en"=>{"$in"=>["53359c4224758060e6000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c4224758060e6000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5131ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359c4224758060e6000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359c4224758060e6000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1528ms) 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.5620ms) 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.3700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359c4324758060e6000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 15:58:58 UTC, "updated_at"=>2014-03-28 15:58:59 UTC, "memberships"=>[{"_id"=>"53359c4324758060e6000015", "role"=>"admin", "account_id"=>"53359c4224758060e6000001"}]}] flags=[] (0.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4324758060e6000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4324758060e6000014", "_id"=>{"$ne"=>"53359c4324758060e6000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359c4324758060e6000016", "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"=>"53359c4324758060e6000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:59 UTC, "created_at"=>2014-03-28 15:58:59 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4324758060e6000014", "template_dependencies.en"=>{"$in"=>["53359c4324758060e6000016"]}}, "$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"=>"53359c4324758060e6000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4324758060e6000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c4324758060e6000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4324758060e6000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359c4324758060e6000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c4324758060e6000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4324758060e6000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4324758060e6000014", "_id"=>{"$ne"=>"53359c4324758060e6000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4324758060e6000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c4324758060e6000018", "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"=>"53359c4324758060e6000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:59 UTC, "created_at"=>2014-03-28 15:58:59 UTC}] flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4324758060e6000014", "template_dependencies.en"=>{"$in"=>["53359c4324758060e6000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c4324758060e6000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4324758060e6000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c4324758060e6000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c4324758060e6000014", "_id"=>{"$ne"=>"53359c4324758060e6000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"53359c4324758060e6000014"}, "$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.3560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c4324758060e6000019", "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"=>"53359c4324758060e6000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 15:58:59 UTC, "created_at"=>2014-03-28 15:58:59 UTC}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4324758060e6000014", "template_dependencies.en"=>{"$in"=>["53359c4324758060e6000019"]}}, "$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"=>"53359c4324758060e6000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c4324758060e6000019"]}} 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"=>"53359c4324758060e6000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4324758060e600001a", "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=>"53359c4324758060e6000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c4324758060e6000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359c4324758060e6000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359c4324758060e600001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359c4324758060e6000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359c4324758060e600001c", "updated_at"=>2014-03-28 15:58:59 UTC, "created_at"=>2014-03-28 15:58:59 UTC, "entries_custom_fields"=>[{"_id"=>"53359c4324758060e600001c", "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.2928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359c4324758060e600001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359c4324758060e600001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359c4324758060e600001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6022ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c4324758060e600001b"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359c4324758060e600001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359c4324758060e600001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359c4324758060e600001b", "content_type_id"=>"53359c4324758060e600001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359c4324758060e6000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 15:58:59 UTC, "created_at"=>2014-03-28 15:58:59 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359c4324758060e600001b", "original_id"=>"53359c4324758060e600001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c4324758060e600001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359c4324758060e6000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359c4324758060e600001b", "original_id"=>"53359c4324758060e600001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2661ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 16:59:00 +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.8681ms) 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.6719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359c4224758060e6000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5114ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.2ms) Completed 200 OK in 36.7ms (Views: 30.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 16:59:00 +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-03-28 16:59:00 +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-03-28 16:59:00 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 16:59:00 +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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359c4224758060e6000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359c4224758060e6000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 15:59:00 UTC, "updated_at"=>2014-03-28 15:59:00 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359c4224758060e6000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 15:59:00 UTC, "current_sign_in_at"=>2014-03-28 15:59:00 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 15:59:00 UTC}} flags=[] (0.1659ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:59:00 +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.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359c4224758060e6000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3624ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359c4224758060e6000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.0953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.2658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.7761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359c4224758060e6000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6950ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (24.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (45.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359c4224758060e6000001", :role=>:admin}}}} (0.5679ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (12.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359c4224758060e6000001"}} (0.6328ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359c4224758060e6000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (25.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 121.6ms (Views: 105.3ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 16:59:00 +0100 Served asset /locomotive.css - 200 OK (35ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 16:59:00 +0100 Served asset /locomotive.js - 200 OK (113ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 16:59:00 +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-03-28 16:59:00 +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-03-28 16:59:00 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 16:59:01 +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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359c4224758060e6000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359c4224758060e6000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.2219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c4224758060e6000002"}, "$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.4623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359c4224758060e6000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9649ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359c4224758060e6000001", :role=>:admin}}}} (0.5093ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359c4224758060e6000001"}} (0.5219ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359c4224758060e6000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5870ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 58.1ms (Views: 42.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 (1.2753ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5471ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.3842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.6291ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2579ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.4493ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9592ms) 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.9432ms) 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.4668ms) 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.8640ms) 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.4828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359c9d247580cdcd000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4da9f7c533fc7e5f35cdf975583006a20bddd5d6", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"Dzp7GaoBGzZQkXovHKiE", "api_key"=>"7b1ce2e3ad15f4b2ac702d8ea6fafd9c1f207937", "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.1509ms) 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.9191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359c9d247580cdcd000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:00:29 UTC, "updated_at"=>2014-03-28 16:00:29 UTC, "memberships"=>[{"_id"=>"53359c9d247580cdcd000003", "role"=>"admin", "account_id"=>"53359c9d247580cdcd000001"}]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9d247580cdcd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0722ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9d247580cdcd000002", "_id"=>{"$ne"=>"53359c9d247580cdcd000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359c9d247580cdcd000004", "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"=>"53359c9d247580cdcd000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004"}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9d247580cdcd000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9d247580cdcd000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c9d247580cdcd000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"53359c9d247580cdcd000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359c9d247580cdcd000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c9d247580cdcd000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9d247580cdcd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9d247580cdcd000002", "_id"=>{"$ne"=>"53359c9d247580cdcd000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9d247580cdcd000002"}, "$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"=>"53359c9d247580cdcd000006", "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"=>"53359c9d247580cdcd000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9d247580cdcd000006"]}}, "$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"=>"53359c9d247580cdcd000006"}, "$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"=>["53359c9d247580cdcd000006"]}} 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_content_types selector={"site_id"=>"53359c9d247580cdcd000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359c9d247580cdcd000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359c9d247580cdcd000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359c9d247580cdcd000008", "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC, "entries_custom_fields"=>[{"_id"=>"53359c9d247580cdcd000008", "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.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359c9d247580cdcd000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359c9d247580cdcd000009", "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", "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}}} flags=[] (0.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359c9d247580cdcd00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359c9d247580cdcd000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359c9d247580cdcd000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c9d247580cdcd000007"]}}} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359c9d247580cdcd00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359c9d247580cdcd000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359c9d247580cdcd000007", "content_type_id"=>"53359c9d247580cdcd000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359c9d247580cdcd000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.2222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359c9d247580cdcd000007", "original_id"=>"53359c9d247580cdcd00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6220ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c9d247580cdcd00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359c9d247580cdcd000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359c9d247580cdcd000007", "original_id"=>"53359c9d247580cdcd00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359c9d247580cdcd00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359c9d247580cdcd000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359c9d247580cdcd000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5352ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c9d247580cdcd000007"]}}} (0.5822ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c9d247580cdcd000007"]}}} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c9d247580cdcd000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359c9d247580cdcd00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359c9d247580cdcd000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359c9d247580cdcd000007", "content_type_id"=>"53359c9d247580cdcd000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359c9d247580cdcd000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359c9d247580cdcd000007", "original_id"=>"53359c9d247580cdcd00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c9d247580cdcd00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359c9d247580cdcd000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359c9d247580cdcd000007", "original_id"=>"53359c9d247580cdcd00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3130ms) 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.8688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002", "_id"=>{"$ne"=>"53359c9d247580cdcd00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359c9d247580cdcd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c9d247580cdcd00000e", "parent_ids"=>["53359c9d247580cdcd000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9d247580cdcd00000e"]}}, "$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"=>"53359c9d247580cdcd00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5667ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9d247580cdcd00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c9d247580cdcd00000e", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359c9d247580cdcd00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359c9d247580cdcd000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c9d247580cdcd00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2410ms) 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.9232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002", "_id"=>{"$ne"=>"53359c9d247580cdcd000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002"}, "$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"=>"53359c9d247580cdcd000004"}]}]}, "$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"=>"53359c9d247580cdcd000010", "parent_ids"=>["53359c9d247580cdcd000004"], "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"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:29 UTC, "created_at"=>2014-03-28 16:00:29 UTC}] flags=[] (0.4988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9d247580cdcd000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359c9d247580cdcd000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4883ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9d247580cdcd000010"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002", "_id"=>{"$ne"=>"53359c9d247580cdcd000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359c9d247580cdcd000004"}]}]}, "$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"=>"53359c9d247580cdcd000011", "parent_ids"=>["53359c9d247580cdcd000004"], "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"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9d247580cdcd000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359c9d247580cdcd000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9d247580cdcd000011"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002", "_id"=>{"$ne"=>"53359c9e247580cdcd000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359c9d247580cdcd000004", "site_id"=>"53359c9d247580cdcd000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359c9d247580cdcd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c9e247580cdcd000012", "parent_ids"=>["53359c9d247580cdcd000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359c9d247580cdcd000002", "parent_id"=>"53359c9d247580cdcd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC}] flags=[] (0.3970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9e247580cdcd000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359c9e247580cdcd000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9e247580cdcd000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c9e247580cdcd000012", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359c9e247580cdcd000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359c9d247580cdcd000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c9e247580cdcd000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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={"$query"=>{"_id"=>"53359c9d247580cdcd000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5672ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359c9d247580cdcd000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:00:30 UTC}} flags=[] (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002", "template_dependencies.en"=>{"$in"=>["53359c9d247580cdcd000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c9d247580cdcd000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9699ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359c9d247580cdcd000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359c9d247580cdcd000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2131ms) 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.9983ms) 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.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359c9e247580cdcd000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:00:29 UTC, "updated_at"=>2014-03-28 16:00:30 UTC, "memberships"=>[{"_id"=>"53359c9e247580cdcd000015", "role"=>"admin", "account_id"=>"53359c9d247580cdcd000001"}]}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9e247580cdcd000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9e247580cdcd000014", "_id"=>{"$ne"=>"53359c9e247580cdcd000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c9e247580cdcd000016", "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"=>"53359c9e247580cdcd000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC}] flags=[] (0.2487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9e247580cdcd000014", "template_dependencies.en"=>{"$in"=>["53359c9e247580cdcd000016"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"53359c9e247580cdcd000016"}, "$orderby"=>{"position"=>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=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9e247580cdcd000016"]}} 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"=>"53359c9e247580cdcd000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4957ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c9e247580cdcd000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359c9e247580cdcd000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c9e247580cdcd000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359c9e247580cdcd000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9e247580cdcd000014", "_id"=>{"$ne"=>"53359c9e247580cdcd000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9e247580cdcd000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c9e247580cdcd000018", "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"=>"53359c9e247580cdcd000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9e247580cdcd000014", "template_dependencies.en"=>{"$in"=>["53359c9e247580cdcd000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53359c9e247580cdcd000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9e247580cdcd000018"]}} 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=locomotive_pages selector={"site_id"=>"53359c9e247580cdcd000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9e247580cdcd000014", "_id"=>{"$ne"=>"53359c9e247580cdcd000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359c9e247580cdcd000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8161ms) 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.3462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359c9e247580cdcd000019", "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"=>"53359c9e247580cdcd000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9e247580cdcd000014", "template_dependencies.en"=>{"$in"=>["53359c9e247580cdcd000019"]}}, "$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"=>"53359c9e247580cdcd000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359c9e247580cdcd000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359c9e247580cdcd000019", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359c9e247580cdcd00001a", "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=>"53359c9e247580cdcd000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359c9e247580cdcd000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359c9e247580cdcd000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359c9e247580cdcd00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359c9e247580cdcd000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359c9e247580cdcd00001c", "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC, "entries_custom_fields"=>[{"_id"=>"53359c9e247580cdcd00001c", "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.3839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359c9e247580cdcd00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359c9e247580cdcd00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359c9e247580cdcd00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6058ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359c9e247580cdcd00001b"]}}} (0.7691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359c9e247580cdcd00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359c9e247580cdcd00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359c9e247580cdcd00001b", "content_type_id"=>"53359c9e247580cdcd00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359c9e247580cdcd000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:00:30 UTC, "created_at"=>2014-03-28 16:00:30 UTC}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359c9e247580cdcd00001b", "original_id"=>"53359c9e247580cdcd00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359c9e247580cdcd00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359c9e247580cdcd000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359c9e247580cdcd00001b", "original_id"=>"53359c9e247580cdcd00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2880ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:00:31 +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.7207ms) 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.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359c9d247580cdcd000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4752ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.3ms) Completed 200 OK in 37.0ms (Views: 29.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:00:31 +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-03-28 17:00:31 +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-03-28 17:00:31 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:00:31 +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.8068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359c9d247580cdcd000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7288ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359c9d247580cdcd000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:00:31 UTC, "updated_at"=>2014-03-28 16:00:31 UTC}} flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359c9d247580cdcd000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:00:31 UTC, "current_sign_in_at"=>2014-03-28 16:00:31 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 16:00:31 UTC}} flags=[] (0.1719ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 29.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:00:31 +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.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359c9d247580cdcd000001"}, "$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_accounts selector={"_id"=>{"$in"=>["53359c9d247580cdcd000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.1041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.7379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.5999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359c9d247580cdcd000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8349ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (28.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"53359c9d247580cdcd000001", :role=>:admin}}}} (0.8860ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (19.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359c9d247580cdcd000001"}} (0.5422ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359c9d247580cdcd000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6971ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (5.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 149.3ms (Views: 127.9ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:00:31 +0100 Served asset /locomotive.js - 200 OK (198ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:00:32 +0100 Served asset /locomotive.css - 200 OK (57ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 17:00:32 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 17:00:32 +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-03-28 17:00:32 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:00:32 +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.9019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359c9d247580cdcd000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359c9d247580cdcd000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.0898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.1778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359c9d247580cdcd000002"}, "$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.5608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359c9d247580cdcd000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9301ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (17.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (1.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (14.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (36.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359c9d247580cdcd000001", :role=>:admin}}}} (0.7730ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (7.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359c9d247580cdcd000001"}} (0.4389ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359c9d247580cdcd000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5651ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_header.html.haml (0.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 78.1ms (Views: 59.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.8130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.1031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.2589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8850ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.6277ms) 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.8132ms) 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.5450ms) 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.7827ms) 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.5598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53359dad2475809bfb000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2408476ec6561de220683e73c85e60d52c0459ae", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"U4ReWQG1BrQXPsK4Z4mx", "api_key"=>"ea5ffd4f07f662156ac8063a4c43fb868a163aa5", "updated_at"=>2014-03-28 16:05:01 UTC, "created_at"=>2014-03-28 16:05:01 UTC}] flags=[] (0.1979ms) 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} (16.1748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359dad2475809bfb000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:05:01 UTC, "updated_at"=>2014-03-28 16:05:01 UTC, "memberships"=>[{"_id"=>"53359dad2475809bfb000003", "role"=>"admin", "account_id"=>"53359dad2475809bfb000001"}]}] flags=[] (0.2730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dad2475809bfb000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359dad2475809bfb000002", "_id"=>{"$ne"=>"53359dae2475809bfb000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53359dae2475809bfb000004", "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"=>"53359dad2475809bfb000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359dae2475809bfb000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.9420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359dae2475809bfb000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb000004", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359dad2475809bfb000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dad2475809bfb000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359dad2475809bfb000002", "_id"=>{"$ne"=>"53359dae2475809bfb000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359dad2475809bfb000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53359dae2475809bfb000006", "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"=>"53359dad2475809bfb000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359dae2475809bfb000006"}, "$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"=>["53359dae2475809bfb000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359dad2475809bfb000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4683ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359dae2475809bfb000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359dad2475809bfb000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359dae2475809bfb000008", "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC, "entries_custom_fields"=>[{"_id"=>"53359dae2475809bfb000008", "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.2422ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53359dae2475809bfb000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53359dae2475809bfb000009", "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", "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}}} flags=[] (0.1884ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359dae2475809bfb00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53359dae2475809bfb000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5703ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb000007"]}}} (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359dae2475809bfb00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359dae2475809bfb000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359dae2475809bfb000007", "content_type_id"=>"53359dae2475809bfb000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53359dad2475809bfb000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359dae2475809bfb000007", "original_id"=>"53359dae2475809bfb00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53359dad2475809bfb000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359dae2475809bfb000007", "original_id"=>"53359dae2475809bfb00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359dae2475809bfb00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb000007"]}} 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"=>"53359dae2475809bfb000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb000007"]}}} (0.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb000007"]}}} (0.3030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359dae2475809bfb00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53359dae2475809bfb000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359dae2475809bfb000007", "content_type_id"=>"53359dae2475809bfb000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53359dad2475809bfb000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 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::ContentEntry53359dae2475809bfb000007", "original_id"=>"53359dae2475809bfb00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53359dad2475809bfb000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359dae2475809bfb000007", "original_id"=>"53359dae2475809bfb00000c", "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.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "$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"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002", "_id"=>{"$ne"=>"53359dae2475809bfb00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53359dae2475809bfb000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359dae2475809bfb00000e", "parent_ids"=>["53359dae2475809bfb000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb00000e"]}}, "$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"=>"53359dae2475809bfb00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359dae2475809bfb00000e"]}} 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"=>"53359dae2475809bfb00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53359dad2475809bfb000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1659ms) 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.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "$or"=>[{"slug.en"=>"unpublished-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"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002", "_id"=>{"$ne"=>"53359dae2475809bfb000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359dae2475809bfb000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359dae2475809bfb000010", "parent_ids"=>["53359dae2475809bfb000004"], "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"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359dae2475809bfb000010"}, "$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"=>["53359dae2475809bfb000010"]}} 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.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002", "_id"=>{"$ne"=>"53359dae2475809bfb000011"}, "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"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359dae2475809bfb000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359dae2475809bfb000011", "parent_ids"=>["53359dae2475809bfb000004"], "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"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000011"]}}, "$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"=>"53359dae2475809bfb000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359dae2475809bfb000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) 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"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002", "_id"=>{"$ne"=>"53359dae2475809bfb000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53359dae2475809bfb000004", "site_id"=>"53359dad2475809bfb000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53359dae2475809bfb000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359dae2475809bfb000012", "parent_ids"=>["53359dae2475809bfb000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53359dad2475809bfb000002", "parent_id"=>"53359dae2475809bfb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000012"]}}, "$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"=>"53359dae2475809bfb000012"}, "$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"=>["53359dae2475809bfb000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53359dad2475809bfb000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "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_sites selector={"$query"=>{"_id"=>"53359dad2475809bfb000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53359dae2475809bfb000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:05:02 UTC}} flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000004"]}}, "$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"=>"53359dae2475809bfb000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5171ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53359dae2475809bfb000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53359dad2475809bfb000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1440ms) 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.5050ms) 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.3583ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53359dae2475809bfb000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:05:01 UTC, "updated_at"=>2014-03-28 16:05:02 UTC, "memberships"=>[{"_id"=>"53359dae2475809bfb000015", "role"=>"admin", "account_id"=>"53359dad2475809bfb000001"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dae2475809bfb000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"53359dae2475809bfb000014", "_id"=>{"$ne"=>"53359dae2475809bfb000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359dae2475809bfb000016", "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"=>"53359dae2475809bfb000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.3147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dae2475809bfb000014", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000016"]}}, "$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"=>"53359dae2475809bfb000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359dae2475809bfb000016"]}} 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"=>"53359dae2475809bfb000016", "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"=>"53359dae2475809bfb000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53359dae2475809bfb000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53359dae2475809bfb000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53359dae2475809bfb000014", "_id"=>{"$ne"=>"53359dae2475809bfb000018"}, "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"=>"53359dae2475809bfb000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53359dae2475809bfb000018", "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"=>"53359dae2475809bfb000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dae2475809bfb000014", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000018"]}}, "$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"=>"53359dae2475809bfb000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53359dae2475809bfb000018"]}} 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=locomotive_pages selector={"site_id"=>"53359dae2475809bfb000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53359dae2475809bfb000014", "_id"=>{"$ne"=>"53359dae2475809bfb000019"}, "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"=>nil, "site_id"=>"53359dae2475809bfb000014"}, "$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.2482ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53359dae2475809bfb000019", "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"=>"53359dae2475809bfb000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dae2475809bfb000014", "template_dependencies.en"=>{"$in"=>["53359dae2475809bfb000019"]}}, "$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"=>"53359dae2475809bfb000019"}, "$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"=>["53359dae2475809bfb000019"]}} 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"=>"53359dae2475809bfb000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb00001a", "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=>"53359dae2475809bfb000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53359dae2475809bfb000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53359dae2475809bfb000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4277ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53359dae2475809bfb00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53359dae2475809bfb000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53359dae2475809bfb00001c", "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC, "entries_custom_fields"=>[{"_id"=>"53359dae2475809bfb00001c", "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.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53359dae2475809bfb00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb00001b"]}} 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"=>"53359dae2475809bfb00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53359dae2475809bfb00001b"]}}} (0.4971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53359dae2475809bfb00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53359dae2475809bfb00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53359dae2475809bfb00001b", "content_type_id"=>"53359dae2475809bfb00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53359dae2475809bfb000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:05:02 UTC, "created_at"=>2014-03-28 16:05:02 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53359dae2475809bfb00001b", "original_id"=>"53359dae2475809bfb00001d", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53359dae2475809bfb00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53359dae2475809bfb000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53359dae2475809bfb00001b", "original_id"=>"53359dae2475809bfb00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2329ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:05:03 +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.7670ms) 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.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359dad2475809bfb000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4764ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.7ms) Completed 200 OK in 44.0ms (Views: 37.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:05:03 +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-03-28 17:05:03 +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-03-28 17:05:04 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:05:04 +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.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53359dad2475809bfb000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6542ms) 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.6759ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359dad2475809bfb000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:05:04 UTC, "updated_at"=>2014-03-28 16:05:04 UTC}} flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53359dad2475809bfb000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:05:04 UTC, "current_sign_in_at"=>2014-03-28 16:05:04 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 16:05:04 UTC}} flags=[] (0.1593ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:05:04 +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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359dad2475809bfb000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359dad2475809bfb000001"]}} 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"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.1420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.0779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.8006ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.4122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53359dae2475809bfb000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6979ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359dad2475809bfb000001", :role=>:admin}}}} (0.6411ms) Rendered locomotive/shared/_main_app_head.html.haml (1.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53359dad2475809bfb000001"}} (0.7060ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359dad2475809bfb000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.1ms) Rendered locomotive/shared/_main_app_header.html.haml (6.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (34.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 144.3ms (Views: 128.0ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:05:04 +0100 Served asset /locomotive.css - 200 OK (88ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:05:04 +0100 Served asset /locomotive.js - 200 OK (190ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 17:05:04 +0100 Compiled locomotive/views/shared/_search_bar_view.js (111ms) (pid 10943) Compiled locomotive/typeahead.js (1ms) (pid 10943) Compiled locomotive/search_bar.js (292ms) (pid 10943) Served asset /locomotive/search_bar.js - 200 OK (300ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:05:04 +0100 Compiled locomotive/search_bar.css (954ms) (pid 10943) Served asset /locomotive/search_bar.css - 200 OK (961ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 17:05:05 +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-03-28 17:05:05 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 17:05:05 +0100 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:05: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 (0.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53359dad2475809bfb000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53359dad2475809bfb000001"]}} 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"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.5340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.0293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53359dad2475809bfb000002"}, "$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"=>"53359dae2475809bfb000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6740ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53359dad2475809bfb000001", :role=>:admin}}}} (0.5651ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359dad2475809bfb000001"}} (0.4590ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53359dad2475809bfb000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 55.9ms (Views: 40.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.6840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3530ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3387ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5543ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.1377ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9520ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8368ms) 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.5829ms) 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.6161ms) 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.4048ms) 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} (1.2021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335a2e92475804f27000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a9633b40d093a2bdc759f53130bfb5744cf39eb3", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"9avMYzUANk48bnDaxz1q", "api_key"=>"a4014cc359a604cfa75d67bb46eeb879c7e3f96a", "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 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} (10.6041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a2e92475804f27000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:27:21 UTC, "updated_at"=>2014-03-28 16:27:21 UTC, "memberships"=>[{"_id"=>"5335a2e92475804f27000003", "role"=>"admin", "account_id"=>"5335a2e92475804f27000001"}]}] flags=[] (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2e92475804f27000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.0082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a2e92475804f27000002", "_id"=>{"$ne"=>"5335a2e92475804f27000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2e92475804f27000004", "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"=>"5335a2e92475804f27000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 UTC}] flags=[] (0.4900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2e92475804f27000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2e92475804f27000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a2e92475804f27000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a2e92475804f27000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a2e92475804f27000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a2e92475804f27000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a2e92475804f27000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2e92475804f27000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a2e92475804f27000002", "_id"=>{"$ne"=>"5335a2e92475804f27000006"}, "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"=>"5335a2e92475804f27000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2e92475804f27000006", "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"=>"5335a2e92475804f27000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 UTC}] flags=[] (0.3650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2e92475804f27000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"5335a2e92475804f27000006"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5335a2e92475804f27000006"]}} 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"=>"5335a2e92475804f27000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a2e92475804f27000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a2e92475804f27000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a2e92475804f27000008", "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 UTC, "entries_custom_fields"=>[{"_id"=>"5335a2e92475804f27000008", "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.4222ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335a2e92475804f27000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335a2e92475804f27000009", "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", "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 UTC}}} flags=[] (0.3111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a2e92475804f2700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a2e92475804f27000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a2e92475804f27000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a2e92475804f27000007"]}}} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a2e92475804f2700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a2e92475804f27000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a2e92475804f27000007", "content_type_id"=>"5335a2e92475804f27000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335a2e92475804f27000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a2e92475804f27000007", "original_id"=>"5335a2e92475804f2700000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5622ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a2e92475804f2700000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335a2e92475804f27000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a2e92475804f27000007", "original_id"=>"5335a2e92475804f2700000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a2e92475804f2700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a2e92475804f27000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a2e92475804f27000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a2e92475804f27000007"]}}} (0.3839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a2e92475804f27000007"]}}} (0.4120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a2e92475804f27000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a2e92475804f2700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a2e92475804f27000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a2e92475804f27000007", "content_type_id"=>"5335a2e92475804f27000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335a2e92475804f27000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 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::ContentEntry5335a2e92475804f27000007", "original_id"=>"5335a2e92475804f2700000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a2e92475804f2700000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335a2e92475804f27000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a2e92475804f27000007", "original_id"=>"5335a2e92475804f2700000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (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.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002", "_id"=>{"$ne"=>"5335a2e92475804f2700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a2e92475804f27000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2e92475804f2700000e", "parent_ids"=>["5335a2e92475804f27000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:21 UTC, "created_at"=>2014-03-28 16:27:21 UTC}] flags=[] (0.5128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2e92475804f2700000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2e92475804f2700000e"}, "$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"=>["5335a2e92475804f2700000e"]}} 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"=>"5335a2e92475804f2700000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a2e92475804f2700000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335a2e92475804f27000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a2e92475804f2700000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1669ms) 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.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002", "_id"=>{"$ne"=>"5335a2ea2475804f27000010"}, "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"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a2e92475804f27000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2ea2475804f27000010", "parent_ids"=>["5335a2e92475804f27000004"], "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"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2ea2475804f27000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335a2ea2475804f27000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9019ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a2ea2475804f27000010"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002", "_id"=>{"$ne"=>"5335a2ea2475804f27000011"}, "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"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a2e92475804f27000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2ea2475804f27000011", "parent_ids"=>["5335a2e92475804f27000004"], "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"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2ea2475804f27000011"]}}, "$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"=>"5335a2ea2475804f27000011"}, "$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"=>["5335a2ea2475804f27000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1178ms) 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.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002", "_id"=>{"$ne"=>"5335a2ea2475804f27000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2e92475804f27000004", "site_id"=>"5335a2e92475804f27000002"}, "$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"=>"5335a2e92475804f27000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5357ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2ea2475804f27000012", "parent_ids"=>["5335a2e92475804f27000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335a2e92475804f27000002", "parent_id"=>"5335a2e92475804f27000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2ea2475804f27000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2ea2475804f27000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a2ea2475804f27000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a2ea2475804f27000012", "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"=>"5335a2ea2475804f27000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335a2e92475804f27000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a2ea2475804f27000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\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"=>"5335a2e92475804f27000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5335a2e92475804f27000002"}, "$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"=>"5335a2e92475804f27000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:27:22 UTC}} flags=[] (0.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002", "template_dependencies.en"=>{"$in"=>["5335a2e92475804f27000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a2e92475804f27000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335a2e92475804f27000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335a2e92475804f27000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2508ms) 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.5519ms) 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.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a2ea2475804f27000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:27:21 UTC, "updated_at"=>2014-03-28 16:27:22 UTC, "memberships"=>[{"_id"=>"5335a2ea2475804f27000015", "role"=>"admin", "account_id"=>"5335a2e92475804f27000001"}]}] flags=[] (0.5772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2ea2475804f27000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a2ea2475804f27000014", "_id"=>{"$ne"=>"5335a2ea2475804f27000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2ea2475804f27000016", "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"=>"5335a2ea2475804f27000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2ea2475804f27000014", "template_dependencies.en"=>{"$in"=>["5335a2ea2475804f27000016"]}}, "$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"=>"5335a2ea2475804f27000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4828ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a2ea2475804f27000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a2ea2475804f27000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"5335a2ea2475804f27000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a2ea2475804f27000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a2ea2475804f27000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a2ea2475804f27000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a2ea2475804f27000014", "_id"=>{"$ne"=>"5335a2ea2475804f27000018"}, "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"=>nil, "site_id"=>"5335a2ea2475804f27000014"}, "$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"=>"5335a2ea2475804f27000018", "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"=>"5335a2ea2475804f27000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2ea2475804f27000014", "template_dependencies.en"=>{"$in"=>["5335a2ea2475804f27000018"]}}, "$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"=>"5335a2ea2475804f27000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a2ea2475804f27000018"]}} 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={"site_id"=>"5335a2ea2475804f27000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a2ea2475804f27000014", "_id"=>{"$ne"=>"5335a2ea2475804f27000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"5335a2ea2475804f27000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a2ea2475804f27000019", "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"=>"5335a2ea2475804f27000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2ea2475804f27000014", "template_dependencies.en"=>{"$in"=>["5335a2ea2475804f27000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3273ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a2ea2475804f27000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a2ea2475804f27000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a2ea2475804f27000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a2ea2475804f2700001a", "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=>"5335a2ea2475804f27000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a2ea2475804f27000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a2ea2475804f27000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a2ea2475804f2700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a2ea2475804f27000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a2ea2475804f2700001c", "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC, "entries_custom_fields"=>[{"_id"=>"5335a2ea2475804f2700001c", "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.3326ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a2ea2475804f2700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a2ea2475804f2700001b"]}} 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_content_entries selector={"content_type_id"=>"5335a2ea2475804f2700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a2ea2475804f2700001b"]}}} (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a2ea2475804f2700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a2ea2475804f2700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a2ea2475804f2700001b", "content_type_id"=>"5335a2ea2475804f2700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335a2ea2475804f27000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:27:22 UTC, "created_at"=>2014-03-28 16:27:22 UTC}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a2ea2475804f2700001b", "original_id"=>"5335a2ea2475804f2700001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a2ea2475804f2700001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335a2ea2475804f27000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a2ea2475804f2700001b", "original_id"=>"5335a2ea2475804f2700001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1462ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:27:23 +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.8531ms) 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.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a2e92475804f27000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4661ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (35.7ms) Completed 200 OK in 65.7ms (Views: 58.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:27:23 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 17:27:23 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 17:27:23 +0100 Served asset /locomotive/background/body.png - 200 OK (4ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:27:23 +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.9971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a2e92475804f27000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7501ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a2e92475804f27000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:27:23 UTC, "updated_at"=>2014-03-28 16:27:23 UTC}} flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a2e92475804f27000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:27:23 UTC, "current_sign_in_at"=>2014-03-28 16:27:23 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 16:27:23 UTC}} flags=[] (0.1762ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 27.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:27:23 +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.7448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a2e92475804f27000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5335a2e92475804f27000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.2627ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a2e92475804f27000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7591ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (30.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (4.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (21.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (75.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (2.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5335a2e92475804f27000001", :role=>:admin}}}} (0.6609ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a2e92475804f27000001"}} (0.5980ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (4.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5335a2e92475804f27000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1158ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (8.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.9ms) Rendered locomotive/shared/_main_app_header.html.haml (7.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (46.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (7.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (2.2ms) Completed 200 OK in 214.2ms (Views: 183.4ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:27:24 +0100 Served asset /locomotive.css - 200 OK (98ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:27:24 +0100 Served asset /locomotive.js - 200 OK (290ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 17:27:24 +0100 Served asset /locomotive/search_bar.js - 200 OK (14ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:27:24 +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-03-28 17:27:24 +0100 Served asset /locomotive/list/item-left.png - 200 OK (4ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 17:27:24 +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-03-28 17:27:24 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:27:24 +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.6391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a2e92475804f27000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a2e92475804f27000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a2e92475804f27000002"}, "$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.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a2e92475804f27000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9089ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (17.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (29.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a2e92475804f27000001", :role=>:admin}}}} (0.4780ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a2e92475804f27000001"}} (0.3922ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a2e92475804f27000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5038ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (1.1ms) Rendered locomotive/shared/_main_app_header.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 75.6ms (Views: 51.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.7241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.1802ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.4250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9620ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9470ms) 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.5651ms) 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.5412ms) 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.7808ms) 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.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335a30924758074ec000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"be368cab83cceb63e5de6ec3f352442d8c1aa651", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"xwg5rRpC9Gk8puszosz1", "api_key"=>"1fc77c8e34e5c39463ee2d6fd6728919257ae02b", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 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.8261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a30924758074ec000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:27:52 UTC, "updated_at"=>2014-03-28 16:27:53 UTC, "memberships"=>[{"_id"=>"5335a30924758074ec000003", "role"=>"admin", "account_id"=>"5335a30924758074ec000001"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000002", "_id"=>{"$ne"=>"5335a30924758074ec000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335a30924758074ec000004", "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"=>"5335a30924758074ec000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a30924758074ec000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000004", "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"=>"5335a30924758074ec000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a30924758074ec000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6273ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000002", "_id"=>{"$ne"=>"5335a30924758074ec000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1227ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7081ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a30924758074ec000006", "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"=>"5335a30924758074ec000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000006"]}}, "$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"=>"5335a30924758074ec000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a30924758074ec000006"]}} 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_content_types selector={"site_id"=>"5335a30924758074ec000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a30924758074ec000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a30924758074ec000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a30924758074ec000008", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC, "entries_custom_fields"=>[{"_id"=>"5335a30924758074ec000008", "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.2460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335a30924758074ec000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335a30924758074ec000009", "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", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}}} flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a30924758074ec00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a30924758074ec000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4859ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec000007"]}}} (0.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a30924758074ec00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a30924758074ec000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a30924758074ec000007", "content_type_id"=>"5335a30924758074ec000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335a30924758074ec000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.1643ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a30924758074ec000007", "original_id"=>"5335a30924758074ec00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4947ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a30924758074ec00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335a30924758074ec000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a30924758074ec000007", "original_id"=>"5335a30924758074ec00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a30924758074ec00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a30924758074ec000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4468ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec000007"]}}} (0.4210ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec000007"]}}} (0.2868ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4542ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a30924758074ec00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a30924758074ec000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a30924758074ec000007", "content_type_id"=>"5335a30924758074ec000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335a30924758074ec000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 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::ContentEntry5335a30924758074ec000007", "original_id"=>"5335a30924758074ec00000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a30924758074ec00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335a30924758074ec000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a30924758074ec000007", "original_id"=>"5335a30924758074ec00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.4380ms) 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.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002", "_id"=>{"$ne"=>"5335a30924758074ec00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a30924758074ec000004"}]}]}, "$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"=>"5335a30924758074ec00000e", "parent_ids"=>["5335a30924758074ec000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec00000e"]}}, "$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"=>"5335a30924758074ec00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a30924758074ec00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7792ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a30924758074ec00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335a30924758074ec000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.3262ms) 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.8068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002", "_id"=>{"$ne"=>"5335a30924758074ec000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a30924758074ec000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a30924758074ec000010", "parent_ids"=>["5335a30924758074ec000004"], "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"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000010"]}}, "$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"=>"5335a30924758074ec000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a30924758074ec000010"]}} 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_pages selector={"$query"=>{"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_pages selector={"site_id"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002", "_id"=>{"$ne"=>"5335a30924758074ec000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7486ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4673ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a30924758074ec000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5335a30924758074ec000011", "parent_ids"=>["5335a30924758074ec000004"], "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"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000011"}, "$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"=>["5335a30924758074ec000011"]}} 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.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5457ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002", "_id"=>{"$ne"=>"5335a30924758074ec000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000004", "site_id"=>"5335a30924758074ec000002"}, "$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"=>"5335a30924758074ec000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4933ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a30924758074ec000012", "parent_ids"=>["5335a30924758074ec000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335a30924758074ec000002", "parent_id"=>"5335a30924758074ec000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000012"]}}, "$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"=>"5335a30924758074ec000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a30924758074ec000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000012", "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"=>"5335a30924758074ec000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335a30924758074ec000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "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_sites selector={"$query"=>{"_id"=>"5335a30924758074ec000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3929ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335a30924758074ec000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:27:53 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335a30924758074ec000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335a30924758074ec000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1550ms) 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.5612ms) 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.3271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a30924758074ec000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:27:52 UTC, "updated_at"=>2014-03-28 16:27:53 UTC, "memberships"=>[{"_id"=>"5335a30924758074ec000015", "role"=>"admin", "account_id"=>"5335a30924758074ec000001"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000014", "_id"=>{"$ne"=>"5335a30924758074ec000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335a30924758074ec000016", "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"=>"5335a30924758074ec000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000014", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a30924758074ec000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a30924758074ec000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a30924758074ec000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a30924758074ec000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000014", "_id"=>{"$ne"=>"5335a30924758074ec000018"}, "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"=>"5335a30924758074ec000014"}, "$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"=>"5335a30924758074ec000018", "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"=>"5335a30924758074ec000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.3109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000014", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000018"}, "$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"=>["5335a30924758074ec000018"]}} 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={"site_id"=>"5335a30924758074ec000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000014", "_id"=>{"$ne"=>"5335a30924758074ec000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0397ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a30924758074ec000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6309ms) 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.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a30924758074ec000019", "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"=>"5335a30924758074ec000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000014", "template_dependencies.en"=>{"$in"=>["5335a30924758074ec000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a30924758074ec000019"}, "$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"=>["5335a30924758074ec000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a30924758074ec00001a", "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=>"5335a30924758074ec000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a30924758074ec000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a30924758074ec000014", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5335a30924758074ec00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a30924758074ec000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a30924758074ec00001c", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 UTC, "entries_custom_fields"=>[{"_id"=>"5335a30924758074ec00001c", "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.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a30924758074ec00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a30924758074ec00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4673ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a30924758074ec00001b"]}}} (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a30924758074ec00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a30924758074ec00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a30924758074ec00001b", "content_type_id"=>"5335a30924758074ec00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335a30924758074ec000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:27:53 UTC, "created_at"=>2014-03-28 16:27:53 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::ContentEntry5335a30924758074ec00001b", "original_id"=>"5335a30924758074ec00001d", "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"=>"5335a30924758074ec00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335a30924758074ec000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a30924758074ec00001b", "original_id"=>"5335a30924758074ec00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1612ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:27: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} (0.9227ms) 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.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a30924758074ec000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4468ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.8ms) Completed 200 OK in 36.8ms (Views: 30.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:27: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-03-28 17:27:55 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 17:27:55 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:27: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.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a30924758074ec000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6099ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a30924758074ec000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:27:55 UTC, "updated_at"=>2014-03-28 16:27:55 UTC}} flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a30924758074ec000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:27:55 UTC, "current_sign_in_at"=>2014-03-28 16:27: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-03-28 16:27:55 UTC}} flags=[] (0.1500ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:27: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.6840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a30924758074ec000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a30924758074ec000001"]}} 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"=>"5335a30924758074ec000002"}, "$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.1811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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.1749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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.8559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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"=>"5335a30924758074ec000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8240ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (46.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a30924758074ec000001", :role=>:admin}}}} (0.6049ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a30924758074ec000001"}} (0.5848ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a30924758074ec000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.9ms) 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.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (29.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 127.2ms (Views: 110.8ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:27:55 +0100 Served asset /locomotive.css - 200 OK (56ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:27:55 +0100 Served asset /locomotive.js - 200 OK (122ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:27: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-03-28 17:27:55 +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-03-28 17:27:55 +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-03-28 17:27:55 +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-03-28 17:27:55 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:27: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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a30924758074ec000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a30924758074ec000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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.7381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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.5519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a30924758074ec000002"}, "$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.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a30924758074ec000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7949ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a30924758074ec000001", :role=>:admin}}}} (0.4880ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (6.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a30924758074ec000001"}} (0.3889ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a30924758074ec000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (1.0ms) Rendered locomotive/shared/_main_app_header.html.haml (1.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.5ms) Completed 200 OK in 61.5ms (Views: 45.9ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1089ms) 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.6962ms) 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.9968ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3609ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.1830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2949ms) 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.9401ms) 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.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335a314247580fefa000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b26b099d76d00c05fb9dd7ea9aa3e78116ce5a24", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"WPLcsyKzAGpZgFR1GL7V", "api_key"=>"e97514e609c7c5bf28f4ea043f4dba49ff25a7b7", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.1490ms) 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.7818ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a314247580fefa000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:28:04 UTC, "updated_at"=>2014-03-28 16:28:04 UTC, "memberships"=>[{"_id"=>"5335a314247580fefa000003", "role"=>"admin", "account_id"=>"5335a314247580fefa000001"}]}] flags=[] (0.3152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a314247580fefa000002", "_id"=>{"$ne"=>"5335a314247580fefa000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335a314247580fefa000004", "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"=>"5335a314247580fefa000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000004", "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"=>"5335a314247580fefa000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a314247580fefa000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5335a314247580fefa000002", "_id"=>{"$ne"=>"5335a314247580fefa000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a314247580fefa000002"}, "$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"=>"5335a314247580fefa000006", "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"=>"5335a314247580fefa000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000006"}, "$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"=>["5335a314247580fefa000006"]}} 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"=>"5335a314247580fefa000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a314247580fefa000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a314247580fefa000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a314247580fefa000008", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC, "entries_custom_fields"=>[{"_id"=>"5335a314247580fefa000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335a314247580fefa000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335a314247580fefa000009", "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", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}}} flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a314247580fefa00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9117ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a314247580fefa000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa000007"]}}} (0.5429ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a314247580fefa00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a314247580fefa000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a314247580fefa000007", "content_type_id"=>"5335a314247580fefa000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335a314247580fefa000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 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::ContentEntry5335a314247580fefa000007", "original_id"=>"5335a314247580fefa00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a314247580fefa00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335a314247580fefa000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a314247580fefa000007", "original_id"=>"5335a314247580fefa00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a314247580fefa00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa000007"]}} 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"=>"5335a314247580fefa000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa000007"]}}} (0.7479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa000007"]}}} (0.5572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.1499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a314247580fefa00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a314247580fefa000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a314247580fefa000007", "content_type_id"=>"5335a314247580fefa000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335a314247580fefa000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.3073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a314247580fefa000007", "original_id"=>"5335a314247580fefa00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a314247580fefa00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335a314247580fefa000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a314247580fefa000007", "original_id"=>"5335a314247580fefa00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2670ms) 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.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002", "_id"=>{"$ne"=>"5335a314247580fefa00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a314247580fefa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5335a314247580fefa00000e", "parent_ids"=>["5335a314247580fefa000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa00000e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4382ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa00000e", "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"=>"5335a314247580fefa00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335a314247580fefa000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1681ms) 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.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002", "_id"=>{"$ne"=>"5335a314247580fefa000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a314247580fefa000004"}]}]}, "$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"=>"5335a314247580fefa000010", "parent_ids"=>["5335a314247580fefa000004"], "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"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa000010"]}} 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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002", "_id"=>{"$ne"=>"5335a314247580fefa000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a314247580fefa000004"}]}]}, "$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"=>"5335a314247580fefa000011", "parent_ids"=>["5335a314247580fefa000004"], "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"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000011"]}}, "$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"=>"5335a314247580fefa000011"}, "$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"=>["5335a314247580fefa000011"]}} 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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4807ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002", "_id"=>{"$ne"=>"5335a314247580fefa000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000004", "site_id"=>"5335a314247580fefa000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a314247580fefa000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5772ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a314247580fefa000012", "parent_ids"=>["5335a314247580fefa000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335a314247580fefa000002", "parent_id"=>"5335a314247580fefa000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000012"]}}, "$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"=>"5335a314247580fefa000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000012", "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"=>"5335a314247580fefa000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335a314247580fefa000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5335a314247580fefa000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335a314247580fefa000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:28:04 UTC}} flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335a314247580fefa000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335a314247580fefa000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2089ms) 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.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a314247580fefa000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:28:04 UTC, "updated_at"=>2014-03-28 16:28:04 UTC, "memberships"=>[{"_id"=>"5335a314247580fefa000015", "role"=>"admin", "account_id"=>"5335a314247580fefa000001"}]}] flags=[] (0.3183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5335a314247580fefa000014", "_id"=>{"$ne"=>"5335a314247580fefa000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a314247580fefa000016", "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"=>"5335a314247580fefa000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000014", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000016"]}}, "$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"=>"5335a314247580fefa000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000016", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a314247580fefa000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a314247580fefa000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a314247580fefa000014", "_id"=>{"$ne"=>"5335a314247580fefa000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a314247580fefa000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a314247580fefa000018", "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"=>"5335a314247580fefa000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000014", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000018"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a314247580fefa000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a314247580fefa000014", "_id"=>{"$ne"=>"5335a314247580fefa000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7997ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a314247580fefa000014"}, "$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.2968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a314247580fefa000019", "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"=>"5335a314247580fefa000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000014", "template_dependencies.en"=>{"$in"=>["5335a314247580fefa000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a314247580fefa000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a314247580fefa000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000019", "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"=>"5335a314247580fefa00001a", "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=>"5335a314247580fefa000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a314247580fefa000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a314247580fefa000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a314247580fefa00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a314247580fefa000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a314247580fefa00001c", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 UTC, "entries_custom_fields"=>[{"_id"=>"5335a314247580fefa00001c", "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.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a314247580fefa00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa00001b"]}} 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"=>"5335a314247580fefa00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a314247580fefa00001b"]}}} (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a314247580fefa00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a314247580fefa00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a314247580fefa00001b", "content_type_id"=>"5335a314247580fefa00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335a314247580fefa000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:28:04 UTC, "created_at"=>2014-03-28 16:28:04 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::ContentEntry5335a314247580fefa00001b", "original_id"=>"5335a314247580fefa00001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a314247580fefa00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335a314247580fefa000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a314247580fefa00001b", "original_id"=>"5335a314247580fefa00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1791ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:28: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 COMMAND database=admin command={:ismaster=>1} (0.8640ms) 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.6592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a314247580fefa000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5071ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.2ms) Completed 200 OK in 36.4ms (Views: 29.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:28:06 +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-03-28 17:28:06 +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-03-28 17:28:06 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:28: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.6959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a314247580fefa000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a314247580fefa000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:28:06 UTC, "updated_at"=>2014-03-28 16:28:06 UTC}} flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a314247580fefa000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:28:06 UTC, "current_sign_in_at"=>2014-03-28 16:28: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-03-28 16:28:06 UTC}} flags=[] (0.1659ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:28: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.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a314247580fefa000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a314247580fefa000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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.0588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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.2481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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"=>"5335a314247580fefa000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6580ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a314247580fefa000001", :role=>:admin}}}} (0.6192ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a314247580fefa000001"}} (0.5038ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a314247580fefa000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6011ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (3.7ms) Rendered locomotive/shared/_main_app_header.html.haml (5.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (28.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 129.3ms (Views: 111.5ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:28:06 +0100 Served asset /locomotive.js - 200 OK (105ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:28:06 +0100 Served asset /locomotive.css - 200 OK (35ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:28:06 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 17:28:06 +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-03-28 17:28:06 +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-03-28 17:28:07 +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-03-28 17:28:07 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:28:07 +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.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a314247580fefa000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a314247580fefa000001"]}} 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"=>"5335a314247580fefa000002"}, "$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.0810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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.0350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a314247580fefa000002"}, "$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.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a314247580fefa000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7589ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a314247580fefa000001", :role=>:admin}}}} (0.5748ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a314247580fefa000001"}} (0.4418ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a314247580fefa000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 58.2ms (Views: 43.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.7842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5581ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4312ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3766ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.2689ms) 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"} (1.0121ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1120ms) 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.8540ms) 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.5558ms) 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.0266ms) 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.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335a3c0247580095c000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"bf234e28631cb98688670c9a9998b0cec7c98e8c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"iRAKrRYm8seQ8K45m4z7", "api_key"=>"76b168951d29d3a28db59b7efc7d49851c5ab660", "updated_at"=>2014-03-28 16:30:56 UTC, "created_at"=>2014-03-28 16:30:56 UTC}] flags=[] (0.1957ms) 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.1141ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a3c0247580095c000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:30:56 UTC, "updated_at"=>2014-03-28 16:30:56 UTC, "memberships"=>[{"_id"=>"5335a3c0247580095c000003", "role"=>"admin", "account_id"=>"5335a3c0247580095c000001"}]}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c0247580095c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a3c0247580095c000002", "_id"=>{"$ne"=>"5335a3c0247580095c000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a3c0247580095c000004", "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"=>"5335a3c0247580095c000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:56 UTC, "created_at"=>2014-03-28 16:30:56 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c0247580095c000004"]}}, "$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"=>["5335a3c0247580095c000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a3c0247580095c000004", "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"=>"5335a3c0247580095c000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a3c0247580095c000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a3c0247580095c000004", "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"=>"5335a3c0247580095c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5335a3c0247580095c000002", "_id"=>{"$ne"=>"5335a3c0247580095c000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a3c0247580095c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335a3c0247580095c000006", "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"=>"5335a3c0247580095c000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:56 UTC, "created_at"=>2014-03-28 16:30:56 UTC}] flags=[] (0.2124ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c0247580095c000006"]}}, "$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"=>"5335a3c0247580095c000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a3c0247580095c000006"]}} 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"=>"5335a3c0247580095c000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a3c0247580095c000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a3c0247580095c000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a3c1247580095c000008", "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC, "entries_custom_fields"=>[{"_id"=>"5335a3c1247580095c000008", "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.2279ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335a3c0247580095c000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335a3c1247580095c000009", "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", "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}}} flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a3c1247580095c00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c0247580095c000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a3c0247580095c000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c0247580095c000007"]}}} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a3c1247580095c00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a3c0247580095c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a3c0247580095c000007", "content_type_id"=>"5335a3c0247580095c000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335a3c0247580095c000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 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::ContentEntry5335a3c0247580095c000007", "original_id"=>"5335a3c1247580095c00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a3c1247580095c00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335a3c0247580095c000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a3c0247580095c000007", "original_id"=>"5335a3c1247580095c00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a3c1247580095c00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c0247580095c000007"]}} 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"=>"5335a3c0247580095c000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4389ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c0247580095c000007"]}}} (0.4280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c0247580095c000007"]}}} (0.3319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c0247580095c000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a3c1247580095c00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a3c0247580095c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a3c0247580095c000007", "content_type_id"=>"5335a3c0247580095c000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335a3c0247580095c000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.1760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a3c0247580095c000007", "original_id"=>"5335a3c1247580095c00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a3c1247580095c00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335a3c0247580095c000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a3c0247580095c000007", "original_id"=>"5335a3c1247580095c00000c", "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.6292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002", "_id"=>{"$ne"=>"5335a3c1247580095c00000e"}, "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"=>"5335a3c0247580095c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a3c1247580095c00000e", "parent_ids"=>["5335a3c0247580095c000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c00000e"]}}, "$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"=>"5335a3c1247580095c00000e"}, "$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"=>["5335a3c1247580095c00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a3c1247580095c00000e", "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"=>"5335a3c1247580095c00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335a3c0247580095c000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a3c1247580095c00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2148ms) 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.5020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002", "_id"=>{"$ne"=>"5335a3c1247580095c000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a3c0247580095c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a3c1247580095c000010", "parent_ids"=>["5335a3c0247580095c000004"], "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"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.3748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c1247580095c000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a3c1247580095c000010"]}} 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.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002", "_id"=>{"$ne"=>"5335a3c1247580095c000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a3c0247580095c000004"}]}]}, "$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"=>"5335a3c1247580095c000011", "parent_ids"=>["5335a3c0247580095c000004"], "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"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c000011"]}}, "$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"=>"5335a3c1247580095c000011"}, "$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"=>["5335a3c1247580095c000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002", "_id"=>{"$ne"=>"5335a3c1247580095c000012"}, "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"=>"5335a3c0247580095c000004", "site_id"=>"5335a3c0247580095c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a3c0247580095c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5057ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a3c1247580095c000012", "parent_ids"=>["5335a3c0247580095c000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335a3c0247580095c000002", "parent_id"=>"5335a3c0247580095c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.2623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c000012"]}}, "$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"=>"5335a3c1247580095c000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a3c1247580095c000012"]}} 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"=>"5335a3c1247580095c000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a3c1247580095c000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335a3c0247580095c000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a3c1247580095c000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "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"=>"5335a3c0247580095c000002"}, "$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"=>"5335a3c0247580095c000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:30:57 UTC}} flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002", "template_dependencies.en"=>{"$in"=>["5335a3c0247580095c000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a3c0247580095c000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5577ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335a3c0247580095c000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335a3c0247580095c000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1662ms) 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.5190ms) 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.3221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a3c1247580095c000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:30:56 UTC, "updated_at"=>2014-03-28 16:30:57 UTC, "memberships"=>[{"_id"=>"5335a3c1247580095c000015", "role"=>"admin", "account_id"=>"5335a3c0247580095c000001"}]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c1247580095c000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"5335a3c1247580095c000014", "_id"=>{"$ne"=>"5335a3c1247580095c000016"}, "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"=>"5335a3c1247580095c000016", "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"=>"5335a3c1247580095c000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c1247580095c000014", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c000016"]}}, "$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"=>"5335a3c1247580095c000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a3c1247580095c000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a3c1247580095c000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a3c1247580095c000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a3c1247580095c000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a3c1247580095c000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a3c1247580095c000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a3c1247580095c000014", "_id"=>{"$ne"=>"5335a3c1247580095c000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a3c1247580095c000014"}, "$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"=>"5335a3c1247580095c000018", "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"=>"5335a3c1247580095c000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c1247580095c000014", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c000018"]}}, "$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"=>"5335a3c1247580095c000018"}, "$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"=>["5335a3c1247580095c000018"]}} 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"=>"5335a3c1247580095c000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a3c1247580095c000014", "_id"=>{"$ne"=>"5335a3c1247580095c000019"}, "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"=>"5335a3c1247580095c000014"}, "$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.2770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a3c1247580095c000019", "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"=>"5335a3c1247580095c000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c1247580095c000014", "template_dependencies.en"=>{"$in"=>["5335a3c1247580095c000019"]}}, "$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"=>"5335a3c1247580095c000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a3c1247580095c000019"]}} 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"=>"5335a3c1247580095c000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.5461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a3c1247580095c00001a", "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=>"5335a3c1247580095c000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a3c1247580095c000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a3c1247580095c000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7443ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a3c1247580095c00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a3c1247580095c000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a3c1247580095c00001c", "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC, "entries_custom_fields"=>[{"_id"=>"5335a3c1247580095c00001c", "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.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a3c1247580095c00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c1247580095c00001b"]}} 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"=>"5335a3c1247580095c00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a3c1247580095c00001b"]}}} (0.5412ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a3c1247580095c00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a3c1247580095c00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a3c1247580095c00001b", "content_type_id"=>"5335a3c1247580095c00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335a3c1247580095c000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:30:57 UTC, "created_at"=>2014-03-28 16:30:57 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a3c1247580095c00001b", "original_id"=>"5335a3c1247580095c00001d", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"5335a3c1247580095c00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335a3c1247580095c000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a3c1247580095c00001b", "original_id"=>"5335a3c1247580095c00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2177ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:30:58 +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.8447ms) 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.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a3c0247580095c000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5310ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.4ms) Completed 200 OK in 37.9ms (Views: 30.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:30:58 +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-03-28 17:30:58 +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-03-28 17:30:58 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:30:58 +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.5789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a3c0247580095c000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a3c0247580095c000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:30:58 UTC, "updated_at"=>2014-03-28 16:30:58 UTC}} flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a3c0247580095c000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:30:58 UTC, "current_sign_in_at"=>2014-03-28 16:30:58 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 16:30:58 UTC}} flags=[] (0.1659ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:30:58 +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.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a3c0247580095c000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a3c0247580095c000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.0757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.0870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a3c0247580095c000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7062ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (27.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a3c0247580095c000001", :role=>:admin}}}} (0.7243ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a3c0247580095c000001"}} (0.5679ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a3c0247580095c000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7119ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (6.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 136.0ms (Views: 119.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:30:58 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:30:58 +0100 Served asset /locomotive.js - 200 OK (101ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:30:58 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 17:30:58 +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-03-28 17:30:59 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 17:30:59 +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-03-28 17:30:59 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:30:59 +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.6878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a3c0247580095c000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a3c0247580095c000001"]}} 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"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.0791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.4811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a3c0247580095c000002"}, "$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.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a3c0247580095c000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8459ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a3c0247580095c000001", :role=>:admin}}}} (0.5641ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (6.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a3c0247580095c000001"}} (0.4289ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a3c0247580095c000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5829ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 59.2ms (Views: 44.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 (1.4768ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.6014ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.1100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.6410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3759ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.0059ms) 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.6011ms) 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.5472ms) 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.7548ms) 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.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335a587247580e96d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4215951bed2ba2cda0d729caa2dcf1390d11d74c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"4ossibipxyeBdUZeXEMU", "api_key"=>"58be239b6bde6df36a8a2270534acfab469f36a3", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 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.7479ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a587247580e96d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:38:31 UTC, "updated_at"=>2014-03-28 16:38:31 UTC, "memberships"=>[{"_id"=>"5335a587247580e96d000003", "role"=>"admin", "account_id"=>"5335a587247580e96d000001"}]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (13.3617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a587247580e96d000002", "_id"=>{"$ne"=>"5335a587247580e96d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335a587247580e96d000004", "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"=>"5335a587247580e96d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a587247580e96d000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4442ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a587247580e96d000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a587247580e96d000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000002", "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"=>"5335a587247580e96d000002", "_id"=>{"$ne"=>"5335a587247580e96d000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a587247580e96d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335a587247580e96d000006", "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"=>"5335a587247580e96d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000006"]}}, "$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"=>"5335a587247580e96d000006"}, "$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"=>["5335a587247580e96d000006"]}} 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"=>"5335a587247580e96d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a587247580e96d000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a587247580e96d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a587247580e96d000008", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC, "entries_custom_fields"=>[{"_id"=>"5335a587247580e96d000008", "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.2377ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335a587247580e96d000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335a587247580e96d000009", "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", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}}} flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a587247580e96d00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a587247580e96d000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5298ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d000007"]}}} (0.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a587247580e96d00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a587247580e96d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a587247580e96d000007", "content_type_id"=>"5335a587247580e96d000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335a587247580e96d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a587247580e96d000007", "original_id"=>"5335a587247580e96d00000a", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335a587247580e96d000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a587247580e96d000007", "original_id"=>"5335a587247580e96d00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a587247580e96d00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d000007"]}} 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"=>"5335a587247580e96d000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d000007"]}}} (0.5157ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d000007"]}}} (0.3221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4878ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a587247580e96d00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a587247580e96d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a587247580e96d000007", "content_type_id"=>"5335a587247580e96d000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335a587247580e96d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a587247580e96d000007", "original_id"=>"5335a587247580e96d00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3636ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335a587247580e96d000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a587247580e96d000007", "original_id"=>"5335a587247580e96d00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1702ms) 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.6282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "$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"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002", "_id"=>{"$ne"=>"5335a587247580e96d00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a587247580e96d000004"}]}]}, "$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"=>"5335a587247580e96d00000e", "parent_ids"=>["5335a587247580e96d000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d00000e"]}}, "$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"=>"5335a587247580e96d00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a587247580e96d00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335a587247580e96d000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1979ms) 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.5786ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002", "_id"=>{"$ne"=>"5335a587247580e96d000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a587247580e96d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a587247580e96d000010", "parent_ids"=>["5335a587247580e96d000004"], "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"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000010"]}}, "$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"=>"5335a587247580e96d000010"}, "$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"=>["5335a587247580e96d000010"]}} 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.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "$or"=>[{"slug.en"=>"seems-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"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002", "_id"=>{"$ne"=>"5335a587247580e96d000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4523ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a587247580e96d000004"}]}]}, "$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"=>"5335a587247580e96d000011", "parent_ids"=>["5335a587247580e96d000004"], "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"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a587247580e96d000011"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5335a587247580e96d000011"]}} 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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002", "_id"=>{"$ne"=>"5335a587247580e96d000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a587247580e96d000004", "site_id"=>"5335a587247580e96d000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a587247580e96d000004"}]}]}, "$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"=>"5335a587247580e96d000012", "parent_ids"=>["5335a587247580e96d000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335a587247580e96d000002", "parent_id"=>"5335a587247580e96d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.2358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a587247580e96d000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a587247580e96d000012"]}} 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"=>"5335a587247580e96d000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2992ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335a587247580e96d000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\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"=>"5335a587247580e96d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5987ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335a587247580e96d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335a587247580e96d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:38:31 UTC}} flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5608ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335a587247580e96d000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335a587247580e96d000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1521ms) 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.6220ms) 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.3762ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a587247580e96d000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:38:31 UTC, "updated_at"=>2014-03-28 16:38:31 UTC, "memberships"=>[{"_id"=>"5335a587247580e96d000015", "role"=>"admin", "account_id"=>"5335a587247580e96d000001"}]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a587247580e96d000014", "_id"=>{"$ne"=>"5335a587247580e96d000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335a587247580e96d000016", "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"=>"5335a587247580e96d000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000014", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000016"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5335a587247580e96d000016"}, "$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"=>["5335a587247580e96d000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a587247580e96d000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a587247580e96d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a587247580e96d000014", "_id"=>{"$ne"=>"5335a587247580e96d000018"}, "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"=>"5335a587247580e96d000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335a587247580e96d000018", "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"=>"5335a587247580e96d000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000014", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000018"]}}, "$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"=>"5335a587247580e96d000018"}, "$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"=>["5335a587247580e96d000018"]}} 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"=>"5335a587247580e96d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5335a587247580e96d000014", "_id"=>{"$ne"=>"5335a587247580e96d000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a587247580e96d000014"}, "$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.2749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a587247580e96d000019", "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"=>"5335a587247580e96d000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000014", "template_dependencies.en"=>{"$in"=>["5335a587247580e96d000019"]}}, "$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"=>"5335a587247580e96d000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a587247580e96d000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1054ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d00001a", "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=>"5335a587247580e96d000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a587247580e96d000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a587247580e96d000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a587247580e96d00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a587247580e96d000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a587247580e96d00001c", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC, "entries_custom_fields"=>[{"_id"=>"5335a587247580e96d00001c", "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.1743ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a587247580e96d00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5758ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a587247580e96d00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a587247580e96d00001b"]}}} (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a587247580e96d00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a587247580e96d00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a587247580e96d00001b", "content_type_id"=>"5335a587247580e96d00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335a587247580e96d000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:38:31 UTC, "created_at"=>2014-03-28 16:38:31 UTC}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a587247580e96d00001b", "original_id"=>"5335a587247580e96d00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3982ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a587247580e96d00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335a587247580e96d000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a587247580e96d00001b", "original_id"=>"5335a587247580e96d00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1941ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:38:33 +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.7811ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a587247580e96d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.0ms) Completed 200 OK in 43.1ms (Views: 36.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:38:33 +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-03-28 17:38:33 +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-03-28 17:38:33 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:38:33 +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.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a587247580e96d000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6728ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a587247580e96d000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:38:33 UTC, "updated_at"=>2014-03-28 16:38:33 UTC}} flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a587247580e96d000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:38:33 UTC, "current_sign_in_at"=>2014-03-28 16:38:33 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 16:38:33 UTC}} flags=[] (0.1559ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:38:33 +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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a587247580e96d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a587247580e96d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.5230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.7049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.6096ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.4692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a587247580e96d000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8829ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (32.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (69.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a587247580e96d000001", :role=>:admin}}}} (0.5577ms) Rendered locomotive/shared/_main_app_head.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a587247580e96d000001"}} (0.5040ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a587247580e96d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7951ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.2ms) Rendered locomotive/shared/_main_app_header.html.haml (6.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (34.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 163.9ms (Views: 145.4ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:38:33 +0100 Served asset /locomotive.js - 200 OK (188ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:38:33 +0100 Served asset /locomotive.css - 200 OK (71ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:38:33 +0100 Served asset /locomotive/search_bar.css - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 17:38:33 +0100 Served asset /locomotive/search_bar.js - 200 OK (9ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 17:38:33 +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-03-28 17:38:34 +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-03-28 17:38:34 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:38:34 +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.5629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a587247580e96d000001"}, "$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"=>["5335a587247580e96d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.0509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a587247580e96d000002"}, "$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.4418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a587247580e96d000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7579ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a587247580e96d000001", :role=>:admin}}}} (0.5608ms) Rendered locomotive/shared/_main_app_head.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (6.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a587247580e96d000001"}} (0.4020ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5335a587247580e96d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6757ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (11.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 59.4ms (Views: 44.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 (5.2638ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (7.9658ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (7.5951ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (8.4050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (2.3179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (2.2941ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (6.8991ms) 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.8149ms) 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.5598ms) 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.7532ms) 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.5538ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335a68b24758051b8000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"de186cb31e3f002a0ebed1edd3df6d3877cb9074", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"YxygAix25wyLehq7dvj4", "api_key"=>"820af5cf236ad4294747bb3b88b69f593e1438b8", "updated_at"=>2014-03-28 16:42:51 UTC, "created_at"=>2014-03-28 16:42:51 UTC}] flags=[] (0.2191ms) 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.2751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a68b24758051b8000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 16:42:51 UTC, "updated_at"=>2014-03-28 16:42:51 UTC, "memberships"=>[{"_id"=>"5335a68b24758051b8000003", "role"=>"admin", "account_id"=>"5335a68b24758051b8000001"}]}] flags=[] (0.3159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68b24758051b8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a68b24758051b8000002", "_id"=>{"$ne"=>"5335a68b24758051b8000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4883ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68b24758051b8000004", "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"=>"5335a68b24758051b8000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:51 UTC, "created_at"=>2014-03-28 16:42:51 UTC}] flags=[] (0.2487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000004"}, "$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"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68b24758051b8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68b24758051b8000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a68b24758051b8000004", "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"=>"5335a68b24758051b8000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a68b24758051b8000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a68b24758051b8000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68b24758051b8000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5335a68b24758051b8000002", "_id"=>{"$ne"=>"5335a68b24758051b8000006"}, "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"=>"5335a68b24758051b8000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335a68b24758051b8000006", "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"=>"5335a68b24758051b8000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:51 UTC, "created_at"=>2014-03-28 16:42:51 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68b24758051b8000006"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000006"}, "$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"=>["5335a68b24758051b8000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a68b24758051b8000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5335a68b24758051b8000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a68b24758051b8000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a68c24758051b8000008", "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC, "entries_custom_fields"=>[{"_id"=>"5335a68c24758051b8000008", "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.2270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335a68b24758051b8000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335a68c24758051b8000009", "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", "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}}} flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a68c24758051b800000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a68b24758051b8000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335a68b24758051b8000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a68b24758051b8000007"]}}} (0.6042ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a68c24758051b800000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a68b24758051b8000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a68b24758051b8000007", "content_type_id"=>"5335a68b24758051b8000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335a68b24758051b8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a68b24758051b8000007", "original_id"=>"5335a68c24758051b800000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6840ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a68c24758051b800000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335a68b24758051b8000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a68b24758051b8000007", "original_id"=>"5335a68c24758051b800000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a68c24758051b800000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a68b24758051b8000007"]}} 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_content_entries selector={"content_type_id"=>"5335a68b24758051b8000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4117ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a68b24758051b8000007"]}}} (0.3808ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a68b24758051b8000007"]}}} (0.2770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a68b24758051b8000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a68c24758051b800000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a68b24758051b8000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a68b24758051b8000007", "content_type_id"=>"5335a68b24758051b8000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335a68b24758051b8000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a68b24758051b8000007", "original_id"=>"5335a68c24758051b800000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6402ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a68c24758051b800000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335a68b24758051b8000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a68b24758051b8000007", "original_id"=>"5335a68c24758051b800000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.7203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "$or"=>[{"slug.en"=>"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"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002", "_id"=>{"$ne"=>"5335a68c24758051b800000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a68b24758051b8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68c24758051b800000e", "parent_ids"=>["5335a68b24758051b8000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b800000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68c24758051b800000e"}, "$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"=>["5335a68c24758051b800000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b800000e", "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"=>"5335a68c24758051b800000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335a68b24758051b8000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b800000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] 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.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002", "_id"=>{"$ne"=>"5335a68c24758051b8000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335a68b24758051b8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68c24758051b8000010", "parent_ids"=>["5335a68b24758051b8000004"], "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"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.3753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b8000010"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5335a68c24758051b8000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68c24758051b8000010"]}} 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.6680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002", "_id"=>{"$ne"=>"5335a68c24758051b8000011"}, "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"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002"}, "$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"=>"5335a68b24758051b8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5898ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68c24758051b8000011", "parent_ids"=>["5335a68b24758051b8000004"], "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"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.3603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b8000011"]}}, "$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"=>{"parent_id"=>"5335a68c24758051b8000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4938ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68c24758051b8000011"]}} 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.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002", "_id"=>{"$ne"=>"5335a68c24758051b8000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335a68b24758051b8000004", "site_id"=>"5335a68b24758051b8000002"}, "$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"=>"5335a68b24758051b8000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68c24758051b8000012", "parent_ids"=>["5335a68b24758051b8000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335a68b24758051b8000002", "parent_id"=>"5335a68b24758051b8000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.3283ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b8000012"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"5335a68c24758051b8000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68c24758051b8000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b8000012", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a68c24758051b8000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335a68b24758051b8000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b8000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5335a68b24758051b8000002"}, "$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"=>"5335a68b24758051b8000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 16:42:52 UTC}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002", "template_dependencies.en"=>{"$in"=>["5335a68b24758051b8000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a68b24758051b8000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7422ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335a68b24758051b8000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335a68b24758051b8000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1819ms) 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.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335a68c24758051b8000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 16:42:51 UTC, "updated_at"=>2014-03-28 16:42:52 UTC, "memberships"=>[{"_id"=>"5335a68c24758051b8000015", "role"=>"admin", "account_id"=>"5335a68b24758051b8000001"}]}] flags=[] (0.1597ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68c24758051b8000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a68c24758051b8000014", "_id"=>{"$ne"=>"5335a68c24758051b8000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0588ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68c24758051b8000016", "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"=>"5335a68c24758051b8000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.3738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68c24758051b8000014", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b8000016"]}}, "$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"=>"5335a68c24758051b8000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68c24758051b8000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b8000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4103ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a68c24758051b8000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335a68c24758051b8000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b8000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68c24758051b8000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a68c24758051b8000014", "_id"=>{"$ne"=>"5335a68c24758051b8000018"}, "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"=>"5335a68c24758051b8000014"}, "$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"=>"5335a68c24758051b8000018", "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"=>"5335a68c24758051b8000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68c24758051b8000014", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b8000018"]}}, "$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"=>"5335a68c24758051b8000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68c24758051b8000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335a68c24758051b8000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a68c24758051b8000014", "_id"=>{"$ne"=>"5335a68c24758051b8000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335a68c24758051b8000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4671ms) 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.3650ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335a68c24758051b8000019", "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"=>"5335a68c24758051b8000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68c24758051b8000014", "template_dependencies.en"=>{"$in"=>["5335a68c24758051b8000019"]}}, "$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"=>{"parent_id"=>"5335a68c24758051b8000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335a68c24758051b8000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b8000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a68c24758051b800001a", "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=>"5335a68c24758051b8000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335a68c24758051b8000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335a68c24758051b8000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335a68c24758051b800001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335a68c24758051b8000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335a68c24758051b800001c", "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC, "entries_custom_fields"=>[{"_id"=>"5335a68c24758051b800001c", "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.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335a68c24758051b800001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335a68c24758051b800001b"]}} 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"=>"5335a68c24758051b800001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5541ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335a68c24758051b800001b"]}}} (0.5689ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335a68c24758051b800001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335a68c24758051b800001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335a68c24758051b800001b", "content_type_id"=>"5335a68c24758051b800001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335a68c24758051b8000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 16:42:52 UTC, "created_at"=>2014-03-28 16:42:52 UTC}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335a68c24758051b800001b", "original_id"=>"5335a68c24758051b800001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3812ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335a68c24758051b800001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335a68c24758051b8000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335a68c24758051b800001b", "original_id"=>"5335a68c24758051b800001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1481ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 17:42: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.7632ms) 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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a68b24758051b8000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4609ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.3ms) Completed 200 OK in 43.8ms (Views: 37.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 17:42:53 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (13ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 17:42:53 +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-03-28 17:42:53 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 17:42: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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335a68b24758051b8000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7379ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a68b24758051b8000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 16:42:53 UTC, "updated_at"=>2014-03-28 16:42:53 UTC}} flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335a68b24758051b8000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 16:42:53 UTC, "current_sign_in_at"=>2014-03-28 16:42: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-03-28 16:42:53 UTC}} flags=[] (0.1919ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 23.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:42: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.7710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a68b24758051b8000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335a68b24758051b8000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.4000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.4248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.7839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a68b24758051b8000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7329ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (28.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a68b24758051b8000001", :role=>:admin}}}} (0.5629ms) Rendered locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (17.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a68b24758051b8000001"}} (0.5131ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a68b24758051b8000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6609ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.1ms) Rendered locomotive/shared/_main_app_header.html.haml (6.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (33.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 153.0ms (Views: 133.3ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 17:42:54 +0100 Served asset /locomotive.css - 200 OK (69ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 17:42:54 +0100 Served asset /locomotive.js - 200 OK (233ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 17:42:54 +0100 Served asset /locomotive/search_bar.js - 200 OK (11ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 17:42:54 +0100 Served asset /locomotive/search_bar.css - 200 OK (8ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 17:42: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-03-28 17:42: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-03-28 17:42:54 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 17:42: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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335a68b24758051b8000001"}, "$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={"_id"=>{"$in"=>["5335a68b24758051b8000001"]}} 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"=>"5335a68b24758051b8000002"}, "$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.2989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.3812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.4883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335a68b24758051b8000002"}, "$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.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335a68b24758051b8000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8090ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335a68b24758051b8000001", :role=>:admin}}}} (0.5548ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335a68b24758051b8000001"}} (0.3822ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335a68b24758051b8000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.5ms) Rendered locomotive/shared/_main_app_header.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 63.2ms (Views: 47.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 (2.0680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (9.0210ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (5.0778ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.3761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6632ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.9112ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.1788ms) 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.6080ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9162ms) 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.2792ms) 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.4799ms) 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.6983ms) 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.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335aaa52475800b16000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"68ce65345137376a9406868df18080824cc2a716", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"zpUyBUnFd7EhAz1zQzu9", "api_key"=>"c8f20634dbab073b1290efa59e5349aa33b8d7cd", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1442ms) 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} (4.6740ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335aaa52475800b16000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:00:21 UTC, "updated_at"=>2014-03-28 17:00:21 UTC, "memberships"=>[{"_id"=>"5335aaa52475800b16000003", "role"=>"admin", "account_id"=>"5335aaa52475800b16000001"}]}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335aaa52475800b16000002", "_id"=>{"$ne"=>"5335aaa52475800b16000004"}, "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"=>"5335aaa52475800b16000004", "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"=>"5335aaa52475800b16000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000004"}, "$orderby"=>{"position"=>1}} 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"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335aaa52475800b16000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b16000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335aaa52475800b16000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335aaa52475800b16000002", "_id"=>{"$ne"=>"5335aaa52475800b16000006"}, "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"=>nil, "site_id"=>"5335aaa52475800b16000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335aaa52475800b16000006", "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"=>"5335aaa52475800b16000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000006"]}}, "$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"=>"5335aaa52475800b16000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3912ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335aaa52475800b16000006"]}} 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"=>"5335aaa52475800b16000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335aaa52475800b16000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335aaa52475800b16000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335aaa52475800b16000008", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC, "entries_custom_fields"=>[{"_id"=>"5335aaa52475800b16000008", "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.2351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335aaa52475800b16000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335aaa52475800b16000009", "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", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}}} flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335aaa52475800b1600000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b16000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9992ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335aaa52475800b16000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b16000007"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335aaa52475800b1600000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335aaa52475800b16000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335aaa52475800b16000007", "content_type_id"=>"5335aaa52475800b16000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335aaa52475800b16000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 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::ContentEntry5335aaa52475800b16000007", "original_id"=>"5335aaa52475800b1600000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b1600000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335aaa52475800b16000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335aaa52475800b16000007", "original_id"=>"5335aaa52475800b1600000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335aaa52475800b1600000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b16000007"]}} 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"=>"5335aaa52475800b16000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b16000007"]}}} (0.5093ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b16000007"]}}} (0.3459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b16000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335aaa52475800b1600000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335aaa52475800b16000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335aaa52475800b16000007", "content_type_id"=>"5335aaa52475800b16000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335aaa52475800b16000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335aaa52475800b16000007", "original_id"=>"5335aaa52475800b1600000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b1600000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335aaa52475800b16000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335aaa52475800b16000007", "original_id"=>"5335aaa52475800b1600000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002", "_id"=>{"$ne"=>"5335aaa52475800b1600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335aaa52475800b16000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335aaa52475800b1600000e", "parent_ids"=>["5335aaa52475800b16000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b1600000e"]}}, "$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"=>"5335aaa52475800b1600000e"}, "$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"=>["5335aaa52475800b1600000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b1600000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b1600000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335aaa52475800b16000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b1600000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1831ms) 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.6118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002", "_id"=>{"$ne"=>"5335aaa52475800b16000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002"}, "$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"=>"5335aaa52475800b16000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335aaa52475800b16000010", "parent_ids"=>["5335aaa52475800b16000004"], "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"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335aaa52475800b16000010"]}} 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={"$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"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002", "_id"=>{"$ne"=>"5335aaa52475800b16000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335aaa52475800b16000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335aaa52475800b16000011", "parent_ids"=>["5335aaa52475800b16000004"], "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"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000011"]}}, "$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"=>"5335aaa52475800b16000011"}, "$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"=>["5335aaa52475800b16000011"]}} 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.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002", "_id"=>{"$ne"=>"5335aaa52475800b16000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000004", "site_id"=>"5335aaa52475800b16000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335aaa52475800b16000004"}]}]}, "$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"=>"5335aaa52475800b16000012", "parent_ids"=>["5335aaa52475800b16000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335aaa52475800b16000002", "parent_id"=>"5335aaa52475800b16000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000012"]}}, "$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"=>"5335aaa52475800b16000012"}, "$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"=>["5335aaa52475800b16000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1407ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b16000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335aaa52475800b16000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "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"=>"5335aaa52475800b16000002"}, "$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"=>"5335aaa52475800b16000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:00:21 UTC}} flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5424ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335aaa52475800b16000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335aaa52475800b16000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1471ms) 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.5431ms) 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.3700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335aaa52475800b16000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:00:21 UTC, "updated_at"=>2014-03-28 17:00:21 UTC, "memberships"=>[{"_id"=>"5335aaa52475800b16000015", "role"=>"admin", "account_id"=>"5335aaa52475800b16000001"}]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5335aaa52475800b16000014", "_id"=>{"$ne"=>"5335aaa52475800b16000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5335aaa52475800b16000016", "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"=>"5335aaa52475800b16000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000014", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000016"]}}, "$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"=>"5335aaa52475800b16000016"}, "$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"=>["5335aaa52475800b16000016"]}} 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"=>"5335aaa52475800b16000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b16000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335aaa52475800b16000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335aaa52475800b16000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335aaa52475800b16000014", "_id"=>{"$ne"=>"5335aaa52475800b16000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335aaa52475800b16000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335aaa52475800b16000018", "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"=>"5335aaa52475800b16000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000014", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335aaa52475800b16000018"]}} 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"=>"5335aaa52475800b16000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5335aaa52475800b16000014", "_id"=>{"$ne"=>"5335aaa52475800b16000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335aaa52475800b16000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2489ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335aaa52475800b16000019", "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"=>"5335aaa52475800b16000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000014", "template_dependencies.en"=>{"$in"=>["5335aaa52475800b16000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335aaa52475800b16000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335aaa52475800b16000019"]}} 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"=>"5335aaa52475800b16000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b1600001a", "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=>"5335aaa52475800b16000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335aaa52475800b16000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335aaa52475800b16000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335aaa52475800b1600001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335aaa52475800b16000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335aaa52475800b1600001c", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC, "entries_custom_fields"=>[{"_id"=>"5335aaa52475800b1600001c", "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.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335aaa52475800b1600001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b1600001b"]}} 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={"content_type_id"=>"5335aaa52475800b1600001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335aaa52475800b1600001b"]}}} (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335aaa52475800b1600001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335aaa52475800b1600001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335aaa52475800b1600001b", "content_type_id"=>"5335aaa52475800b1600001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335aaa52475800b16000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:00:21 UTC, "created_at"=>2014-03-28 17:00:21 UTC}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335aaa52475800b1600001b", "original_id"=>"5335aaa52475800b1600001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335aaa52475800b1600001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335aaa52475800b16000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335aaa52475800b1600001b", "original_id"=>"5335aaa52475800b1600001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1371ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:00:22 +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.7429ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335aaa52475800b16000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4413ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (21.8ms) Completed 200 OK in 45.2ms (Views: 39.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:00:22 +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-03-28 18:00:22 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 18:00:22 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:00:22 +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.5808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335aaa52475800b16000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4382ms) 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.6680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335aaa52475800b16000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:00:22 UTC, "updated_at"=>2014-03-28 17:00:22 UTC}} flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335aaa52475800b16000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:00:22 UTC, "current_sign_in_at"=>2014-03-28 17:00:22 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 17:00:22 UTC}} flags=[] (0.1681ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:00:22 +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.6118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335aaa52475800b16000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335aaa52475800b16000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.5039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.1642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.6232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335aaa52475800b16000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7110ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335aaa52475800b16000001", :role=>:admin}}}} (0.5631ms) Rendered locomotive/shared/_main_app_head.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335aaa52475800b16000001"}} (0.5641ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335aaa52475800b16000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.1ms) Rendered locomotive/shared/_main_app_header.html.haml (6.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.6ms) Completed 200 OK in 141.3ms (Views: 123.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:00:23 +0100 Served asset /locomotive.css - 200 OK (59ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:00:23 +0100 Served asset /locomotive.js - 200 OK (208ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:00:23 +0100 Served asset /locomotive/search_bar.js - 200 OK (10ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:00:23 +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-03-28 18:00:23 +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-03-28 18:00:23 +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-03-28 18:00:23 +0100 Served asset /locomotive/nocoffee.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:00:23 +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.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335aaa52475800b16000001"}, "$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={"_id"=>{"$in"=>["5335aaa52475800b16000001"]}} 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"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.2412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.2760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335aaa52475800b16000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"5335aaa52475800b16000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7751ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335aaa52475800b16000001", :role=>:admin}}}} (0.5381ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335aaa52475800b16000001"}} (0.3941ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335aaa52475800b16000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) 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.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 59.7ms (Views: 44.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.9751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.0700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.1732ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.6100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1730ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7482ms) 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.6101ms) 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.5119ms) 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.9711ms) 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.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335abd62475806da0000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"134c5cd7adbdb9a27b7df0d31d3e02c2c3fe6f22", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"N9wPrPpJSFMvfF46MkCK", "api_key"=>"a99618915b840b7f7fa96e197e2c7a6205e0ba88", "updated_at"=>2014-03-28 17:05:26 UTC, "created_at"=>2014-03-28 17:05:26 UTC}] flags=[] (0.1869ms) 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.9389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335abd62475806da0000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:05:26 UTC, "updated_at"=>2014-03-28 17:05:26 UTC, "memberships"=>[{"_id"=>"5335abd62475806da0000003", "role"=>"admin", "account_id"=>"5335abd62475806da0000001"}]}] flags=[] (0.1998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd62475806da0000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335abd62475806da0000002", "_id"=>{"$ne"=>"5335abd72475806da0000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335abd72475806da0000004", "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"=>"5335abd62475806da0000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da0000004"}, "$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"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335abd72475806da0000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da0000004", "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"=>"5335abd72475806da0000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335abd62475806da0000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da0000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd62475806da0000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5335abd62475806da0000002", "_id"=>{"$ne"=>"5335abd72475806da0000006"}, "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"=>"5335abd62475806da0000002"}, "$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"=>"5335abd72475806da0000006", "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"=>"5335abd62475806da0000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000006"]}}, "$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"=>"5335abd72475806da0000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4151ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335abd72475806da0000006"]}} 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_content_types selector={"site_id"=>"5335abd62475806da0000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335abd72475806da0000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335abd62475806da0000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335abd72475806da0000008", "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC, "entries_custom_fields"=>[{"_id"=>"5335abd72475806da0000008", "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.2780ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335abd72475806da0000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335abd72475806da0000009", "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", "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}}} flags=[] (0.2823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335abd72475806da000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da0000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335abd72475806da0000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6311ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da0000007"]}}} (0.3967ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335abd72475806da000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335abd72475806da0000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335abd72475806da0000007", "content_type_id"=>"5335abd72475806da0000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335abd62475806da0000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335abd72475806da0000007", "original_id"=>"5335abd72475806da000000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335abd72475806da000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335abd62475806da0000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335abd72475806da0000007", "original_id"=>"5335abd72475806da000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335abd72475806da000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da0000007"]}} 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_content_entries selector={"content_type_id"=>"5335abd72475806da0000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da0000007"]}}} (0.3560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da0000007"]}}} (0.3061ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da0000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335abd72475806da000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335abd72475806da0000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335abd72475806da0000007", "content_type_id"=>"5335abd72475806da0000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335abd62475806da0000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335abd72475806da0000007", "original_id"=>"5335abd72475806da000000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335abd72475806da000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335abd62475806da0000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335abd72475806da0000007", "original_id"=>"5335abd72475806da000000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1416ms) 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.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "$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"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002", "_id"=>{"$ne"=>"5335abd72475806da000000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5335abd72475806da0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335abd72475806da000000e", "parent_ids"=>["5335abd72475806da0000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da000000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da000000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335abd72475806da000000e"]}} 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"=>"5335abd72475806da000000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3283ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335abd72475806da000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335abd62475806da0000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1683ms) 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.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002", "_id"=>{"$ne"=>"5335abd72475806da0000010"}, "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"=>{"parent_id"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335abd72475806da0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335abd72475806da0000010", "parent_ids"=>["5335abd72475806da0000004"], "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"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da0000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335abd72475806da0000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002", "_id"=>{"$ne"=>"5335abd72475806da0000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335abd72475806da0000004"}]}]}, "$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"=>"5335abd72475806da0000011", "parent_ids"=>["5335abd72475806da0000004"], "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"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000011"]}}, "$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"=>"5335abd72475806da0000011"}, "$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"=>["5335abd72475806da0000011"]}} 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.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002", "_id"=>{"$ne"=>"5335abd72475806da0000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335abd72475806da0000004", "site_id"=>"5335abd62475806da0000002"}, "$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"=>"5335abd72475806da0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5335abd72475806da0000012", "parent_ids"=>["5335abd72475806da0000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335abd62475806da0000002", "parent_id"=>"5335abd72475806da0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3164ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da0000012"}, "$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"=>["5335abd72475806da0000012"]}} 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"=>"5335abd72475806da0000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335abd72475806da0000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335abd62475806da0000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da0000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5335abd62475806da0000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335abd72475806da0000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:05:27 UTC}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000004"]}}, "$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"=>"5335abd72475806da0000004", "locale"=>"en"}, "$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=active_search_mongoid_indices selector={"_id"=>"5335abd72475806da0000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335abd62475806da0000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2179ms) 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.5050ms) 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.3569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335abd72475806da0000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:05:26 UTC, "updated_at"=>2014-03-28 17:05:27 UTC, "memberships"=>[{"_id"=>"5335abd72475806da0000015", "role"=>"admin", "account_id"=>"5335abd62475806da0000001"}]}] flags=[] (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd72475806da0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335abd72475806da0000014", "_id"=>{"$ne"=>"5335abd72475806da0000016"}, "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"=>"5335abd72475806da0000016", "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"=>"5335abd72475806da0000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd72475806da0000014", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000016"]}}, "$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"=>"5335abd72475806da0000016"}, "$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"=>["5335abd72475806da0000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da0000016", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335abd72475806da0000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335abd72475806da0000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da0000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335abd72475806da0000014", "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"=>"5335abd72475806da0000014", "_id"=>{"$ne"=>"5335abd72475806da0000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335abd72475806da0000014"}, "$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"=>"5335abd72475806da0000018", "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"=>"5335abd72475806da0000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd72475806da0000014", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000018"]}}, "$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"=>"5335abd72475806da0000018"}, "$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"=>["5335abd72475806da0000018"]}} 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"=>"5335abd72475806da0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5335abd72475806da0000014", "_id"=>{"$ne"=>"5335abd72475806da0000019"}, "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"=>"5335abd72475806da0000014"}, "$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.2561ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335abd72475806da0000019", "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"=>"5335abd72475806da0000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd72475806da0000014", "template_dependencies.en"=>{"$in"=>["5335abd72475806da0000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335abd72475806da0000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335abd72475806da0000019"]}} 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"=>"5335abd72475806da0000019", "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"=>"5335abd72475806da000001a", "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=>"5335abd72475806da0000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335abd72475806da0000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335abd72475806da0000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335abd72475806da000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335abd72475806da0000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335abd72475806da000001c", "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC, "entries_custom_fields"=>[{"_id"=>"5335abd72475806da000001c", "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.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335abd72475806da000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da000001b"]}} 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_content_entries selector={"content_type_id"=>"5335abd72475806da000001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5741ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335abd72475806da000001b"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335abd72475806da000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335abd72475806da000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335abd72475806da000001b", "content_type_id"=>"5335abd72475806da000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335abd72475806da0000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:05:27 UTC, "created_at"=>2014-03-28 17:05:27 UTC}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335abd72475806da000001b", "original_id"=>"5335abd72475806da000001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335abd72475806da000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335abd72475806da0000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335abd72475806da000001b", "original_id"=>"5335abd72475806da000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1340ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:05:28 +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.8991ms) 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"=>["5335abd62475806da0000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5009ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.7ms) Completed 200 OK in 38.4ms (Views: 32.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:05:28 +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-03-28 18:05:28 +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-03-28 18:05:28 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:05: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 (0.6628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335abd62475806da0000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4449ms) 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.6552ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335abd62475806da0000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:05:28 UTC, "updated_at"=>2014-03-28 17:05:28 UTC}} flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335abd62475806da0000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:05:28 UTC, "current_sign_in_at"=>2014-03-28 17:05: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-03-28 17:05:28 UTC}} flags=[] (0.2029ms) 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-03-28 18:05: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.7360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335abd62475806da0000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335abd62475806da0000001"]}} 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"=>"5335abd62475806da0000002"}, "$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.5118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.0729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.7799ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335abd72475806da0000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7210ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335abd62475806da0000001", :role=>:admin}}}} (0.7472ms) Rendered locomotive/shared/_main_app_head.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335abd62475806da0000001"}} (0.4959ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335abd62475806da0000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5550ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.1ms) Rendered locomotive/shared/_main_app_header.html.haml (5.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (29.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 132.2ms (Views: 115.0ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:05:28 +0100 Served asset /locomotive.js - 200 OK (102ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:05:28 +0100 Served asset /locomotive.css - 200 OK (39ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:05:28 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:05:28 +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-03-28 18:05:29 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 18:05:29 +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-03-28 18:05:29 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:05:29 +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.5791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335abd62475806da0000001"}, "$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"=>["5335abd62475806da0000001"]}} 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"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.4713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.1332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.5324ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335abd62475806da0000002"}, "$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.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335abd72475806da0000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.0729ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335abd62475806da0000001", :role=>:admin}}}} (0.5457ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335abd62475806da0000001"}} (0.4880ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5335abd62475806da0000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6232ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.1ms (Views: 43.8ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-28 18:05: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.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335abd62475806da0000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335abd62475806da0000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4742ms) 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"=>"5335abd62475806da0000002", "locale"=>"en"}} (0.8273ms) Completed 500 Internal Server Error in 12.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 (2.8479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5502ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5779ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5922ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (3.1359ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1358ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5299ms) 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.6647ms) 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.5271ms) 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.8719ms) 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.4568ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335ac712475800a5d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0fbedbe81a1e7de9cfae569349c310b809577d83", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"2rPGnYzvrEAP9yjzcJU1", "api_key"=>"9962ae3d9b8cbb124bdac5f7e2374fe3530f1ea5", "updated_at"=>2014-03-28 17:08:01 UTC, "created_at"=>2014-03-28 17:08:01 UTC}] flags=[] (0.1931ms) 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.7980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335ac712475800a5d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:08:01 UTC, "updated_at"=>2014-03-28 17:08:01 UTC, "memberships"=>[{"_id"=>"5335ac712475800a5d000003", "role"=>"admin", "account_id"=>"5335ac712475800a5d000001"}]}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac712475800a5d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ac712475800a5d000002", "_id"=>{"$ne"=>"5335ac712475800a5d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ac712475800a5d000004", "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"=>"5335ac712475800a5d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:01 UTC, "created_at"=>2014-03-28 17:08:01 UTC}] flags=[] (0.2582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac712475800a5d000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac712475800a5d000004"]}}, "$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"=>["5335ac712475800a5d000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ac712475800a5d000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3521ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac712475800a5d000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335ac712475800a5d000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ac712475800a5d000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac712475800a5d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ac712475800a5d000002", "_id"=>{"$ne"=>"5335ac712475800a5d000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ac712475800a5d000002"}, "$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"=>"5335ac712475800a5d000006", "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"=>"5335ac712475800a5d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:01 UTC, "created_at"=>2014-03-28 17:08:01 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac712475800a5d000006"]}}, "$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"=>"5335ac712475800a5d000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5219ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ac712475800a5d000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335ac712475800a5d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335ac712475800a5d000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335ac712475800a5d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335ac722475800a5d000008", "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC, "entries_custom_fields"=>[{"_id"=>"5335ac722475800a5d000008", "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.2491ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335ac712475800a5d000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335ac722475800a5d000009", "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", "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}}} flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ac722475800a5d00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ac712475800a5d000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ac712475800a5d000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4649ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ac712475800a5d000007"]}}} (0.4423ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ac722475800a5d00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ac712475800a5d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ac712475800a5d000007", "content_type_id"=>"5335ac712475800a5d000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335ac712475800a5d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 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::ContentEntry5335ac712475800a5d000007", "original_id"=>"5335ac722475800a5d00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac722475800a5d00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335ac712475800a5d000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ac712475800a5d000007", "original_id"=>"5335ac722475800a5d00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ac722475800a5d00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ac712475800a5d000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ac712475800a5d000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ac712475800a5d000007"]}}} (0.3600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ac712475800a5d000007"]}}} (0.2828ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ac712475800a5d000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ac722475800a5d00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ac712475800a5d000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ac712475800a5d000007", "content_type_id"=>"5335ac712475800a5d000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335ac712475800a5d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335ac712475800a5d000007", "original_id"=>"5335ac722475800a5d00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac722475800a5d00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335ac712475800a5d000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ac712475800a5d000007", "original_id"=>"5335ac722475800a5d00000c", "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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002", "_id"=>{"$ne"=>"5335ac722475800a5d00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5335ac712475800a5d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ac722475800a5d00000e", "parent_ids"=>["5335ac712475800a5d000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3283ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac722475800a5d00000e"}, "$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"=>["5335ac722475800a5d00000e"]}} 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"=>"5335ac722475800a5d00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac722475800a5d00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335ac712475800a5d000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ac722475800a5d00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] 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.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002", "_id"=>{"$ne"=>"5335ac722475800a5d000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ac712475800a5d000004"}]}]}, "$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"=>"5335ac722475800a5d000010", "parent_ids"=>["5335ac712475800a5d000004"], "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"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d000010"]}}, "$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"=>"5335ac722475800a5d000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3870ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ac722475800a5d000010"]}} 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.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002", "_id"=>{"$ne"=>"5335ac722475800a5d000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002"}, "$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"=>"5335ac712475800a5d000004"}]}]}, "$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"=>"5335ac722475800a5d000011", "parent_ids"=>["5335ac712475800a5d000004"], "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"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d000011"]}}, "$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"=>"5335ac722475800a5d000011"}, "$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"=>["5335ac722475800a5d000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5703ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002", "_id"=>{"$ne"=>"5335ac722475800a5d000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac712475800a5d000004", "site_id"=>"5335ac712475800a5d000002"}, "$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"=>"5335ac712475800a5d000004"}]}]}, "$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"=>"5335ac722475800a5d000012", "parent_ids"=>["5335ac712475800a5d000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335ac712475800a5d000002", "parent_id"=>"5335ac712475800a5d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ac722475800a5d000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ac722475800a5d000012"]}} 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"=>"5335ac722475800a5d000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac722475800a5d000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335ac712475800a5d000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ac722475800a5d000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5335ac712475800a5d000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3133ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335ac712475800a5d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:08:02 UTC}} flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002", "template_dependencies.en"=>{"$in"=>["5335ac712475800a5d000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ac712475800a5d000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335ac712475800a5d000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335ac712475800a5d000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1500ms) 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.5262ms) 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"=>"5335ac722475800a5d000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:08:01 UTC, "updated_at"=>2014-03-28 17:08:02 UTC, "memberships"=>[{"_id"=>"5335ac722475800a5d000015", "role"=>"admin", "account_id"=>"5335ac712475800a5d000001"}]}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac722475800a5d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5335ac722475800a5d000014", "_id"=>{"$ne"=>"5335ac722475800a5d000016"}, "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"=>"5335ac722475800a5d000016", "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"=>"5335ac722475800a5d000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac722475800a5d000014", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d000016"]}}, "$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"=>"5335ac722475800a5d000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ac722475800a5d000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ac722475800a5d000016", "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"=>"5335ac722475800a5d000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335ac722475800a5d000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ac722475800a5d000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ac722475800a5d000014", "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"=>"5335ac722475800a5d000014", "_id"=>{"$ne"=>"5335ac722475800a5d000018"}, "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"=>"5335ac722475800a5d000014"}, "$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"=>"5335ac722475800a5d000018", "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"=>"5335ac722475800a5d000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac722475800a5d000014", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d000018"]}}, "$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"=>"5335ac722475800a5d000018"}, "$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"=>["5335ac722475800a5d000018"]}} 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"=>"5335ac722475800a5d000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5335ac722475800a5d000014", "_id"=>{"$ne"=>"5335ac722475800a5d000019"}, "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"=>"5335ac722475800a5d000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) 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.2389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ac722475800a5d000019", "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"=>"5335ac722475800a5d000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac722475800a5d000014", "template_dependencies.en"=>{"$in"=>["5335ac722475800a5d000019"]}}, "$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"=>"5335ac722475800a5d000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ac722475800a5d000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ac722475800a5d000019", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac722475800a5d00001a", "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=>"5335ac722475800a5d000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ac722475800a5d000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335ac722475800a5d000014", "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"=>"5335ac722475800a5d00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335ac722475800a5d000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335ac722475800a5d00001c", "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC, "entries_custom_fields"=>[{"_id"=>"5335ac722475800a5d00001c", "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.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ac722475800a5d00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ac722475800a5d00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ac722475800a5d00001b", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ac722475800a5d00001b"]}}} (0.4847ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ac722475800a5d00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ac722475800a5d00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ac722475800a5d00001b", "content_type_id"=>"5335ac722475800a5d00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335ac722475800a5d000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:08:02 UTC, "created_at"=>2014-03-28 17:08:02 UTC}] flags=[] (0.2217ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335ac722475800a5d00001b", "original_id"=>"5335ac722475800a5d00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4113ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ac722475800a5d00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335ac722475800a5d000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ac722475800a5d00001b", "original_id"=>"5335ac722475800a5d00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1638ms) 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.1059ms) 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.1469ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:08:03 +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.8829ms) 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.6440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335ac712475800a5d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (29.4ms) Completed 200 OK in 53.5ms (Views: 46.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:08:03 +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.6781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335ac712475800a5d000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$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_accounts selector={"_id"=>"5335ac712475800a5d000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:08:03 UTC, "updated_at"=>2014-03-28 17:08:03 UTC}} flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335ac712475800a5d000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:08:03 UTC, "current_sign_in_at"=>2014-03-28 17:08:03 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 17:08:03 UTC}} flags=[] (0.1793ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:08:03 +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.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ac712475800a5d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335ac712475800a5d000001"]}} flags=[:slave_ok] limit=0 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"=>"5335ac712475800a5d000002"}, "$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.2610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.3201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335ac712475800a5d000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8991ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (32.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (58.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335ac712475800a5d000001", :role=>:admin}}}} (0.5639ms) Rendered locomotive/shared/_main_app_head.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335ac712475800a5d000001"}} (0.5300ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ac712475800a5d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6540ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.2ms) 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 (6.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 149.1ms (Views: 129.8ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive.css - 200 OK (67ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive.js - 200 OK (189ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive/search_bar.css - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:08:03 +0100 Served asset /locomotive/search_bar.js - 200 OK (16ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-28 18:08:04 +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-03-28 18:08:04 +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-03-28 18:08:04 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:08:04 +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.6070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ac712475800a5d000001"}, "$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"=>["5335ac712475800a5d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.5769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.5362ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ac712475800a5d000002"}, "$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.4382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335ac712475800a5d000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8059ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335ac712475800a5d000001", :role=>:admin}}}} (0.5810ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ac712475800a5d000001"}} (0.4621ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ac712475800a5d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6762ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.8ms (Views: 44.2ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-28 18:08:04 +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.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ac712475800a5d000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5335ac712475800a5d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) 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"=>"5335ac712475800a5d000002", "locale"=>"en"}} (1.4627ms) Completed 200 OK in 32.4ms (Views: 1.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 (3.7036ms) Started GET "/locomotive/pages/5335ac722475800a5d00000e/edit?locale=en" for 127.0.0.1 at 2014-03-28 18:08:05 +0100 Processing by Locomotive::PagesController#edit as HTML MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (8.2109ms) Parameters: {"locale"=>"en", "id"=>"5335ac722475800a5d00000e"} [LocomotiveCMS] [fetch site] host = test.example.com / test.example.com:7171 MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (4.0660ms) 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.4601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.4519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ac712475800a5d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9122ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.5061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ac712475800a5d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.7190ms) Completed 401 Unauthorized in 11.3ms Started GET "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:08:05 +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=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (22.2669ms) 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.7519ms) [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.5589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_accounts", :query=>{}} (0.3920ms) Redirected to http://test.example.com:7171/locomotive/installation Filter chain halted as :require_site rendered or redirected Completed 302 Found in 9.7ms Started GET "/locomotive/installation" for 127.0.0.1 at 2014-03-28 18:08:05 +0100 Processing by Locomotive::InstallationController#show as HTML Parameters: {"step"=>1} MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{}} (0.5181ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/installation/step_1.html.haml within /locomotive/layouts/not_logged_in (25.6ms) Completed 200 OK in 34.0ms (Views: 30.1ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9327ms) 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.6511ms) 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.5739ms) 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.9031ms) 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.4761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335acd0247580a98a000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6ebc6fbc612db7bb491f972076e30a9f8562bf3f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"jg1x8qbsa21wQ3qddUcp", "api_key"=>"a09d4daa87097a801acf05fafc7a7209dc78b445", "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.1929ms) 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.8609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335acd0247580a98a000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:09:36 UTC, "updated_at"=>2014-03-28 17:09:36 UTC, "memberships"=>[{"_id"=>"5335acd0247580a98a000003", "role"=>"admin", "account_id"=>"5335acd0247580a98a000001"}]}] flags=[] (0.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acd0247580a98a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acd0247580a98a000002", "_id"=>{"$ne"=>"5335acd0247580a98a000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335acd0247580a98a000004", "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"=>"5335acd0247580a98a000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acd0247580a98a000004"}, "$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_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd0247580a98a000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000004", "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"=>"5335acd0247580a98a000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335acd0247580a98a000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acd0247580a98a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acd0247580a98a000002", "_id"=>{"$ne"=>"5335acd0247580a98a000006"}, "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"=>"5335acd0247580a98a000002"}, "$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"=>"5335acd0247580a98a000006", "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"=>"5335acd0247580a98a000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000006"]}}, "$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"=>"5335acd0247580a98a000006"}, "$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"=>["5335acd0247580a98a000006"]}} 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"=>"5335acd0247580a98a000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335acd0247580a98a000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335acd0247580a98a000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335acd0247580a98a000008", "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC, "entries_custom_fields"=>[{"_id"=>"5335acd0247580a98a000008", "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.2329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335acd0247580a98a000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335acd0247580a98a000009", "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", "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}}} flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335acd0247580a98a00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335acd0247580a98a000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335acd0247580a98a000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acd0247580a98a000007"]}}} (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335acd0247580a98a00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335acd0247580a98a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335acd0247580a98a000007", "content_type_id"=>"5335acd0247580a98a000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335acd0247580a98a000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335acd0247580a98a000007", "original_id"=>"5335acd0247580a98a00000a", "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"=>"5335acd0247580a98a00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335acd0247580a98a000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335acd0247580a98a000007", "original_id"=>"5335acd0247580a98a00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335acd0247580a98a00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335acd0247580a98a000007"]}} 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"=>"5335acd0247580a98a000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acd0247580a98a000007"]}}} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acd0247580a98a000007"]}}} (0.3388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acd0247580a98a000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4761ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335acd0247580a98a00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335acd0247580a98a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335acd0247580a98a000007", "content_type_id"=>"5335acd0247580a98a000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335acd0247580a98a000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 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::ContentEntry5335acd0247580a98a000007", "original_id"=>"5335acd0247580a98a00000c", "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"=>"5335acd0247580a98a00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335acd0247580a98a000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335acd0247580a98a000007", "original_id"=>"5335acd0247580a98a00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2596ms) 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.6533ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002", "_id"=>{"$ne"=>"5335acd0247580a98a00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335acd0247580a98a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5335acd0247580a98a00000e", "parent_ids"=>["5335acd0247580a98a000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a00000e"]}}, "$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"=>"5335acd0247580a98a00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd0247580a98a00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acd0247580a98a00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335acd0247580a98a000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.3271ms) 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.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002", "_id"=>{"$ne"=>"5335acd0247580a98a000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002"}, "$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"=>"5335acd0247580a98a000004"}]}]}, "$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"=>"5335acd0247580a98a000010", "parent_ids"=>["5335acd0247580a98a000004"], "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"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000010"]}}, "$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"=>"5335acd0247580a98a000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd0247580a98a000010"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002", "_id"=>{"$ne"=>"5335acd0247580a98a000011"}, "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"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335acd0247580a98a000004"}]}]}, "$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"=>"5335acd0247580a98a000011", "parent_ids"=>["5335acd0247580a98a000004"], "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"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000011"]}}, "$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"=>"5335acd0247580a98a000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd0247580a98a000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002", "_id"=>{"$ne"=>"5335acd0247580a98a000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acd0247580a98a000004", "site_id"=>"5335acd0247580a98a000002"}, "$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"=>"5335acd0247580a98a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4742ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acd0247580a98a000012", "parent_ids"=>["5335acd0247580a98a000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335acd0247580a98a000002", "parent_id"=>"5335acd0247580a98a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000012"]}}, "$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"=>"5335acd0247580a98a000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd0247580a98a000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acd0247580a98a000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335acd0247580a98a000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5335acd0247580a98a000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335acd0247580a98a000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:09:36 UTC}} flags=[] (0.1583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335acd0247580a98a000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335acd0247580a98a000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1540ms) 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.5651ms) 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.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335acd0247580a98a000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:09:36 UTC, "updated_at"=>2014-03-28 17:09:36 UTC, "memberships"=>[{"_id"=>"5335acd0247580a98a000015", "role"=>"admin", "account_id"=>"5335acd0247580a98a000001"}]}] flags=[] (0.1690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acd0247580a98a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acd0247580a98a000014", "_id"=>{"$ne"=>"5335acd0247580a98a000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5335acd0247580a98a000016", "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"=>"5335acd0247580a98a000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:36 UTC, "created_at"=>2014-03-28 17:09:36 UTC}] flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000014", "template_dependencies.en"=>{"$in"=>["5335acd0247580a98a000016"]}}, "$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"=>"5335acd0247580a98a000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd0247580a98a000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000016", "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"=>"5335acd1247580a98a000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335acd0247580a98a000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acd0247580a98a000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acd0247580a98a000014", "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"=>"5335acd0247580a98a000014", "_id"=>{"$ne"=>"5335acd1247580a98a000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5335acd0247580a98a000014"}, "$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"=>"5335acd1247580a98a000018", "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"=>"5335acd0247580a98a000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:37 UTC, "created_at"=>2014-03-28 17:09:37 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000014", "template_dependencies.en"=>{"$in"=>["5335acd1247580a98a000018"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5335acd1247580a98a000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd1247580a98a000018"]}} 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"=>"5335acd0247580a98a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acd0247580a98a000014", "_id"=>{"$ne"=>"5335acd1247580a98a000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acd0247580a98a000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8292ms) 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.4928ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acd1247580a98a000019", "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"=>"5335acd0247580a98a000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:09:37 UTC, "created_at"=>2014-03-28 17:09:37 UTC}] flags=[] (0.2759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000014", "template_dependencies.en"=>{"$in"=>["5335acd1247580a98a000019"]}}, "$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"=>"5335acd1247580a98a000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4177ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acd1247580a98a000019"]}} 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"=>"5335acd1247580a98a000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acd1247580a98a00001a", "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=>"5335acd0247580a98a000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acd1247580a98a000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335acd0247580a98a000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335acd1247580a98a00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335acd0247580a98a000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335acd1247580a98a00001c", "updated_at"=>2014-03-28 17:09:37 UTC, "created_at"=>2014-03-28 17:09:37 UTC, "entries_custom_fields"=>[{"_id"=>"5335acd1247580a98a00001c", "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.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335acd1247580a98a00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335acd1247580a98a00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335acd1247580a98a00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4387ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acd1247580a98a00001b"]}}} (0.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335acd1247580a98a00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335acd1247580a98a00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335acd1247580a98a00001b", "content_type_id"=>"5335acd1247580a98a00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335acd0247580a98a000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:09:37 UTC, "created_at"=>2014-03-28 17:09:37 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::ContentEntry5335acd1247580a98a00001b", "original_id"=>"5335acd1247580a98a00001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acd1247580a98a00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335acd0247580a98a000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335acd1247580a98a00001b", "original_id"=>"5335acd1247580a98a00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1519ms) 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.0961ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:09:38 +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.9060ms) 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.7739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335acd0247580a98a000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5367ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.0ms) Completed 200 OK in 40.7ms (Views: 33.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:09:38 +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-03-28 18:09:38 +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-03-28 18:09:38 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:09:38 +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.7539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335acd0247580a98a000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5038ms) 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.5808ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335acd0247580a98a000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:09:38 UTC, "updated_at"=>2014-03-28 17:09:38 UTC}} flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335acd0247580a98a000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:09:38 UTC, "current_sign_in_at"=>2014-03-28 17:09:38 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 17:09:38 UTC}} flags=[] (0.1652ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:09:38 +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.6647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335acd0247580a98a000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335acd0247580a98a000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.6930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.1179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.6280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.5667ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335acd0247580a98a000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6838ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335acd0247580a98a000001", :role=>:admin}}}} (0.5901ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335acd0247580a98a000001"}} (0.4809ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335acd0247580a98a000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8249ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.7ms) 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 (7.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 134.6ms (Views: 117.2ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:09:38 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:09:38 +0100 Served asset /locomotive.js - 200 OK (111ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:09:38 +0100 Served asset /locomotive/search_bar.css - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:09:38 +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-03-28 18:09:38 +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-03-28 18:09:38 +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-03-28 18:09:38 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:09:38 +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.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335acd0247580a98a000001"}, "$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"=>["5335acd0247580a98a000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.0478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.0328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acd0247580a98a000002"}, "$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.4747ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335acd0247580a98a000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6630ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335acd0247580a98a000001", :role=>:admin}}}} (0.5660ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335acd0247580a98a000001"}} (0.6189ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335acd0247580a98a000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 60.1ms (Views: 43.4ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-28 18:09:38 +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.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335acd0247580a98a000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335acd0247580a98a000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) 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"=>"5335acd0247580a98a000002", "locale"=>"en"}} (0.7160ms) Completed 200 OK in 20.3ms (Views: 1.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.7880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5287ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4138ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0860ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.9710ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8230ms) 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.5860ms) 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.5720ms) 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.7539ms) 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.5851ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335acfc2475802faf000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"669f071d7a08dcd48fe999e05fd5061d38a4ffc5", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"sRKNAQyapFqwwxpDTEsW", "api_key"=>"3ba87654136ab61c34ea362b6c4bd86a8489cbfd", "updated_at"=>2014-03-28 17:10:20 UTC, "created_at"=>2014-03-28 17:10:20 UTC}] flags=[] (0.1881ms) 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.8941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335acfc2475802faf000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:10:20 UTC, "updated_at"=>2014-03-28 17:10:20 UTC, "memberships"=>[{"_id"=>"5335acfc2475802faf000003", "role"=>"admin", "account_id"=>"5335acfc2475802faf000001"}]}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfc2475802faf000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acfc2475802faf000002", "_id"=>{"$ne"=>"5335acfc2475802faf000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5335acfc2475802faf000004", "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"=>"5335acfc2475802faf000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:20 UTC, "created_at"=>2014-03-28 17:10:20 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acfc2475802faf000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfc2475802faf000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3357ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfc2475802faf000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acfc2475802faf000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acfc2475802faf000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335acfc2475802faf000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acfc2475802faf000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfc2475802faf000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5335acfc2475802faf000002", "_id"=>{"$ne"=>"5335acfc2475802faf000006"}, "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"=>"5335acfc2475802faf000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acfc2475802faf000006", "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"=>"5335acfc2475802faf000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:20 UTC, "created_at"=>2014-03-28 17:10:20 UTC}] flags=[] (0.2701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfc2475802faf000006"]}}, "$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"=>"5335acfc2475802faf000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4942ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfc2475802faf000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335acfc2475802faf000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335acfc2475802faf000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335acfc2475802faf000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335acfd2475802faf000008", "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC, "entries_custom_fields"=>[{"_id"=>"5335acfd2475802faf000008", "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.2880ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335acfc2475802faf000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335acfd2475802faf000009", "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", "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}}} flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335acfd2475802faf00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335acfc2475802faf000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335acfc2475802faf000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4568ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acfc2475802faf000007"]}}} (0.3979ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335acfd2475802faf00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335acfc2475802faf000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335acfc2475802faf000007", "content_type_id"=>"5335acfc2475802faf000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335acfc2475802faf000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 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::ContentEntry5335acfc2475802faf000007", "original_id"=>"5335acfd2475802faf00000a", "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"=>"5335acfd2475802faf00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335acfc2475802faf000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335acfc2475802faf000007", "original_id"=>"5335acfd2475802faf00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335acfd2475802faf00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335acfc2475802faf000007"]}} 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"=>"5335acfc2475802faf000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acfc2475802faf000007"]}}} (0.4010ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acfc2475802faf000007"]}}} (0.3090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acfc2475802faf000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335acfd2475802faf00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335acfc2475802faf000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335acfc2475802faf000007", "content_type_id"=>"5335acfc2475802faf000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335acfc2475802faf000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335acfc2475802faf000007", "original_id"=>"5335acfd2475802faf00000c", "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"=>"5335acfd2475802faf00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335acfc2475802faf000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335acfc2475802faf000007", "original_id"=>"5335acfd2475802faf00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2007ms) 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.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002", "_id"=>{"$ne"=>"5335acfd2475802faf00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5335acfc2475802faf000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acfd2475802faf00000e", "parent_ids"=>["5335acfc2475802faf000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf00000e"]}}, "$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"=>"5335acfd2475802faf00000e"}, "$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"=>["5335acfd2475802faf00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acfd2475802faf00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acfd2475802faf00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335acfc2475802faf000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acfd2475802faf00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2062ms) 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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002", "_id"=>{"$ne"=>"5335acfd2475802faf000010"}, "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"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002"}, "$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"=>"5335acfc2475802faf000004"}]}]}, "$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"=>"5335acfd2475802faf000010", "parent_ids"=>["5335acfc2475802faf000004"], "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"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf000010"]}}, "$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"=>"5335acfd2475802faf000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfd2475802faf000010"]}} 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"=>{"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_pages selector={"site_id"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002", "_id"=>{"$ne"=>"5335acfd2475802faf000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335acfc2475802faf000004"}]}]}, "$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"=>"5335acfd2475802faf000011", "parent_ids"=>["5335acfc2475802faf000004"], "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"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2007ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acfd2475802faf000011"}, "$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"=>["5335acfd2475802faf000011"]}} 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.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002", "_id"=>{"$ne"=>"5335acfd2475802faf000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335acfc2475802faf000004", "site_id"=>"5335acfc2475802faf000002"}, "$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"=>"5335acfc2475802faf000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acfd2475802faf000012", "parent_ids"=>["5335acfc2475802faf000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335acfc2475802faf000002", "parent_id"=>"5335acfc2475802faf000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf000012"]}}, "$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"=>"5335acfd2475802faf000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3457ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfd2475802faf000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acfd2475802faf000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acfd2475802faf000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335acfc2475802faf000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acfd2475802faf000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335acfc2475802faf000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335acfc2475802faf000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:10:21 UTC}} flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002", "template_dependencies.en"=>{"$in"=>["5335acfc2475802faf000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335acfc2475802faf000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5381ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335acfc2475802faf000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335acfc2475802faf000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1950ms) 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.5250ms) 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.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335acfd2475802faf000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:10:20 UTC, "updated_at"=>2014-03-28 17:10:21 UTC, "memberships"=>[{"_id"=>"5335acfd2475802faf000015", "role"=>"admin", "account_id"=>"5335acfc2475802faf000001"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfd2475802faf000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acfd2475802faf000014", "_id"=>{"$ne"=>"5335acfd2475802faf000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acfd2475802faf000016", "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"=>"5335acfd2475802faf000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfd2475802faf000014", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335acfd2475802faf000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfd2475802faf000016"]}} 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"=>"5335acfd2475802faf000016", "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"=>"5335acfd2475802faf000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335acfd2475802faf000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acfd2475802faf000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335acfd2475802faf000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4797ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acfd2475802faf000014", "_id"=>{"$ne"=>"5335acfd2475802faf000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acfd2475802faf000014"}, "$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"=>"5335acfd2475802faf000018", "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"=>"5335acfd2475802faf000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfd2475802faf000014", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf000018"]}}, "$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"=>"5335acfd2475802faf000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfd2475802faf000018"]}} 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={"site_id"=>"5335acfd2475802faf000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acfd2475802faf000014", "_id"=>{"$ne"=>"5335acfd2475802faf000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335acfd2475802faf000014"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335acfd2475802faf000019", "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"=>"5335acfd2475802faf000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfd2475802faf000014", "template_dependencies.en"=>{"$in"=>["5335acfd2475802faf000019"]}}, "$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"=>"5335acfd2475802faf000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335acfd2475802faf000019"]}} 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"=>"5335acfd2475802faf000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acfd2475802faf00001a", "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=>"5335acfd2475802faf000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335acfd2475802faf000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335acfd2475802faf000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335acfd2475802faf00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335acfd2475802faf000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335acfd2475802faf00001c", "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC, "entries_custom_fields"=>[{"_id"=>"5335acfd2475802faf00001c", "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.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335acfd2475802faf00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335acfd2475802faf00001b"]}} 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"=>"5335acfd2475802faf00001b", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335acfd2475802faf00001b"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335acfd2475802faf00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335acfd2475802faf00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335acfd2475802faf00001b", "content_type_id"=>"5335acfd2475802faf00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335acfd2475802faf000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:10:21 UTC, "created_at"=>2014-03-28 17:10:21 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335acfd2475802faf00001b", "original_id"=>"5335acfd2475802faf00001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335acfd2475802faf00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335acfd2475802faf000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335acfd2475802faf00001b", "original_id"=>"5335acfd2475802faf00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1931ms) 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.0961ms) 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.1371ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:10:22 +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.0409ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335acfc2475802faf000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5848ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (25.1ms) Completed 200 OK in 47.8ms (Views: 39.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:10:22 +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-03-28 18:10:22 +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-03-28 18:10:22 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:10:23 +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.7343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335acfc2475802faf000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7720ms) 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.9186ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335acfc2475802faf000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:10:23 UTC, "updated_at"=>2014-03-28 17:10:23 UTC}} flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335acfc2475802faf000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:10:23 UTC, "current_sign_in_at"=>2014-03-28 17:10:23 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 17:10:23 UTC}} flags=[] (0.2739ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 28.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:10:23 +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.7908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335acfc2475802faf000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5335acfc2475802faf000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.3840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.4052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.7069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.5441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335acfc2475802faf000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7532ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (38.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (13.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (71.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"5335acfc2475802faf000001", :role=>:admin}}}} (0.8380ms) Rendered locomotive/shared/_main_app_head.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (18.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335acfc2475802faf000001"}} (0.5269ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335acfc2475802faf000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8991ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (5.4ms) 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.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 168.7ms (Views: 146.6ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:10:23 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:10:23 +0100 Served asset /locomotive.js - 200 OK (116ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:10:23 +0100 Served asset /locomotive/search_bar.css - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:10:23 +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-03-28 18:10:23 +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-03-28 18:10:23 +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-03-28 18:10:23 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:10:23 +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.6096ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335acfc2475802faf000001"}, "$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={"_id"=>{"$in"=>["5335acfc2475802faf000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.0481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.6759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335acfc2475802faf000002"}, "$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.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335acfc2475802faf000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8190ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335acfc2475802faf000001", :role=>:admin}}}} (0.6678ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (7.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335acfc2475802faf000001"}} (0.5481ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5335acfc2475802faf000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6821ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (1.3ms) Rendered locomotive/shared/_main_app_header.html.haml (1.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (13.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 70.5ms (Views: 52.2ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-28 18:10:23 +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.5877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335acfc2475802faf000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5335acfc2475802faf000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4690ms) 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"=>"5335acfc2475802faf000002", "locale"=>"en"}} (0.7360ms) Completed 200 OK in 22.5ms (Views: 2.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.8972ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7211ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1809ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2488ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.0771ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7100ms) 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.5491ms) 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.5822ms) 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.8709ms) 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.5183ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335ad2b247580310a000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"fc4c30fc449aed30abf6289922fce9c722f72b70", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"uFxF4ZjEpqK8kuyprxzD", "api_key"=>"90a7dd51f35252f1bf120c844997aca32c676abc", "updated_at"=>2014-03-28 17:11:07 UTC, "created_at"=>2014-03-28 17:11:07 UTC}] flags=[] (0.2100ms) 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.8867ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335ad2b247580310a000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:11:07 UTC, "updated_at"=>2014-03-28 17:11:07 UTC, "memberships"=>[{"_id"=>"5335ad2b247580310a000003", "role"=>"admin", "account_id"=>"5335ad2b247580310a000001"}]}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2b247580310a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad2b247580310a000002", "_id"=>{"$ne"=>"5335ad2c247580310a000004"}, "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"=>"5335ad2c247580310a000004", "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"=>"5335ad2b247580310a000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad2c247580310a000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad2c247580310a000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad2c247580310a000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335ad2b247580310a000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2b247580310a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad2b247580310a000002", "_id"=>{"$ne"=>"5335ad2c247580310a000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad2b247580310a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335ad2c247580310a000006", "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"=>"5335ad2b247580310a000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000006"]}}, "$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"=>"5335ad2c247580310a000006"}, "$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"=>["5335ad2c247580310a000006"]}} 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"=>"5335ad2b247580310a000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335ad2c247580310a000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335ad2b247580310a000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335ad2c247580310a000008", "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC, "entries_custom_fields"=>[{"_id"=>"5335ad2c247580310a000008", "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.2241ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335ad2c247580310a000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335ad2c247580310a000009", "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", "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ad2c247580310a00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0598ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ad2c247580310a000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5498ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a000007"]}}} (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ad2c247580310a00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ad2c247580310a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ad2c247580310a000007", "content_type_id"=>"5335ad2c247580310a000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335ad2b247580310a000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.3033ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335ad2c247580310a000007", "original_id"=>"5335ad2c247580310a00000a", "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"=>"5335ad2c247580310a00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335ad2b247580310a000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ad2c247580310a000007", "original_id"=>"5335ad2c247580310a00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ad2c247580310a00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a000007"]}} 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"=>"5335ad2c247580310a000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4044ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a000007"]}}} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a000007"]}}} (0.3080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ad2c247580310a00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ad2c247580310a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ad2c247580310a000007", "content_type_id"=>"5335ad2c247580310a000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335ad2b247580310a000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 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::ContentEntry5335ad2c247580310a000007", "original_id"=>"5335ad2c247580310a00000c", "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"=>"5335ad2c247580310a00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335ad2b247580310a000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ad2c247580310a000007", "original_id"=>"5335ad2c247580310a00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (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.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002", "_id"=>{"$ne"=>"5335ad2c247580310a00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad2c247580310a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ad2c247580310a00000e", "parent_ids"=>["5335ad2c247580310a000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a00000e"]}}, "$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"=>"5335ad2c247580310a00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad2c247580310a00000e"]}} 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"=>"5335ad2c247580310a00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3173ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad2c247580310a00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335ad2b247580310a000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1578ms) 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.5789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002", "_id"=>{"$ne"=>"5335ad2c247580310a000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4907ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad2c247580310a000004"}]}]}, "$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"=>"5335ad2c247580310a000010", "parent_ids"=>["5335ad2c247580310a000004"], "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"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000010"]}}, "$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"=>"5335ad2c247580310a000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad2c247580310a000010"]}} 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"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5016ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002", "_id"=>{"$ne"=>"5335ad2c247580310a000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad2c247580310a000004"}]}]}, "$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"=>"5335ad2c247580310a000011", "parent_ids"=>["5335ad2c247580310a000004"], "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"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000011"]}}, "$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"=>"5335ad2c247580310a000011"}, "$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"=>["5335ad2c247580310a000011"]}} 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.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002", "_id"=>{"$ne"=>"5335ad2c247580310a000012"}, "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"=>"5335ad2c247580310a000004", "site_id"=>"5335ad2b247580310a000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad2c247580310a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ad2c247580310a000012", "parent_ids"=>["5335ad2c247580310a000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335ad2b247580310a000002", "parent_id"=>"5335ad2c247580310a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000012"]}}, "$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"=>"5335ad2c247580310a000012"}, "$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"=>["5335ad2c247580310a000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3293ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad2c247580310a000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335ad2b247580310a000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5335ad2b247580310a000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335ad2c247580310a000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:11:08 UTC}} flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5040ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335ad2c247580310a000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335ad2b247580310a000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1440ms) 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.5550ms) 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.3669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335ad2c247580310a000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:11:07 UTC, "updated_at"=>2014-03-28 17:11:08 UTC, "memberships"=>[{"_id"=>"5335ad2c247580310a000015", "role"=>"admin", "account_id"=>"5335ad2b247580310a000001"}]}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2c247580310a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4773ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad2c247580310a000014", "_id"=>{"$ne"=>"5335ad2c247580310a000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5335ad2c247580310a000016", "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"=>"5335ad2c247580310a000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2c247580310a000014", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000016"]}}, "$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"=>"5335ad2c247580310a000016"}, "$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"=>["5335ad2c247580310a000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad2c247580310a000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335ad2c247580310a000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2c247580310a000014", "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"=>"5335ad2c247580310a000014", "_id"=>{"$ne"=>"5335ad2c247580310a000018"}, "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"=>"5335ad2c247580310a000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5335ad2c247580310a000018", "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"=>"5335ad2c247580310a000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2c247580310a000014", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000018"]}}, "$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"=>"5335ad2c247580310a000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad2c247580310a000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1175ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad2c247580310a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5335ad2c247580310a000014", "_id"=>{"$ne"=>"5335ad2c247580310a000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad2c247580310a000014"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2651ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ad2c247580310a000019", "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"=>"5335ad2c247580310a000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2c247580310a000014", "template_dependencies.en"=>{"$in"=>["5335ad2c247580310a000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3183ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad2c247580310a000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad2c247580310a000019"]}} 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"=>"5335ad2c247580310a000019", "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"=>"5335ad2c247580310a00001a", "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=>"5335ad2c247580310a000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad2c247580310a000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335ad2c247580310a000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335ad2c247580310a00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335ad2c247580310a000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335ad2c247580310a00001c", "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC, "entries_custom_fields"=>[{"_id"=>"5335ad2c247580310a00001c", "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.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ad2c247580310a00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ad2c247580310a00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad2c247580310a00001b"]}}} (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ad2c247580310a00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ad2c247580310a00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ad2c247580310a00001b", "content_type_id"=>"5335ad2c247580310a00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335ad2c247580310a000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:11:08 UTC, "created_at"=>2014-03-28 17:11:08 UTC}] flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335ad2c247580310a00001b", "original_id"=>"5335ad2c247580310a00001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad2c247580310a00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335ad2c247580310a000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ad2c247580310a00001b", "original_id"=>"5335ad2c247580310a00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1419ms) 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.1271ms) 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.1230ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:11:09 +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.8829ms) 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"=>{"$in"=>["5335ad2b247580310a000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4399ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.3ms) Completed 200 OK in 35.4ms (Views: 29.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:11:09 +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-03-28 18:11:09 +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-03-28 18:11:09 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:11:09 +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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335ad2b247580310a000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5338ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335ad2b247580310a000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:11:09 UTC, "updated_at"=>2014-03-28 17:11:09 UTC}} flags=[] (0.2413ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335ad2b247580310a000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:11:09 UTC, "current_sign_in_at"=>2014-03-28 17:11:09 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 17:11:09 UTC}} flags=[] (0.1440ms) 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-03-28 18:11: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.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ad2b247580310a000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335ad2b247580310a000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.4708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.4238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.7422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"5335ad2c247580310a000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7319ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (28.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335ad2b247580310a000001", :role=>:admin}}}} (0.7298ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (13.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335ad2b247580310a000001"}} (0.5031ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ad2b247580310a000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8101ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.5ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 133.6ms (Views: 117.0ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:11:09 +0100 Served asset /locomotive.css - 200 OK (36ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:11:09 +0100 Served asset /locomotive.js - 200 OK (113ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:11:09 +0100 Served asset /locomotive/search_bar.js - 200 OK (7ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:11:09 +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-03-28 18:11:10 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-28 18:11:10 +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-03-28 18:11:10 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:11: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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ad2b247580310a000001"}, "$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={"_id"=>{"$in"=>["5335ad2b247580310a000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.1332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.1699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.4690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad2b247580310a000002"}, "$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.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335ad2c247580310a000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7801ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335ad2b247580310a000001", :role=>:admin}}}} (0.5660ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ad2b247580310a000001"}} (0.5450ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ad2b247580310a000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.5ms (Views: 43.0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-28 18:11:10 +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.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ad2b247580310a000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335ad2b247580310a000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4549ms) 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"=>"5335ad2b247580310a000002", "locale"=>"en"}} (0.6161ms) Completed 200 OK in 19.4ms (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 (4.0848ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.8176ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9658ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.2111ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8771ms) 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.6611ms) 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.5379ms) 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.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5335ad622475801380000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"545d3c01297ac5714904a530e9a6bdddabbc6d38", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"nLXHx8vVXzyPpntKAs2w", "api_key"=>"16a441cd8d01c9c2656f11de1d916cf765e37a5a", "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 UTC}] flags=[] (0.2019ms) 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.8514ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335ad622475801380000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-28 17:12:02 UTC, "updated_at"=>2014-03-28 17:12:02 UTC, "memberships"=>[{"_id"=>"5335ad622475801380000003", "role"=>"admin", "account_id"=>"5335ad622475801380000001"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad622475801380000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad622475801380000002", "_id"=>{"$ne"=>"5335ad622475801380000004"}, "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"=>"5335ad622475801380000004", "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"=>"5335ad622475801380000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 UTC}] flags=[] (0.2501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad622475801380000004"}, "$orderby"=>{"position"=>1}} 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"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad622475801380000004"]}}, "$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"=>["5335ad622475801380000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad622475801380000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3707ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad622475801380000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335ad622475801380000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad622475801380000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad622475801380000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad622475801380000002", "_id"=>{"$ne"=>"5335ad622475801380000006"}, "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"=>"5335ad622475801380000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ad622475801380000006", "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"=>"5335ad622475801380000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 UTC}] flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad622475801380000006"]}}, "$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"=>"5335ad622475801380000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4938ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad622475801380000006"]}} 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_content_types selector={"site_id"=>"5335ad622475801380000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335ad622475801380000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335ad622475801380000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335ad622475801380000008", "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 UTC, "entries_custom_fields"=>[{"_id"=>"5335ad622475801380000008", "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.2491ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5335ad622475801380000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5335ad622475801380000009", "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", "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 UTC}}} flags=[] (0.2921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ad62247580138000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ad622475801380000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ad622475801380000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad622475801380000007"]}}} (0.3912ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ad62247580138000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ad622475801380000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ad622475801380000007", "content_type_id"=>"5335ad622475801380000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5335ad622475801380000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 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::ContentEntry5335ad622475801380000007", "original_id"=>"5335ad62247580138000000a", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"5335ad62247580138000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5335ad622475801380000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ad622475801380000007", "original_id"=>"5335ad62247580138000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ad62247580138000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ad622475801380000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5335ad622475801380000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3908ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad622475801380000007"]}}} (0.3870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad622475801380000007"]}}} (0.2639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad622475801380000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ad62247580138000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ad622475801380000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ad622475801380000007", "content_type_id"=>"5335ad622475801380000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5335ad622475801380000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:12:02 UTC, "created_at"=>2014-03-28 17:12:02 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5335ad622475801380000007", "original_id"=>"5335ad62247580138000000c", "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"=>"5335ad63247580138000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5335ad622475801380000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ad622475801380000007", "original_id"=>"5335ad62247580138000000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1500ms) 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.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "$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"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002", "_id"=>{"$ne"=>"5335ad63247580138000000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad622475801380000004"}]}]}, "$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"=>"5335ad63247580138000000e", "parent_ids"=>["5335ad622475801380000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad63247580138000000e"]}}, "$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"=>"5335ad63247580138000000e"}, "$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"=>["5335ad63247580138000000e"]}} 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"=>"5335ad63247580138000000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad63247580138000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5335ad622475801380000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad63247580138000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1690ms) 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.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002", "_id"=>{"$ne"=>"5335ad632475801380000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad622475801380000004"}]}]}, "$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"=>"5335ad632475801380000010", "parent_ids"=>["5335ad622475801380000004"], "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"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad632475801380000010"]}}, "$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"=>"5335ad632475801380000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad632475801380000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1063ms) 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.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002", "_id"=>{"$ne"=>"5335ad632475801380000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4973ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad622475801380000004"}]}]}, "$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"=>"5335ad632475801380000011", "parent_ids"=>["5335ad622475801380000004"], "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"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.2573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad632475801380000011"]}}, "$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"=>"5335ad632475801380000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad632475801380000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002", "_id"=>{"$ne"=>"5335ad632475801380000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5335ad622475801380000004", "site_id"=>"5335ad622475801380000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5335ad622475801380000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ad632475801380000012", "parent_ids"=>["5335ad622475801380000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5335ad622475801380000002", "parent_id"=>"5335ad622475801380000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad632475801380000012"]}}, "$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"=>"5335ad632475801380000012"}, "$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"=>["5335ad632475801380000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad632475801380000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad632475801380000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5335ad622475801380000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad632475801380000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5335ad622475801380000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3760ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5335ad622475801380000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-28 17:12:03 UTC}} flags=[] (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002", "template_dependencies.en"=>{"$in"=>["5335ad622475801380000004"]}}, "$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"=>"5335ad622475801380000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5181ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5335ad622475801380000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5335ad622475801380000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2379ms) 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.5519ms) 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.3698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5335ad632475801380000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-28 17:12:02 UTC, "updated_at"=>2014-03-28 17:12:03 UTC, "memberships"=>[{"_id"=>"5335ad632475801380000015", "role"=>"admin", "account_id"=>"5335ad622475801380000001"}]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5335ad632475801380000014", "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"=>"5335ad632475801380000014", "_id"=>{"$ne"=>"5335ad632475801380000016"}, "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"=>"5335ad632475801380000016", "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"=>"5335ad632475801380000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.3548ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad632475801380000014", "template_dependencies.en"=>{"$in"=>["5335ad632475801380000016"]}}, "$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"=>"5335ad632475801380000016"}, "$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"=>["5335ad632475801380000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad632475801380000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad632475801380000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5335ad632475801380000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad632475801380000016", "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"=>"5335ad632475801380000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad632475801380000014", "_id"=>{"$ne"=>"5335ad632475801380000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5335ad632475801380000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5335ad632475801380000018", "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"=>"5335ad632475801380000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad632475801380000014", "template_dependencies.en"=>{"$in"=>["5335ad632475801380000018"]}}, "$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"=>"5335ad632475801380000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad632475801380000018"]}} 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"=>"5335ad632475801380000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad632475801380000014", "_id"=>{"$ne"=>"5335ad632475801380000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8149ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5335ad632475801380000014"}, "$orderby"=>{"position"=>-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_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"=>"5335ad632475801380000019", "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"=>"5335ad632475801380000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad632475801380000014", "template_dependencies.en"=>{"$in"=>["5335ad632475801380000019"]}}, "$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"=>"5335ad632475801380000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5335ad632475801380000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5335ad632475801380000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad63247580138000001a", "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=>"5335ad632475801380000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5335ad632475801380000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5335ad632475801380000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5335ad63247580138000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5335ad632475801380000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5335ad63247580138000001c", "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 UTC, "entries_custom_fields"=>[{"_id"=>"5335ad63247580138000001c", "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.4957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5335ad63247580138000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5335ad63247580138000001b"]}} 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"=>"5335ad63247580138000001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4728ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5335ad63247580138000001b"]}}} (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5335ad63247580138000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5335ad63247580138000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5335ad63247580138000001b", "content_type_id"=>"5335ad63247580138000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5335ad632475801380000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-28 17:12:03 UTC, "created_at"=>2014-03-28 17:12:03 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::ContentEntry5335ad63247580138000001b", "original_id"=>"5335ad63247580138000001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5335ad63247580138000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5335ad632475801380000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5335ad63247580138000001b", "original_id"=>"5335ad63247580138000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1647ms) 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.0918ms) 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.1662ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-28 18:12: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} (0.9160ms) 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"=>{"$in"=>["5335ad622475801380000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.2ms) Completed 200 OK in 39.0ms (Views: 29.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-28 18:12:04 +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-03-28 18:12:04 +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-03-28 18:12:04 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-28 18:12:04 +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.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5335ad622475801380000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335ad622475801380000001"} update={"$set"=>{"remember_created_at"=>2014-03-28 17:12:04 UTC, "updated_at"=>2014-03-28 17:12:04 UTC}} flags=[] (0.1562ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5335ad622475801380000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-28 17:12:04 UTC, "current_sign_in_at"=>2014-03-28 17:12:04 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-28 17:12:04 UTC}} flags=[] (0.3240ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:12:04 +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.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ad622475801380000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5335ad622475801380000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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.0822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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.4420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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"=>"5335ad622475801380000002"}, "$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.3738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5335ad622475801380000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7560ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335ad622475801380000001", :role=>:admin}}}} (0.7992ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (15.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5335ad622475801380000001"}} (0.6351ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ad622475801380000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.6ms) 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.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 135.3ms (Views: 118.5ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-28 18:12:04 +0100 Served asset /locomotive.css - 200 OK (34ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-28 18:12:04 +0100 Served asset /locomotive.js - 200 OK (114ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-28 18:12:05 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-28 18:12:05 +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-03-28 18:12:05 +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-03-28 18:12:05 +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-03-28 18:12:05 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-28 18:12: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 (0.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ad622475801380000001"}, "$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"=>["5335ad622475801380000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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.0331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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} (0.9990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5335ad622475801380000002"}, "$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"=>"5335ad622475801380000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7188ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5335ad622475801380000001", :role=>:admin}}}} (0.5112ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ad622475801380000001"}} (0.4249ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5335ad622475801380000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 60.7ms (Views: 44.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-28 18:12:05 +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.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5335ad622475801380000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["5335ad622475801380000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) 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"=>"5335ad622475801380000002", "locale"=>"en"}} (0.8337ms) Completed 200 OK in 20.7ms (Views: 1.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 (2.8720ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.0664ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5943ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7037ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3688ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3008ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.1081ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.7829ms) 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 (30.6370ms) 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 (6.3989ms) 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.3541ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1611ms) 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.3960ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8628ms) 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.2768ms) 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.5372ms) 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 (9.2289ms) 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.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368272219d67cf01000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0c2926f26ec4d0349307486c8d94fa073871361e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7scZNFJpALmrP5M8Se2j", "api_key"=>"9e559caec8532409c19ba023f15b39eff0d6f9ae", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.1647ms) 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} (34.5311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368272219d67cf01000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:21:05 UTC, "updated_at"=>2014-03-29 08:21:06 UTC, "memberships"=>[{"_id"=>"53368272219d67cf01000003", "role"=>"admin", "account_id"=>"53368272219d67cf01000001"}]}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (26.9940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368272219d67cf01000002", "_id"=>{"$ne"=>"53368272219d67cf01000004"}, "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"=>"53368272219d67cf01000004", "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"=>"53368272219d67cf01000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368272219d67cf01000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368272219d67cf01000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53368272219d67cf01000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368272219d67cf01000002", "_id"=>{"$ne"=>"53368272219d67cf01000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7968ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368272219d67cf01000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53368272219d67cf01000006", "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"=>"53368272219d67cf01000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368272219d67cf01000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368272219d67cf01000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368272219d67cf01000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368272219d67cf01000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368272219d67cf01000008", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC, "entries_custom_fields"=>[{"_id"=>"53368272219d67cf01000008", "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.2460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368272219d67cf01000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368272219d67cf01000009", "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", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}}} flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368272219d67cf0100000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf01000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368272219d67cf01000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4988ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf01000007"]}}} (0.4408ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368272219d67cf0100000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368272219d67cf01000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368272219d67cf01000007", "content_type_id"=>"53368272219d67cf01000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368272219d67cf01000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.1726ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368272219d67cf01000007", "original_id"=>"53368272219d67cf0100000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368272219d67cf0100000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53368272219d67cf01000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368272219d67cf01000007", "original_id"=>"53368272219d67cf0100000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368272219d67cf0100000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf01000007"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53368272219d67cf01000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4983ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf01000007"]}}} (0.3767ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf01000007"]}}} (0.2837ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf01000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368272219d67cf0100000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368272219d67cf01000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368272219d67cf01000007", "content_type_id"=>"53368272219d67cf01000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368272219d67cf01000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368272219d67cf01000007", "original_id"=>"53368272219d67cf0100000c", "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"=>"53368272219d67cf0100000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53368272219d67cf01000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368272219d67cf01000007", "original_id"=>"53368272219d67cf0100000c", "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.6137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002", "_id"=>{"$ne"=>"53368272219d67cf0100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368272219d67cf01000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368272219d67cf0100000e", "parent_ids"=>["53368272219d67cf01000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf0100000e"]}}, "$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"=>"53368272219d67cf0100000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368272219d67cf0100000e"]}} 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"=>"53368272219d67cf0100000e", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368272219d67cf0100000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53368272219d67cf01000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf0100000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1881ms) 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.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002", "_id"=>{"$ne"=>"53368272219d67cf01000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002"}, "$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"=>"53368272219d67cf01000004"}]}]}, "$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"=>"53368272219d67cf01000010", "parent_ids"=>["53368272219d67cf01000004"], "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"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000010"}, "$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"=>["53368272219d67cf01000010"]}} 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.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002", "_id"=>{"$ne"=>"53368272219d67cf01000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002"}, "$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"=>"53368272219d67cf01000004"}]}]}, "$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"=>"53368272219d67cf01000011", "parent_ids"=>["53368272219d67cf01000004"], "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"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000011"]}}, "$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"=>"53368272219d67cf01000011"}, "$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"=>["53368272219d67cf01000011"]}} 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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002", "_id"=>{"$ne"=>"53368272219d67cf01000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8867ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000004", "site_id"=>"53368272219d67cf01000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368272219d67cf01000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53368272219d67cf01000012", "parent_ids"=>["53368272219d67cf01000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368272219d67cf01000002", "parent_id"=>"53368272219d67cf01000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000012"]}}, "$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"=>"53368272219d67cf01000012"}, "$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"=>["53368272219d67cf01000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000012", "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"=>"53368272219d67cf01000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53368272219d67cf01000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "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_sites selector={"$query"=>{"_id"=>"53368272219d67cf01000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368272219d67cf01000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:21:06 UTC}} flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3977ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53368272219d67cf01000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53368272219d67cf01000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1981ms) 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.5279ms) 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.3231ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368272219d67cf01000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:21:05 UTC, "updated_at"=>2014-03-29 08:21:06 UTC, "memberships"=>[{"_id"=>"53368272219d67cf01000015", "role"=>"admin", "account_id"=>"53368272219d67cf01000001"}]}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000014", "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"=>"53368272219d67cf01000014", "_id"=>{"$ne"=>"53368272219d67cf01000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368272219d67cf01000016", "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"=>"53368272219d67cf01000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000014", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000016"]}}, "$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"=>"53368272219d67cf01000016"}, "$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"=>["53368272219d67cf01000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"53368272219d67cf01000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53368272219d67cf01000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368272219d67cf01000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53368272219d67cf01000014", "_id"=>{"$ne"=>"53368272219d67cf01000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368272219d67cf01000014"}, "$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"=>"53368272219d67cf01000018", "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"=>"53368272219d67cf01000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000014", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000018"]}}, "$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"=>"53368272219d67cf01000018"}, "$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"=>["53368272219d67cf01000018"]}} 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"=>"53368272219d67cf01000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"53368272219d67cf01000014", "_id"=>{"$ne"=>"53368272219d67cf01000019"}, "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"=>"53368272219d67cf01000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) 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.2861ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368272219d67cf01000019", "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"=>"53368272219d67cf01000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000014", "template_dependencies.en"=>{"$in"=>["53368272219d67cf01000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368272219d67cf01000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368272219d67cf01000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000019", "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"=>"53368272219d67cf0100001a", "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=>"53368272219d67cf01000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368272219d67cf01000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368272219d67cf01000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368272219d67cf0100001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368272219d67cf01000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368272219d67cf0100001c", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 UTC, "entries_custom_fields"=>[{"_id"=>"53368272219d67cf0100001c", "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.2317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368272219d67cf0100001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf0100001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368272219d67cf0100001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5262ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368272219d67cf0100001b"]}}} (0.5629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368272219d67cf0100001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368272219d67cf0100001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368272219d67cf0100001b", "content_type_id"=>"53368272219d67cf0100001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368272219d67cf01000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:21:06 UTC, "created_at"=>2014-03-29 08:21:06 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::ContentEntry53368272219d67cf0100001b", "original_id"=>"53368272219d67cf0100001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368272219d67cf0100001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53368272219d67cf01000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368272219d67cf0100001b", "original_id"=>"53368272219d67cf0100001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1810ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:21:07 +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.7627ms) 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.6971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368272219d67cf01000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5803ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.8ms) Completed 200 OK in 42.7ms (Views: 36.5ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:21:08 +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-03-29 09:21:08 +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-03-29 09:21:08 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:21: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.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368272219d67cf01000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368272219d67cf01000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:21:08 UTC, "updated_at"=>2014-03-29 08:21:08 UTC}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368272219d67cf01000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:21:08 UTC, "current_sign_in_at"=>2014-03-29 08:21: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-03-29 08:21:08 UTC}} flags=[] (0.2232ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 23.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:21: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.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368272219d67cf01000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368272219d67cf01000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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"=>"53368272219d67cf01000002"}, "$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.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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.7768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368272219d67cf01000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7019ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368272219d67cf01000001", :role=>:admin}}}} (0.7119ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (17.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368272219d67cf01000001"}} (0.4916ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368272219d67cf01000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5851ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (3.9ms) Rendered locomotive/shared/_main_app_header.html.haml (5.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (29.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 143.3ms (Views: 126.5ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:21:08 +0100 Served asset /locomotive.css - 200 OK (33ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:21:08 +0100 Served asset /locomotive.js - 200 OK (124ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:21:08 +0100 Served asset /locomotive/search_bar.js - 200 OK (6ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:21:08 +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-03-29 09:21:08 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 09:21:08 +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-03-29 09:21:08 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:21: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.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368272219d67cf01000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368272219d67cf01000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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.0581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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.1108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368272219d67cf01000002"}, "$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.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368272219d67cf01000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.0202ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368272219d67cf01000001", :role=>:admin}}}} (0.5419ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368272219d67cf01000001"}} (0.3860ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368272219d67cf01000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5741ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 57.2ms (Views: 42.4ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:21:08 +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.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368272219d67cf01000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368272219d67cf01000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) 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"=>"53368272219d67cf01000002", "locale"=>"en"}} (0.6821ms) Completed 500 Internal Server Error in 10.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 (1.4122ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (26.5269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (13.2589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (6.2540ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (8.6839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (3.5431ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1129ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9642ms) 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.5808ms) 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.4621ms) 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.1297ms) 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.1001ms) 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 (15.7998ms) 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.5832ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368297219d67cd0a000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"4f7298d553e653581f76b4fbc8a845f285e9f7c8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"YeuqxpPs7XBiEVr4pFsS", "api_key"=>"f2735801699f89b2eff82db9923d74535de33bb7", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.2329ms) 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.8171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368297219d67cd0a000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:21:43 UTC, "updated_at"=>2014-03-29 08:21:43 UTC, "memberships"=>[{"_id"=>"53368297219d67cd0a000003", "role"=>"admin", "account_id"=>"53368297219d67cd0a000001"}]}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8383ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000002", "_id"=>{"$ne"=>"53368297219d67cd0a000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53368297219d67cd0a000004", "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"=>"53368297219d67cd0a000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.8298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4144ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6323ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53368297219d67cd0a000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000002", "_id"=>{"$ne"=>"53368297219d67cd0a000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53368297219d67cd0a000006", "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"=>"53368297219d67cd0a000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000006"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368297219d67cd0a000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368297219d67cd0a000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368297219d67cd0a000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368297219d67cd0a000008", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC, "entries_custom_fields"=>[{"_id"=>"53368297219d67cd0a000008", "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.2558ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368297219d67cd0a000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368297219d67cd0a000009", "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", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}}} flags=[] (0.2029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368297219d67cd0a00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368297219d67cd0a000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a000007"]}}} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368297219d67cd0a00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368297219d67cd0a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368297219d67cd0a000007", "content_type_id"=>"53368297219d67cd0a000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368297219d67cd0a000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368297219d67cd0a000007", "original_id"=>"53368297219d67cd0a00000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9081ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53368297219d67cd0a000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368297219d67cd0a000007", "original_id"=>"53368297219d67cd0a00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368297219d67cd0a00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368297219d67cd0a000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a000007"]}}} (0.4079ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a000007"]}}} (0.2651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368297219d67cd0a00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368297219d67cd0a000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368297219d67cd0a000007", "content_type_id"=>"53368297219d67cd0a000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368297219d67cd0a000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368297219d67cd0a000007", "original_id"=>"53368297219d67cd0a00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53368297219d67cd0a000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368297219d67cd0a000007", "original_id"=>"53368297219d67cd0a00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1841ms) 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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002", "_id"=>{"$ne"=>"53368297219d67cd0a00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368297219d67cd0a000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a00000e", "parent_ids"=>["53368297219d67cd0a000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a00000e"]}}, "$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"=>"53368297219d67cd0a00000e"}, "$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"=>["53368297219d67cd0a00000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53368297219d67cd0a000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1650ms) 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.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002", "_id"=>{"$ne"=>"53368297219d67cd0a000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368297219d67cd0a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7207ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a000010", "parent_ids"=>["53368297219d67cd0a000004"], "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"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.2289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000010"]}}, "$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"=>"53368297219d67cd0a000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000010"]}} 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={"$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"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002", "_id"=>{"$ne"=>"53368297219d67cd0a000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (3.3689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368297219d67cd0a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a000011", "parent_ids"=>["53368297219d67cd0a000004"], "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"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1981ms) 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.6099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002", "_id"=>{"$ne"=>"53368297219d67cd0a000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000004", "site_id"=>"53368297219d67cd0a000002"}, "$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"=>"53368297219d67cd0a000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a000012", "parent_ids"=>["53368297219d67cd0a000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368297219d67cd0a000002", "parent_id"=>"53368297219d67cd0a000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.4210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000012"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000012"}, "$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"=>["53368297219d67cd0a000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000012", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53368297219d67cd0a000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.3147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "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_sites selector={"$query"=>{"_id"=>"53368297219d67cd0a000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368297219d67cd0a000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:21:43 UTC}} flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6742ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53368297219d67cd0a000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53368297219d67cd0a000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2251ms) 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.6011ms) 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.4222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368297219d67cd0a000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:21:43 UTC, "updated_at"=>2014-03-29 08:21:43 UTC, "memberships"=>[{"_id"=>"53368297219d67cd0a000015", "role"=>"admin", "account_id"=>"53368297219d67cd0a000001"}]}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.8749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000014", "_id"=>{"$ne"=>"53368297219d67cd0a000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7422ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a000016", "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"=>"53368297219d67cd0a000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000014", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000016"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000016", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53368297219d67cd0a000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3107ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000014", "_id"=>{"$ne"=>"53368297219d67cd0a000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a000018", "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"=>"53368297219d67cd0a000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000014", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368297219d67cd0a000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5622ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368297219d67cd0a000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000014", "_id"=>{"$ne"=>"53368297219d67cd0a000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368297219d67cd0a000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2360ms) 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.6828ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368297219d67cd0a000019", "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"=>"53368297219d67cd0a000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.3510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000014", "template_dependencies.en"=>{"$in"=>["53368297219d67cd0a000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"53368297219d67cd0a000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368297219d67cd0a000019"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000019", "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"=>"53368297219d67cd0a00001a", "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=>"53368297219d67cd0a000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368297219d67cd0a000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368297219d67cd0a000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368297219d67cd0a00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368297219d67cd0a000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368297219d67cd0a00001c", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC, "entries_custom_fields"=>[{"_id"=>"53368297219d67cd0a00001c", "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.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368297219d67cd0a00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368297219d67cd0a00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368297219d67cd0a00001b"]}}} (0.5810ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368297219d67cd0a00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368297219d67cd0a00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368297219d67cd0a00001b", "content_type_id"=>"53368297219d67cd0a00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368297219d67cd0a000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:21:43 UTC, "created_at"=>2014-03-29 08:21:43 UTC}] flags=[] (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368297219d67cd0a00001b", "original_id"=>"53368297219d67cd0a00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368297219d67cd0a00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53368297219d67cd0a000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368297219d67cd0a00001b", "original_id"=>"53368297219d67cd0a00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1590ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:21:45 +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.8700ms) 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.7730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368297219d67cd0a000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (26.0ms) Completed 200 OK in 52.0ms (Views: 44.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:21:45 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (16ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 09:21:45 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 09:21:45 +0100 Served asset /locomotive/background/body.png - 200 OK (3ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:21:45 +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.8128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368297219d67cd0a000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7122ms) 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.6511ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368297219d67cd0a000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:21:45 UTC, "updated_at"=>2014-03-29 08:21:45 UTC}} flags=[] (0.2367ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368297219d67cd0a000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:21:45 UTC, "current_sign_in_at"=>2014-03-29 08:21:45 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 08:21:45 UTC}} flags=[] (0.2851ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 30.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:21:45 +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.5359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368297219d67cd0a000001"}, "$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"=>["53368297219d67cd0a000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.7140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.9691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.9050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.8509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368297219d67cd0a000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9229ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (43.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (14.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (20.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (97.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (2.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"53368297219d67cd0a000001", :role=>:admin}}}} (1.4801ms) Rendered locomotive/shared/_main_app_head.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (29.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368297219d67cd0a000001"}} (1.5109ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (3.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368297219d67cd0a000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2329ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (7.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (15.2ms) Rendered locomotive/shared/_main_app_header.html.haml (19.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (59.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (4.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.9ms) Completed 200 OK in 250.0ms (Views: 223.1ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:21:46 +0100 Served asset /locomotive.css - 200 OK (56ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:21:46 +0100 Served asset /locomotive.js - 200 OK (164ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:21:46 +0100 Served asset /locomotive/search_bar.js - 200 OK (8ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:21:46 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 09:21:46 +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-03-29 09:21:46 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 09:21:46 +0100 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:21: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 (3.9489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368297219d67cd0a000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.8780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368297219d67cd0a000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.7560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.0499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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} (3.8881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.4880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368297219d67cd0a000002"}, "$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.8640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368297219d67cd0a000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (2.6970ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (27.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (12.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (43.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368297219d67cd0a000001", :role=>:admin}}}} (1.8990ms) Rendered locomotive/shared/_main_app_head.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368297219d67cd0a000001"}} (1.4510ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368297219d67cd0a000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1091ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (5.6ms) Rendered locomotive/shared/_main_app_header.html.haml (6.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (25.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (1.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.7ms) Completed 200 OK in 138.6ms (Views: 101.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:21: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.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368297219d67cd0a000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368297219d67cd0a000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5140ms) 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"=>"53368297219d67cd0a000002", "locale"=>"en"}} (0.6380ms) Completed 200 OK in 32.0ms (Views: 2.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 (3.6123ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (5.9080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.2988ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4327ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1971ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0269ms) 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.6201ms) Creating scope :root. Overwriting existing method Locomotive::Page.root. MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.1969ms) 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.2763ms) 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.5548ms) 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.1550ms) 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.1361ms) 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 (17.4599ms) 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.4892ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368665219d67f133000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"32a7d360a738febfe939985bd6603a3bd75027d7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"F6WFaVc6Wxtz7taJ6YQQ", "api_key"=>"0f7ba8d09f2d4e3a40f462ce2d9cc342760e940f", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.1862ms) 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.8082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368665219d67f133000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:37:57 UTC, "updated_at"=>2014-03-29 08:37:57 UTC, "memberships"=>[{"_id"=>"53368665219d67f133000003", "role"=>"admin", "account_id"=>"53368665219d67f133000001"}]}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368665219d67f133000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368665219d67f133000002", "_id"=>{"$ne"=>"53368665219d67f133000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53368665219d67f133000004", "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"=>"53368665219d67f133000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000004"}, "$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"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368665219d67f133000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f133000004", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f133000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53368665219d67f133000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f133000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1984ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368665219d67f133000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53368665219d67f133000002", "_id"=>{"$ne"=>"53368665219d67f133000006"}, "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"=>"53368665219d67f133000002"}, "$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"=>"53368665219d67f133000006", "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"=>"53368665219d67f133000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000006"]}}, "$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"=>"53368665219d67f133000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368665219d67f133000006"]}} 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"=>"53368665219d67f133000002", "slug"=>"examples"} 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"=>"53368665219d67f133000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368665219d67f133000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368665219d67f133000008", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC, "entries_custom_fields"=>[{"_id"=>"53368665219d67f133000008", "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.2379ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368665219d67f133000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368665219d67f133000009", "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", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}}} flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368665219d67f13300000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f133000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368665219d67f133000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f133000007"]}}} (0.4148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368665219d67f13300000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368665219d67f133000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368665219d67f133000007", "content_type_id"=>"53368665219d67f133000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368665219d67f133000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368665219d67f133000007", "original_id"=>"53368665219d67f13300000a", "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"=>"53368665219d67f13300000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53368665219d67f133000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368665219d67f133000007", "original_id"=>"53368665219d67f13300000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368665219d67f13300000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f133000007"]}} 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"=>"53368665219d67f133000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3808ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f133000007"]}}} (0.3810ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f133000007"]}}} (0.3221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f133000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368665219d67f13300000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368665219d67f133000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368665219d67f133000007", "content_type_id"=>"53368665219d67f133000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368665219d67f133000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 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::ContentEntry53368665219d67f133000007", "original_id"=>"53368665219d67f13300000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f13300000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53368665219d67f133000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368665219d67f133000007", "original_id"=>"53368665219d67f13300000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "$or"=>[{"slug.en"=>"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"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002", "_id"=>{"$ne"=>"53368665219d67f13300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4327ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368665219d67f133000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368665219d67f13300000e", "parent_ids"=>["53368665219d67f133000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f13300000e"]}}, "$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"=>"53368665219d67f13300000e"}, "$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"=>["53368665219d67f13300000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f13300000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f13300000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53368665219d67f133000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f13300000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2038ms) 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.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002", "_id"=>{"$ne"=>"53368665219d67f133000010"}, "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"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002"}, "$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"=>"53368665219d67f133000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5198ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368665219d67f133000010", "parent_ids"=>["53368665219d67f133000004"], "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"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000010"}, "$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"=>["53368665219d67f133000010"]}} 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_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"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002", "_id"=>{"$ne"=>"53368665219d67f133000011"}, "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"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368665219d67f133000004"}]}]}, "$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"=>"53368665219d67f133000011", "parent_ids"=>["53368665219d67f133000004"], "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"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368665219d67f133000011"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002", "_id"=>{"$ne"=>"53368665219d67f133000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000004", "site_id"=>"53368665219d67f133000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368665219d67f133000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"53368665219d67f133000012", "parent_ids"=>["53368665219d67f133000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368665219d67f133000002", "parent_id"=>"53368665219d67f133000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000012"}, "$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"=>["53368665219d67f133000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f133000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f133000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53368665219d67f133000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f133000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1888ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368665219d67f133000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368665219d67f133000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:37:57 UTC}} flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000004"]}}, "$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"=>"53368665219d67f133000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53368665219d67f133000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53368665219d67f133000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} 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 (0.5558ms) 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.3369ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368665219d67f133000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:37:57 UTC, "updated_at"=>2014-03-29 08:37:57 UTC, "memberships"=>[{"_id"=>"53368665219d67f133000015", "role"=>"admin", "account_id"=>"53368665219d67f133000001"}]}] flags=[] (0.1872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368665219d67f133000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368665219d67f133000014", "_id"=>{"$ne"=>"53368665219d67f133000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368665219d67f133000016", "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"=>"53368665219d67f133000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000014", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000016"}, "$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"=>["53368665219d67f133000016"]}} 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"=>"53368665219d67f133000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f133000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53368665219d67f133000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f133000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368665219d67f133000014", "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"=>"53368665219d67f133000014", "_id"=>{"$ne"=>"53368665219d67f133000018"}, "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"=>"53368665219d67f133000014"}, "$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"=>"53368665219d67f133000018", "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"=>"53368665219d67f133000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000014", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000018"]}}, "$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"=>"53368665219d67f133000018"}, "$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"=>["53368665219d67f133000018"]}} 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"=>"53368665219d67f133000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368665219d67f133000014", "_id"=>{"$ne"=>"53368665219d67f133000019"}, "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"=>"53368665219d67f133000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2530ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368665219d67f133000019", "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"=>"53368665219d67f133000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000014", "template_dependencies.en"=>{"$in"=>["53368665219d67f133000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368665219d67f133000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3862ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368665219d67f133000019"]}} 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"=>"53368665219d67f133000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f13300001a", "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=>"53368665219d67f133000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53368665219d67f133000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368665219d67f133000014", "slug"=>"examples"} 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"=>"53368665219d67f13300001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368665219d67f133000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368665219d67f13300001c", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC, "entries_custom_fields"=>[{"_id"=>"53368665219d67f13300001c", "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"=>"53368665219d67f13300001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f13300001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5336ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368665219d67f13300001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368665219d67f13300001b"]}}} (0.3922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368665219d67f13300001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368665219d67f13300001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368665219d67f13300001b", "content_type_id"=>"53368665219d67f13300001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368665219d67f133000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:37:57 UTC, "created_at"=>2014-03-29 08:37:57 UTC}] flags=[] (0.2332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53368665219d67f13300001b", "original_id"=>"53368665219d67f13300001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53368665219d67f13300001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53368665219d67f133000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53368665219d67f13300001b", "original_id"=>"53368665219d67f13300001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1631ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:37:58 +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.8411ms) 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.7482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368665219d67f133000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5519ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.1ms) Completed 200 OK in 37.8ms (Views: 30.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:37:59 +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-03-29 09:37:59 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (6ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 09:37:59 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:37:59 +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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368665219d67f133000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4313ms) 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.5550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368665219d67f133000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:37:59 UTC, "updated_at"=>2014-03-29 08:37:59 UTC}} flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368665219d67f133000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:37:59 UTC, "current_sign_in_at"=>2014-03-29 08:37:59 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 08:37:59 UTC}} flags=[] (0.1738ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:37:59 +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.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368665219d67f133000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368665219d67f133000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002"}, "$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"=>"53368665219d67f133000002"}, "$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.4131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368665219d67f133000002"}, "$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"=>"53368665219d67f133000002"}, "$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.4172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368665219d67f133000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7811ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (27.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368665219d67f133000001", :role=>:admin}}}} (0.5760ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368665219d67f133000001"}} (0.4711ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (2.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368665219d67f133000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8609ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (4.4ms) Rendered locomotive/shared/_main_app_header.html.haml (6.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (28.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 129.5ms (Views: 112.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:37:59 +0100 Served asset /locomotive.js - 200 OK (106ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:37:59 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:37:59 +0100 Served asset /locomotive/search_bar.css - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:37:59 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 09:37:59 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 09:37:59 +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-03-29 09:37:59 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:37:59 +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.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368665219d67f133000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368665219d67f133000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002"}, "$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.1363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368665219d67f133000002"}, "$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.4448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368665219d67f133000002"}, "$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.5808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368665219d67f133000002"}, "$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.3648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368665219d67f133000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9792ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368665219d67f133000001", :role=>:admin}}}} (0.5529ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368665219d67f133000001"}} (0.4139ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368665219d67f133000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5870ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 60.6ms (Views: 44.4ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:37:59 +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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368665219d67f133000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368665219d67f133000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) 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"=>"53368665219d67f133000002", "locale"=>"en"}} (0.8199ms) Completed 200 OK in 23.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.0512ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.8939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.1839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9079ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8311ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7229ms) 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.5388ms) 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.6609ms) 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.1438ms) 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.1631ms) 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.6890ms) 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.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336867a219d6765d1000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c7b7650cd3f1c010377698c2e4f1c5d4782aa08b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"eTkuVqs1pyhVW7kL12L1", "api_key"=>"d81db123f54082d9037ac3dd48ce5bab5bd75868", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.1628ms) 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.8652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336867a219d6765d1000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:38:17 UTC, "updated_at"=>2014-03-29 08:38:18 UTC, "memberships"=>[{"_id"=>"5336867a219d6765d1000003", "role"=>"admin", "account_id"=>"5336867a219d6765d1000001"}]}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867a219d6765d1000002", "_id"=>{"$ne"=>"5336867a219d6765d1000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5336867a219d6765d1000004", "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"=>"5336867a219d6765d1000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867a219d6765d1000004"}, "$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"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000004"]}}, "$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"=>["5336867a219d6765d1000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d1000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336867a219d6765d1000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867a219d6765d1000002", "_id"=>{"$ne"=>"5336867a219d6765d1000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867a219d6765d1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5336867a219d6765d1000006", "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"=>"5336867a219d6765d1000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000006"]}}, "$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"=>"5336867a219d6765d1000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3922ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867a219d6765d1000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336867a219d6765d1000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336867a219d6765d1000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336867a219d6765d1000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336867a219d6765d1000008", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC, "entries_custom_fields"=>[{"_id"=>"5336867a219d6765d1000008", "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.2611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336867a219d6765d1000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336867a219d6765d1000009", "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", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}}} flags=[] (0.1853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867a219d6765d100000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d1000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336867a219d6765d1000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d1000007"]}}} (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867a219d6765d100000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867a219d6765d1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867a219d6765d1000007", "content_type_id"=>"5336867a219d6765d1000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336867a219d6765d1000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867a219d6765d1000007", "original_id"=>"5336867a219d6765d100000a", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d100000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5336867a219d6765d1000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867a219d6765d1000007", "original_id"=>"5336867a219d6765d100000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867a219d6765d100000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d1000007"]}} 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"=>"5336867a219d6765d1000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d1000007"]}}} (0.4110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d1000007"]}}} (0.3700ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d1000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867a219d6765d100000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867a219d6765d1000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867a219d6765d1000007", "content_type_id"=>"5336867a219d6765d1000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336867a219d6765d1000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867a219d6765d1000007", "original_id"=>"5336867a219d6765d100000c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d100000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5336867a219d6765d1000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867a219d6765d1000007", "original_id"=>"5336867a219d6765d100000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002", "_id"=>{"$ne"=>"5336867a219d6765d100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867a219d6765d1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867a219d6765d100000e", "parent_ids"=>["5336867a219d6765d1000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d100000e"]}}, "$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"=>"5336867a219d6765d100000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867a219d6765d100000e"]}} 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"=>"5336867a219d6765d100000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d100000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5336867a219d6765d1000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d100000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1941ms) 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.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002", "_id"=>{"$ne"=>"5336867a219d6765d1000010"}, "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"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867a219d6765d1000004"}]}]}, "$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"=>"5336867a219d6765d1000010", "parent_ids"=>["5336867a219d6765d1000004"], "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"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000010"]}}, "$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"=>"5336867a219d6765d1000010"}, "$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"=>["5336867a219d6765d1000010"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002", "_id"=>{"$ne"=>"5336867a219d6765d1000011"}, "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"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867a219d6765d1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867a219d6765d1000011", "parent_ids"=>["5336867a219d6765d1000004"], "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"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000011"]}}, "$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"=>"5336867a219d6765d1000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867a219d6765d1000011"]}} 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.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002", "_id"=>{"$ne"=>"5336867a219d6765d1000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867a219d6765d1000004", "site_id"=>"5336867a219d6765d1000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867a219d6765d1000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867a219d6765d1000012", "parent_ids"=>["5336867a219d6765d1000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336867a219d6765d1000002", "parent_id"=>"5336867a219d6765d1000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000012"]}}, "$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"=>"5336867a219d6765d1000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867a219d6765d1000012"]}} 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"=>"5336867a219d6765d1000012", "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"=>"5336867a219d6765d1000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5336867a219d6765d1000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"5336867a219d6765d1000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4120ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336867a219d6765d1000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:38:18 UTC}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000004"]}}, "$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"=>"5336867a219d6765d1000004", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336867a219d6765d1000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5336867a219d6765d1000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1471ms) 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.5410ms) 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.3569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336867a219d6765d1000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:38:17 UTC, "updated_at"=>2014-03-29 08:38:18 UTC, "memberships"=>[{"_id"=>"5336867a219d6765d1000015", "role"=>"admin", "account_id"=>"5336867a219d6765d1000001"}]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5336867a219d6765d1000014", "_id"=>{"$ne"=>"5336867a219d6765d1000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5336867a219d6765d1000016", "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"=>"5336867a219d6765d1000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000014", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000016"]}}, "$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"=>"5336867a219d6765d1000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867a219d6765d1000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d1000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336867a219d6765d1000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5336867a219d6765d1000014", "_id"=>{"$ne"=>"5336867a219d6765d1000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867a219d6765d1000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867a219d6765d1000018", "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"=>"5336867a219d6765d1000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000014", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000018"]}}, "$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"=>"5336867a219d6765d1000018"}, "$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"=>["5336867a219d6765d1000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867a219d6765d1000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5336867a219d6765d1000014", "_id"=>{"$ne"=>"5336867a219d6765d1000019"}, "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"=>"5336867a219d6765d1000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5336867a219d6765d1000019", "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"=>"5336867a219d6765d1000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000014", "template_dependencies.en"=>{"$in"=>["5336867a219d6765d1000019"]}}, "$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"=>"5336867a219d6765d1000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867a219d6765d1000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d100001a", "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=>"5336867a219d6765d1000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867a219d6765d1000019", "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"=>"5336867a219d6765d1000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336867a219d6765d100001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336867a219d6765d1000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336867a219d6765d100001c", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 UTC, "entries_custom_fields"=>[{"_id"=>"5336867a219d6765d100001c", "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.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867a219d6765d100001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d100001b"]}} 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"=>"5336867a219d6765d100001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4539ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867a219d6765d100001b"]}}} (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867a219d6765d100001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867a219d6765d100001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867a219d6765d100001b", "content_type_id"=>"5336867a219d6765d100001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336867a219d6765d1000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:18 UTC, "created_at"=>2014-03-29 08:38:18 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::ContentEntry5336867a219d6765d100001b", "original_id"=>"5336867a219d6765d100001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4058ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867a219d6765d100001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5336867a219d6765d1000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867a219d6765d100001b", "original_id"=>"5336867a219d6765d100001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1349ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:38: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.8309ms) 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.6142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336867a219d6765d1000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5019ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.7ms) Completed 200 OK in 36.2ms (Views: 29.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:38:19 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (6ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 09:38:20 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (6ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 09:38:20 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:38: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.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336867a219d6765d1000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5832ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336867a219d6765d1000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:38:20 UTC, "updated_at"=>2014-03-29 08:38:20 UTC}} flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336867a219d6765d1000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:38:20 UTC, "current_sign_in_at"=>2014-03-29 08:38: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-03-29 08:38:20 UTC}} flags=[] (0.1521ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:38: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.6683ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336867a219d6765d1000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336867a219d6765d1000001"]}} 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"=>"5336867a219d6765d1000002"}, "$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.1251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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.4551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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"=>"5336867a219d6765d1000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6771ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (47.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336867a219d6765d1000001", :role=>:admin}}}} (0.7291ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336867a219d6765d1000001"}} (0.5009ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336867a219d6765d1000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8247ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (4.5ms) Rendered locomotive/shared/_main_app_header.html.haml (6.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (29.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 135.8ms (Views: 113.1ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:38:20 +0100 Served asset /locomotive.js - 200 OK (101ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:38:20 +0100 Served asset /locomotive.css - 200 OK (40ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:38:20 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:38:20 +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-03-29 09:38:20 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 09:38:20 +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-03-29 09:38: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-03-29 09:38: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.5896ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336867a219d6765d1000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336867a219d6765d1000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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.4169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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.1210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336867a219d6765d1000002"}, "$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.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336867a219d6765d1000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6759ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (20.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336867a219d6765d1000001", :role=>:admin}}}} (0.5240ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336867a219d6765d1000001"}} (0.4921ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336867a219d6765d1000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.1ms) Rendered locomotive/shared/_main_app_header.html.haml (1.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 55.9ms (Views: 40.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:38: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.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336867a219d6765d1000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336867a219d6765d1000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4649ms) 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"=>"5336867a219d6765d1000002", "locale"=>"en"}} (0.6211ms) Completed 200 OK in 19.7ms (Views: 2.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 (1.2710ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.9070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.4199ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3969ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1098ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8891ms) 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 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.1459ms) 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.1228ms) 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.0498ms) 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.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336867d219d6765d100001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"ab91976e7fe002962c77c1475669d1a6e1e70d21", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"W2kpM5zfsFASdiaH93MY", "api_key"=>"d4bba3dcdc32138dcf6fa3831d492d1b0cc53b67", "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.1822ms) 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.8938ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336867d219d6765d1000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:38:17 UTC, "updated_at"=>2014-03-29 08:38:21 UTC, "memberships"=>[{"_id"=>"5336867d219d6765d1000021", "role"=>"admin", "account_id"=>"5336867d219d6765d100001f"}]}] flags=[] (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6027ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000020", "_id"=>{"$ne"=>"5336867d219d6765d1000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5949ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d1000022", "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"=>"5336867d219d6765d1000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.3338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000022"]}}, "$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"=>"5336867d219d6765d1000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5391ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d1000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867d219d6765d1000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336867d219d6765d1000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000020", "_id"=>{"$ne"=>"5336867d219d6765d1000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5336867d219d6765d1000024", "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"=>"5336867d219d6765d1000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000024"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d1000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336867d219d6765d1000020", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5336867d219d6765d1000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336867d219d6765d1000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336867d219d6765d1000026", "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC, "entries_custom_fields"=>[{"_id"=>"5336867d219d6765d1000026", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336867d219d6765d1000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336867d219d6765d1000027", "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", "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}}} flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867d219d6765d1000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867d219d6765d1000025"]}} 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_content_entries selector={"content_type_id"=>"5336867d219d6765d1000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5238ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867d219d6765d1000025"]}}} (0.6788ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867d219d6765d1000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867d219d6765d1000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867d219d6765d1000025", "content_type_id"=>"5336867d219d6765d1000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336867d219d6765d1000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867d219d6765d1000025", "original_id"=>"5336867d219d6765d1000028", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"5336867d219d6765d1000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5336867d219d6765d1000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867d219d6765d1000025", "original_id"=>"5336867d219d6765d1000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867d219d6765d100002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867d219d6765d1000025"]}} 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_entries selector={"content_type_id"=>"5336867d219d6765d1000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5603ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867d219d6765d1000025"]}}} (0.5920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867d219d6765d1000025"]}}} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867d219d6765d1000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8192ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867d219d6765d100002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867d219d6765d1000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867d219d6765d1000025", "content_type_id"=>"5336867d219d6765d1000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336867d219d6765d1000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867d219d6765d1000025", "original_id"=>"5336867d219d6765d100002a", "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"=>"5336867d219d6765d100002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5336867d219d6765d1000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867d219d6765d1000025", "original_id"=>"5336867d219d6765d100002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.3040ms) 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.5958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020", "_id"=>{"$ne"=>"5336867d219d6765d100002c"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867d219d6765d1000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d100002c", "parent_ids"=>["5336867d219d6765d1000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d100002c"]}}, "$orderby"=>{"position"=>1}} 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=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d100002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8140ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d100002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d100002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867d219d6765d100002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5336867d219d6765d1000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d100002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.4330ms) 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.0912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020", "_id"=>{"$ne"=>"5336867d219d6765d100002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020"}, "$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"=>"5336867d219d6765d1000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d100002e", "parent_ids"=>["5336867d219d6765d1000022"], "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"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.2806ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d100002e"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"5336867d219d6765d100002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d100002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3099ms) 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.7277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020", "_id"=>{"$ne"=>"5336867d219d6765d100002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867d219d6765d1000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d100002f", "parent_ids"=>["5336867d219d6765d1000022"], "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"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d100002f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d100002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7253ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d100002f"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020", "_id"=>{"$ne"=>"5336867d219d6765d1000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000022", "site_id"=>"5336867d219d6765d1000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867d219d6765d1000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5672ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d1000030", "parent_ids"=>["5336867d219d6765d1000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336867d219d6765d1000020", "parent_id"=>"5336867d219d6765d1000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000030"]}}, "$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"=>"5336867d219d6765d1000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d1000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"5336867d219d6765d1000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5336867d219d6765d1000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336867d219d6765d1000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336867d219d6765d1000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:38:21 UTC}} flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000022"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6042ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336867d219d6765d1000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5336867d219d6765d1000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2379ms) 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.6363ms) 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.3610ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336867d219d6765d1000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:38:17 UTC, "updated_at"=>2014-03-29 08:38:21 UTC, "memberships"=>[{"_id"=>"5336867d219d6765d1000033", "role"=>"admin", "account_id"=>"5336867d219d6765d100001f"}]}] flags=[] (0.5012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000032", "_id"=>{"$ne"=>"5336867d219d6765d1000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d1000034", "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"=>"5336867d219d6765d1000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.2928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000032", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000034"}, "$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"=>["5336867d219d6765d1000034"]}} 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"=>"5336867d219d6765d1000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867d219d6765d1000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336867d219d6765d1000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2577ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000032", "_id"=>{"$ne"=>"5336867d219d6765d1000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"5336867d219d6765d1000036", "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"=>"5336867d219d6765d1000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000032", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000036"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4847ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d1000036"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867d219d6765d1000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000032", "_id"=>{"$ne"=>"5336867d219d6765d1000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867d219d6765d1000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7122ms) 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.3431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867d219d6765d1000037", "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"=>"5336867d219d6765d1000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:21 UTC, "created_at"=>2014-03-29 08:38:21 UTC}] flags=[] (0.2978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000032", "template_dependencies.en"=>{"$in"=>["5336867d219d6765d1000037"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336867d219d6765d1000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867d219d6765d1000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d1000038", "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=>"5336867d219d6765d1000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867d219d6765d1000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336867d219d6765d1000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336867e219d6765d1000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336867d219d6765d1000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336867e219d6765d100003a", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC, "entries_custom_fields"=>[{"_id"=>"5336867e219d6765d100003a", "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.4270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867e219d6765d100003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000039"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336867e219d6765d1000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6158ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000039"]}}} (0.7889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867e219d6765d100003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867e219d6765d1000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867e219d6765d1000039", "content_type_id"=>"5336867e219d6765d1000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336867d219d6765d1000032", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000039", "original_id"=>"5336867e219d6765d100003b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d100003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5336867d219d6765d1000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000039", "original_id"=>"5336867e219d6765d100003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2711ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:38:22 +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 (1.3649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9701ms) Rendered text template (0.0ms) Completed 200 OK in 14.9ms (Views: 5.1ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 09:38:22 +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.9120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "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.0278ms) 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"=>"5336867d219d6765d1000020", "locale"=>"en"}} (0.7639ms) Rendered text template (0.0ms) Completed 200 OK in 12.0ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 09:38:22 +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 (1.8880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "depth"=>1, "fullpath.en"=>{"$in"=>["findable", "content_type_template"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1840ms) Rendered text template (0.0ms) Completed 200 OK in 13.8ms (Views: 0.6ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:38:22 +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.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) Rendered text template (0.0ms) Completed 200 OK in 6.0ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-29 09:38:22 +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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867d219d6765d1000020", "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.9491ms) 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"=>"5336867d219d6765d1000020", "locale"=>"en"}} (0.6349ms) Rendered text template (0.0ms) Completed 200 OK in 8.9ms (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.7420ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (1.3897ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2028ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2543ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1082ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7181ms) 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.4702ms) 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.1361ms) 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.2558ms) 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.6349ms) 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.5260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336867e219d6765d100003d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e38f66271bef3e190467c20597cda4133e1e9d69", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"73WraTsQAV3GCnHdKj2e", "api_key"=>"5f3e86413ac4bb83fdce6972c6889d83f6d5ba23", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.1748ms) 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.7379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336867e219d6765d100003e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:38:17 UTC, "updated_at"=>2014-03-29 08:38:22 UTC, "memberships"=>[{"_id"=>"5336867e219d6765d100003f", "role"=>"admin", "account_id"=>"5336867e219d6765d100003d"}]}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d100003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7827ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867e219d6765d100003e", "_id"=>{"$ne"=>"5336867e219d6765d1000040"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5336867e219d6765d1000040", "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"=>"5336867e219d6765d100003e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.4554ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d1000040"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336867e219d6765d1000040"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9751ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d1000040"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d1000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3978ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d1000041", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336867e219d6765d100003e", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d1000040", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d100003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867e219d6765d100003e", "_id"=>{"$ne"=>"5336867e219d6765d1000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867e219d6765d100003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867e219d6765d1000042", "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"=>"5336867e219d6765d100003e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.3448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d1000042"]}}, "$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"=>"5336867e219d6765d1000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d1000042"]}} 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"=>"5336867e219d6765d100003e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336867e219d6765d1000043", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336867e219d6765d100003e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336867e219d6765d1000044", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC, "entries_custom_fields"=>[{"_id"=>"5336867e219d6765d1000044", "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.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336867e219d6765d1000043"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336867e219d6765d1000045", "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", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}}} flags=[] (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867e219d6765d1000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}} 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"=>"5336867e219d6765d1000043", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}}} (0.5388ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867e219d6765d1000046", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867e219d6765d1000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867e219d6765d1000043", "content_type_id"=>"5336867e219d6765d1000043", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336867e219d6765d100003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000043", "original_id"=>"5336867e219d6765d1000046", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d1000047", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5336867e219d6765d100003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000043", "original_id"=>"5336867e219d6765d1000046", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867e219d6765d1000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336867e219d6765d1000043", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}}} (0.4349ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}}} (0.3269ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6049ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867e219d6765d1000048", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867e219d6765d1000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867e219d6765d1000043", "content_type_id"=>"5336867e219d6765d1000043", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336867e219d6765d100003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 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::ContentEntry5336867e219d6765d1000043", "original_id"=>"5336867e219d6765d1000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d1000049", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5336867e219d6765d100003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000043", "original_id"=>"5336867e219d6765d1000048", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1578ms) 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.6902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e", "_id"=>{"$ne"=>"5336867e219d6765d100004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867e219d6765d1000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5336867e219d6765d100004a", "parent_ids"=>["5336867e219d6765d1000040"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d100004a"]}}, "$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"=>"5336867e219d6765d100004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d100004a"]}} 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"=>"5336867e219d6765d100004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d100004b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5336867e219d6765d100003e", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d100004a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2289ms) 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.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e", "_id"=>{"$ne"=>"5336867e219d6765d100004c"}, "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"=>{"parent_id"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867e219d6765d1000040"}]}]}, "$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"=>"5336867e219d6765d100004c", "parent_ids"=>["5336867e219d6765d1000040"], "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"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d100004c"]}}, "$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"=>"5336867e219d6765d100004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d100004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1721ms) 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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "$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"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e", "_id"=>{"$ne"=>"5336867e219d6765d100004d"}, "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"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336867e219d6765d1000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867e219d6765d100004d", "parent_ids"=>["5336867e219d6765d1000040"], "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"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d100004d"]}}, "$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"=>"5336867e219d6765d100004d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4952ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d100004d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e", "_id"=>{"$ne"=>"5336867e219d6765d100004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5336867e219d6765d1000040", "site_id"=>"5336867e219d6765d100003e"}, "$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"=>"5336867e219d6765d1000040"}]}]}, "$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"=>"5336867e219d6765d100004e", "parent_ids"=>["5336867e219d6765d1000040"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336867e219d6765d100003e", "parent_id"=>"5336867e219d6765d1000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d100004e"]}}, "$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"=>"5336867e219d6765d100004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d100004e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d100004e", "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"=>"5336867e219d6765d100004f", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5336867e219d6765d100003e", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d100004e", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6337ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336867e219d6765d100003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4282ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336867e219d6765d1000040"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:38:22 UTC}} flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d1000040"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d1000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6132ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336867e219d6765d1000041"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5336867e219d6765d100003e", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1569ms) 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.5109ms) 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.3488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336867e219d6765d1000050", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:38:17 UTC, "updated_at"=>2014-03-29 08:38:22 UTC, "memberships"=>[{"_id"=>"5336867e219d6765d1000051", "role"=>"admin", "account_id"=>"5336867e219d6765d100003d"}]}] flags=[] (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d1000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"5336867e219d6765d1000050", "_id"=>{"$ne"=>"5336867e219d6765d1000052"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5336867e219d6765d1000052", "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"=>"5336867e219d6765d1000050", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d1000050", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d1000052"]}}, "$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"=>"5336867e219d6765d1000052"}, "$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"=>["5336867e219d6765d1000052"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d1000052", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d1000053", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336867e219d6765d1000050", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d1000052", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d1000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"5336867e219d6765d1000050", "_id"=>{"$ne"=>"5336867e219d6765d1000054"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336867e219d6765d1000050"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336867e219d6765d1000054", "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"=>"5336867e219d6765d1000050", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d1000050", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d1000054"]}}, "$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"=>"5336867e219d6765d1000054"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3667ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d1000054"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336867e219d6765d1000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"5336867e219d6765d1000050", "_id"=>{"$ne"=>"5336867e219d6765d1000055"}, "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"=>"5336867e219d6765d1000050"}, "$orderby"=>{"position"=>-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_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"=>"5336867e219d6765d1000055", "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"=>"5336867e219d6765d1000050", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d1000050", "template_dependencies.en"=>{"$in"=>["5336867e219d6765d1000055"]}}, "$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"=>"5336867e219d6765d1000055"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336867e219d6765d1000055"]}} 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"=>"5336867e219d6765d1000055", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d1000056", "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=>"5336867e219d6765d1000050", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336867e219d6765d1000055", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336867e219d6765d1000050", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336867e219d6765d1000057", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336867e219d6765d1000050", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336867e219d6765d1000058", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC, "entries_custom_fields"=>[{"_id"=>"5336867e219d6765d1000058", "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.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867e219d6765d1000059"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000057"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336867e219d6765d1000057", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000057"]}}} (0.4930ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336867e219d6765d1000059", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336867e219d6765d1000057", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336867e219d6765d1000057", "content_type_id"=>"5336867e219d6765d1000057", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336867e219d6765d1000050", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:22 UTC, "created_at"=>2014-03-29 08:38:22 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000057", "original_id"=>"5336867e219d6765d1000059", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336867e219d6765d100005a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5336867e219d6765d1000050", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000057", "original_id"=>"5336867e219d6765d1000059", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1607ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336867e219d6765d1000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}} 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={"_id"=>{"$ne"=>"5336867e219d6765d1000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1516ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336867e219d6765d1000043"} update={"$set"=>{"updated_at"=>2014-03-29 08:38:22 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336867e219d6765d1000043"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1464ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:38:22 +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"=>"5336867e219d6765d100003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6790ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 09:38:22 +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.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "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.5870ms) 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"=>"5336867e219d6765d100003e", "locale"=>"en"}} (0.4308ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336867e219d6765d1000043"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336867e219d6765d1000043", "updated_at"=>{"$lt"=>2014-03-29 08:38:22 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry5336867e219d6765d1000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336867e219d6765d100003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5336867e219d6765d1000043"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5336867e219d6765d1000046"} update={"$set"=>{"updated_at"=>2014-03-29 08:38:22 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::ContentEntry5336867e219d6765d1000043", "original_id"=>"5336867e219d6765d1000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6111ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336867e219d6765d1000047"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5336867e219d6765d100003e", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336867e219d6765d100003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"5336867e219d6765d1000043"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"5336867e219d6765d1000048"} update={"$set"=>{"updated_at"=>2014-03-29 08:38:22 UTC}} flags=[] (0.1302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336867e219d6765d1000043", "original_id"=>"5336867e219d6765d1000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336867e219d6765d1000049"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5336867e219d6765d100003e", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1373ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:38:22 +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"=>"5336867e219d6765d100003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) Rendered text template (0.0ms) Completed 200 OK in 5.4ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 09:38:22 +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.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336867e219d6765d100003e", "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.6859ms) 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"=>"5336867e219d6765d100003e", "locale"=>"en"}} (0.5710ms) Rendered text template (0.0ms) Completed 200 OK in 7.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.7331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5379ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4601ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4530ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (2.1539ms) 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 (2.6438ms) 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.6640ms) 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.0631ms) 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.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336869c219d675b89000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f7dbb1fc75ca72c5e10735a4960c6bc5ba298063", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"tFKyf9fnf5B1cxzxhdQq", "api_key"=>"41791c175ca7ffdff4bf8e9225f1bd7b69acd204", "updated_at"=>2014-03-29 08:38:52 UTC, "created_at"=>2014-03-29 08:38:52 UTC}] flags=[] (0.1841ms) 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.0040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336869c219d675b89000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:38:52 UTC, "updated_at"=>2014-03-29 08:38:52 UTC, "memberships"=>[{"_id"=>"5336869c219d675b89000003", "role"=>"admin", "account_id"=>"5336869c219d675b89000001"}]}] flags=[] (0.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869c219d675b89000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869c219d675b89000002", "_id"=>{"$ne"=>"5336869d219d675b89000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336869d219d675b89000004", "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"=>"5336869c219d675b89000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000004"}, "$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"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b89000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5329ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b89000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869c219d675b89000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869c219d675b89000002", "_id"=>{"$ne"=>"5336869d219d675b89000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869c219d675b89000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6151ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336869d219d675b89000005", "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"=>"5336869c219d675b89000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b89000005"]}}, "$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"=>"5336869d219d675b89000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b89000005"]}} 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=locomotive_content_types selector={"site_id"=>"5336869c219d675b89000002", "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"=>"5336869d219d675b89000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336869c219d675b89000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336869d219d675b89000007", "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC, "entries_custom_fields"=>[{"_id"=>"5336869d219d675b89000007", "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.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336869d219d675b89000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336869d219d675b89000008", "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", "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}}} flags=[] (0.5710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336869d219d675b89000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336869d219d675b89000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7420ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000006"]}}} (1.0021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336869d219d675b89000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336869d219d675b89000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336869d219d675b89000006", "content_type_id"=>"5336869d219d675b89000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336869c219d675b89000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336869d219d675b8900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336869d219d675b89000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6509ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000006"]}}} (0.4370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000006"]}}} (0.3247ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336869d219d675b8900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336869d219d675b89000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336869d219d675b89000006", "content_type_id"=>"5336869d219d675b89000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336869c219d675b89000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2151ms) 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.6924ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002", "_id"=>{"$ne"=>"5336869d219d675b8900000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336869d219d675b89000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336869d219d675b8900000b", "parent_ids"=>["5336869d219d675b89000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.6609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b8900000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b8900000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4482ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b8900000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.9351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002", "_id"=>{"$ne"=>"5336869d219d675b8900000c"}, "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"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336869d219d675b89000004"}]}]}, "$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"=>"5336869d219d675b8900000c", "parent_ids"=>["5336869d219d675b89000004"], "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"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b8900000c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b8900000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b8900000c"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002", "_id"=>{"$ne"=>"5336869d219d675b8900000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6657ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336869d219d675b89000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4279ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336869d219d675b8900000d", "parent_ids"=>["5336869d219d675b89000004"], "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"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.7448ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b8900000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b8900000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6630ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b8900000d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3350ms) 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.8500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002", "_id"=>{"$ne"=>"5336869d219d675b8900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000004", "site_id"=>"5336869c219d675b89000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336869d219d675b89000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"5336869d219d675b8900000e", "parent_ids"=>["5336869d219d675b89000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336869c219d675b89000002", "parent_id"=>"5336869d219d675b89000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b8900000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b8900000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1001ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b8900000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.2372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336869c219d675b89000002"}, "$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=locomotive_pages selector={"_id"=>"5336869d219d675b89000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:38:53 UTC}} flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002", "template_dependencies.en"=>{"$in"=>["5336869d219d675b89000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5178ms) 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.3230ms) 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.2271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336869d219d675b8900000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:38:52 UTC, "updated_at"=>2014-03-29 08:38:53 UTC, "memberships"=>[{"_id"=>"5336869d219d675b89000010", "role"=>"admin", "account_id"=>"5336869c219d675b89000001"}]}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869d219d675b8900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869d219d675b8900000f", "_id"=>{"$ne"=>"5336869d219d675b89000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336869d219d675b89000011", "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"=>"5336869d219d675b8900000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869d219d675b8900000f", "template_dependencies.en"=>{"$in"=>["5336869d219d675b89000011"]}}, "$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"=>"5336869d219d675b89000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b89000011"]}} 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_pages selector={"site_id"=>"5336869d219d675b8900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5159ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869d219d675b8900000f", "_id"=>{"$ne"=>"5336869d219d675b89000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869d219d675b8900000f"}, "$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"=>"5336869d219d675b89000012", "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"=>"5336869d219d675b8900000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869d219d675b8900000f", "template_dependencies.en"=>{"$in"=>["5336869d219d675b89000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336869d219d675b89000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4873ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336869d219d675b89000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336869d219d675b8900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336869d219d675b8900000f", "_id"=>{"$ne"=>"5336869d219d675b89000013"}, "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"=>"5336869d219d675b8900000f"}, "$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.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336869d219d675b89000013", "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"=>"5336869d219d675b8900000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.3550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869d219d675b8900000f", "template_dependencies.en"=>{"$in"=>["5336869d219d675b89000013"]}}, "$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"=>"5336869d219d675b89000013"}, "$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"=>["5336869d219d675b89000013"]}} 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_content_types selector={"site_id"=>"5336869d219d675b8900000f", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"5336869d219d675b89000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336869d219d675b8900000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336869d219d675b89000015", "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC, "entries_custom_fields"=>[{"_id"=>"5336869d219d675b89000015", "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.3209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336869d219d675b89000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336869d219d675b89000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336869d219d675b89000014"]}}} (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336869d219d675b89000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336869d219d675b89000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336869d219d675b89000014", "content_type_id"=>"5336869d219d675b89000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336869d219d675b8900000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:38:53 UTC, "created_at"=>2014-03-29 08:38:53 UTC}] flags=[] (0.2329ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:38: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} (0.7517ms) 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.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336869c219d675b89000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4649ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.9ms) Completed 200 OK in 36.0ms (Views: 30.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:38:55 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 09:38:55 +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-03-29 09:38:55 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:38: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.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336869c219d675b89000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7041ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336869c219d675b89000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:38:55 UTC, "updated_at"=>2014-03-29 08:38:55 UTC}} flags=[] (0.1552ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336869c219d675b89000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:38:55 UTC, "current_sign_in_at"=>2014-03-29 08:38: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-03-29 08:38:55 UTC}} flags=[] (0.1600ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:38: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.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336869c219d675b89000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336869c219d675b89000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.2350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.7212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336869d219d675b89000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7601ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (24.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (13.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336869c219d675b89000001", :role=>:admin}}}} (0.6750ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5336869c219d675b89000001"}} (2.2039ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (2.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5336869c219d675b89000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.2920ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (11.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (9.7ms) Rendered locomotive/shared/_main_app_header.html.haml (12.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (57.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.6ms) Completed 200 OK in 168.5ms (Views: 152.1ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:38:55 +0100 Served asset /locomotive.css - 200 OK (39ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:38:55 +0100 Served asset /locomotive.js - 200 OK (168ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:38:55 +0100 Served asset /locomotive/search_bar.js - 200 OK (7ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:38:55 +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-03-29 09:38:56 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 09:38:56 +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-03-29 09:38:56 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:38: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.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336869c219d675b89000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336869c219d675b89000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.2763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.6227ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336869c219d675b89000002"}, "$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.5100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336869d219d675b89000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6630ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (13.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (32.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336869c219d675b89000001", :role=>:admin}}}} (0.7041ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336869c219d675b89000001"}} (0.8583ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5336869c219d675b89000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7092ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (1.7ms) Rendered locomotive/shared/_main_app_header.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (20.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 89.9ms (Views: 75.0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:38:56 +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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336869c219d675b89000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336869c219d675b89000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) Completed 500 Internal Server Error in 11.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 (1.0083ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.3451ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9491ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4229ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.6320ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9217ms) 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.5572ms) 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.8922ms) 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.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368818219d674abb000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9c0b1578750d739a439aaa59a5c1c80beb7d41d8", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"6bvVXBCgdrg2tL11yzFN", "api_key"=>"938ac219efdfe963b423e488ba2cee20113b85a3", "updated_at"=>2014-03-29 08:45:12 UTC, "created_at"=>2014-03-29 08:45:12 UTC}] flags=[] (0.1516ms) 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.7570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368818219d674abb000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:45:12 UTC, "updated_at"=>2014-03-29 08:45:12 UTC, "memberships"=>[{"_id"=>"53368818219d674abb000003", "role"=>"admin", "account_id"=>"53368818219d674abb000001"}]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368818219d674abb000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368818219d674abb000002", "_id"=>{"$ne"=>"53368819219d674abb000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4718ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368819219d674abb000004", "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"=>"53368818219d674abb000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368818219d674abb000002", "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"=>"53368818219d674abb000002", "_id"=>{"$ne"=>"53368819219d674abb000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368818219d674abb000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53368819219d674abb000005", "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"=>"53368818219d674abb000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.4618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb000005"]}}, "$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"=>{"parent_id"=>"53368819219d674abb000005"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1857ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368818219d674abb000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368819219d674abb000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368818219d674abb000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368819219d674abb000007", "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC, "entries_custom_fields"=>[{"_id"=>"53368819219d674abb000007", "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.3049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368819219d674abb000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368819219d674abb000008", "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", "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}}} flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368819219d674abb000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368819219d674abb000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000006"]}}} (0.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368819219d674abb000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368819219d674abb000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368819219d674abb000006", "content_type_id"=>"53368819219d674abb000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368818219d674abb000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368819219d674abb00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000006"]}} 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"=>"53368819219d674abb000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000006"]}}} (0.3893ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000006"]}}} (0.2832ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368819219d674abb00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368819219d674abb000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368819219d674abb000006", "content_type_id"=>"53368819219d674abb000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368818219d674abb000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.1922ms) 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.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002", "_id"=>{"$ne"=>"53368819219d674abb00000b"}, "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"=>"53368819219d674abb000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368819219d674abb00000b", "parent_ids"=>["53368819219d674abb000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb00000b"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002", "_id"=>{"$ne"=>"53368819219d674abb00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368819219d674abb000004"}]}]}, "$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"=>"53368819219d674abb00000c", "parent_ids"=>["53368819219d674abb000004"], "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"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb00000c"]}}, "$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"=>"53368819219d674abb00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3858ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1597ms) 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.5708ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002", "_id"=>{"$ne"=>"53368819219d674abb00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368819219d674abb000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"53368819219d674abb00000d", "parent_ids"=>["53368819219d674abb000004"], "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"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb00000d"]}}, "$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"=>"53368819219d674abb00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb00000d"]}} 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={"$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"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002", "_id"=>{"$ne"=>"53368819219d674abb00000e"}, "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"=>"53368819219d674abb000004", "site_id"=>"53368818219d674abb000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368819219d674abb000004"}]}]}, "$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"=>"53368819219d674abb00000e", "parent_ids"=>["53368819219d674abb000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368818219d674abb000002", "parent_id"=>"53368819219d674abb000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb00000e"]}}, "$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"=>"53368819219d674abb00000e"}, "$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"=>["53368819219d674abb00000e"]}} 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"=>"53368818219d674abb000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"53368818219d674abb000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368819219d674abb000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:45:13 UTC}} flags=[] (0.1712ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002", "template_dependencies.en"=>{"$in"=>["53368819219d674abb000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"53368819219d674abb00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:45:12 UTC, "updated_at"=>2014-03-29 08:45:13 UTC, "memberships"=>[{"_id"=>"53368819219d674abb000010", "role"=>"admin", "account_id"=>"53368818219d674abb000001"}]}] flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368819219d674abb00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368819219d674abb00000f", "_id"=>{"$ne"=>"53368819219d674abb000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53368819219d674abb000011", "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"=>"53368819219d674abb00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368819219d674abb00000f", "template_dependencies.en"=>{"$in"=>["53368819219d674abb000011"]}}, "$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"=>"53368819219d674abb000011"}, "$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"=>["53368819219d674abb000011"]}} 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"=>"53368819219d674abb00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368819219d674abb00000f", "_id"=>{"$ne"=>"53368819219d674abb000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368819219d674abb00000f"}, "$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"=>"53368819219d674abb000012", "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"=>"53368819219d674abb00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368819219d674abb00000f", "template_dependencies.en"=>{"$in"=>["53368819219d674abb000012"]}}, "$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"=>"53368819219d674abb000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb000012"]}} 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"=>"53368819219d674abb00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368819219d674abb00000f", "_id"=>{"$ne"=>"53368819219d674abb000013"}, "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"=>"53368819219d674abb00000f"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2902ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368819219d674abb000013", "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"=>"53368819219d674abb00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368819219d674abb00000f", "template_dependencies.en"=>{"$in"=>["53368819219d674abb000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368819219d674abb000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3777ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368819219d674abb000013"]}} 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"=>"53368819219d674abb00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5817ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368819219d674abb000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368819219d674abb00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368819219d674abb000015", "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC, "entries_custom_fields"=>[{"_id"=>"53368819219d674abb000015", "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.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368819219d674abb000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000014"]}} 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"=>"53368819219d674abb000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368819219d674abb000014"]}}} (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368819219d674abb000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368819219d674abb000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368819219d674abb000014", "content_type_id"=>"53368819219d674abb000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368819219d674abb00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:45:13 UTC, "created_at"=>2014-03-29 08:45:13 UTC}] flags=[] (0.3021ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:45:14 +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.8917ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368818219d674abb000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4871ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.7ms) Completed 200 OK in 34.2ms (Views: 28.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:45:14 +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-03-29 09:45:14 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (81ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 09:45:14 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:45:14 +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.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368818219d674abb000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) 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.5419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368818219d674abb000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:45:14 UTC, "updated_at"=>2014-03-29 08:45:14 UTC}} flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368818219d674abb000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:45:14 UTC, "current_sign_in_at"=>2014-03-29 08:45:14 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 08:45:14 UTC}} flags=[] (0.1979ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:45:14 +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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368818219d674abb000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368818219d674abb000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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.0650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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.4291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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.6328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368819219d674abb000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7632ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (24.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (46.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368818219d674abb000001", :role=>:admin}}}} (0.7210ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368818219d674abb000001"}} (0.5739ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (3.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368818219d674abb000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6089ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.9ms) 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.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 130.5ms (Views: 114.3ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:45:14 +0100 Served asset /locomotive.css - 200 OK (34ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:45:14 +0100 Served asset /locomotive.js - 200 OK (106ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:45:14 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:45:14 +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-03-29 09:45:15 +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-03-29 09:45:15 +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-03-29 09:45:15 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:45:15 +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.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368818219d674abb000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368818219d674abb000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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"=>"53368818219d674abb000002"}, "$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.2798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368818219d674abb000002"}, "$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.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368819219d674abb000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7610ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368818219d674abb000001", :role=>:admin}}}} (0.5710ms) Rendered locomotive/shared/_main_app_head.html.haml (1.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368818219d674abb000001"}} (0.5448ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368818219d674abb000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) 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.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 58.6ms (Views: 43.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:45:15 +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.7560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368818219d674abb000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368818219d674abb000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) Completed 500 Internal Server Error in 10.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 (1.1771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.0072ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.0380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2050ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1747ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9978ms) 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.6537ms) 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.4389ms) 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.7482ms) 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.8578ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368851219d674c31000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"909b7fd34266e75c89683798f4560472e987442f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"n9q6N7oH1Ytz5wYTqWq9", "api_key"=>"565f56775b18e0c7ffb3805a5d863348e5cb6663", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 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.7699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368851219d674c31000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:46:09 UTC, "updated_at"=>2014-03-29 08:46:09 UTC, "memberships"=>[{"_id"=>"53368851219d674c31000003", "role"=>"admin", "account_id"=>"53368851219d674c31000001"}]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368851219d674c31000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c31000002", "_id"=>{"$ne"=>"53368851219d674c31000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c31000004", "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"=>"53368851219d674c31000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004"}, "$orderby"=>{"position"=>1}} 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"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c31000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c31000004"]}} 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={"site_id"=>"53368851219d674c31000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c31000002", "_id"=>{"$ne"=>"53368851219d674c31000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c31000002"}, "$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"=>"53368851219d674c31000005", "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"=>"53368851219d674c31000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3672ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c31000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6924ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c31000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368851219d674c31000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368851219d674c31000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368851219d674c31000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368851219d674c31000007", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC, "entries_custom_fields"=>[{"_id"=>"53368851219d674c31000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368851219d674c31000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368851219d674c31000008", "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", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}}} flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368851219d674c31000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368851219d674c31000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5202ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000006"]}}} (0.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368851219d674c31000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368851219d674c31000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368851219d674c31000006", "content_type_id"=>"53368851219d674c31000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368851219d674c31000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368851219d674c3100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000006"]}} 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_content_entries selector={"content_type_id"=>"53368851219d674c31000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000006"]}}} (0.3738ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000006"]}}} (0.2789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.8090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368851219d674c3100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368851219d674c31000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368851219d674c31000006", "content_type_id"=>"53368851219d674c31000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368851219d674c31000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3567ms) 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.6950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002", "_id"=>{"$ne"=>"53368851219d674c3100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53368851219d674c31000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c3100000b", "parent_ids"=>["53368851219d674c31000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.2682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c3100000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368851219d674c3100000b"}, "$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"=>["53368851219d674c3100000b"]}} 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=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"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002", "_id"=>{"$ne"=>"53368851219d674c3100000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002"}, "$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"=>"53368851219d674c31000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8488ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c3100000c", "parent_ids"=>["53368851219d674c31000004"], "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"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3877ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c3100000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c3100000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4773ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c3100000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1330ms) 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.8819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002", "_id"=>{"$ne"=>"53368851219d674c3100000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002"}, "$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"=>"53368851219d674c31000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c3100000d", "parent_ids"=>["53368851219d674c31000004"], "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"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c3100000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c3100000d"}, "$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"=>["53368851219d674c3100000d"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002", "_id"=>{"$ne"=>"53368851219d674c3100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4837ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000004", "site_id"=>"53368851219d674c31000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6373ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368851219d674c31000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c3100000e", "parent_ids"=>["53368851219d674c31000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368851219d674c31000002", "parent_id"=>"53368851219d674c31000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c3100000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368851219d674c3100000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c3100000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "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"=>"53368851219d674c31000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7727ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368851219d674c31000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:46:09 UTC}} flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002", "template_dependencies.en"=>{"$in"=>["53368851219d674c31000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5288ms) 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.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368851219d674c3100000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:46:09 UTC, "updated_at"=>2014-03-29 08:46:09 UTC, "memberships"=>[{"_id"=>"53368851219d674c31000010", "role"=>"admin", "account_id"=>"53368851219d674c31000001"}]}] flags=[] (0.2577ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368851219d674c3100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c3100000f", "_id"=>{"$ne"=>"53368851219d674c31000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c31000011", "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"=>"53368851219d674c3100000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c3100000f", "template_dependencies.en"=>{"$in"=>["53368851219d674c31000011"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5589ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c31000011"]}} 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=locomotive_pages selector={"site_id"=>"53368851219d674c3100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c3100000f", "_id"=>{"$ne"=>"53368851219d674c31000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.7619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c3100000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53368851219d674c31000012", "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"=>"53368851219d674c3100000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.2441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c3100000f", "template_dependencies.en"=>{"$in"=>["53368851219d674c31000012"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4821ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c31000012"]}} 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_pages selector={"site_id"=>"53368851219d674c3100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c3100000f", "_id"=>{"$ne"=>"53368851219d674c31000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368851219d674c3100000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5851ms) 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.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368851219d674c31000013", "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"=>"53368851219d674c3100000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c3100000f", "template_dependencies.en"=>{"$in"=>["53368851219d674c31000013"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368851219d674c31000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368851219d674c31000013"]}} 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_content_types selector={"site_id"=>"53368851219d674c3100000f", "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"=>"53368851219d674c31000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368851219d674c3100000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368851219d674c31000015", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC, "entries_custom_fields"=>[{"_id"=>"53368851219d674c31000015", "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.3116ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368851219d674c31000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368851219d674c31000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7062ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368851219d674c31000014"]}}} (0.6382ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368851219d674c31000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368851219d674c31000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368851219d674c31000014", "content_type_id"=>"53368851219d674c31000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368851219d674c3100000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:46:09 UTC, "created_at"=>2014-03-29 08:46:09 UTC}] flags=[] (0.3111ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:46:11 +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.8991ms) 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.8621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368851219d674c31000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6840ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.9ms) Completed 200 OK in 44.4ms (Views: 35.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:46:11 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 09:46:11 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (97ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 09:46:11 +0100 Served asset /locomotive/background/body.png - 200 OK (3ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:46:11 +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.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368851219d674c31000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3289ms) 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.1470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368851219d674c31000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:46:11 UTC, "updated_at"=>2014-03-29 08:46:11 UTC}} flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368851219d674c31000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:46:11 UTC, "current_sign_in_at"=>2014-03-29 08:46:11 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 08:46:11 UTC}} flags=[] (0.2489ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 30.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:46: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.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368851219d674c31000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368851219d674c31000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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.8847ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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.2658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"53368851219d674c31000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7849ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (20.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (61.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368851219d674c31000001", :role=>:admin}}}} (1.2820ms) Rendered locomotive/shared/_main_app_head.html.haml (3.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (29.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368851219d674c31000001"}} (0.6869ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (3.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368851219d674c31000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7939ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (6.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (6.5ms) Rendered locomotive/shared/_main_app_header.html.haml (9.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (43.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 188.5ms (Views: 163.9ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:46:11 +0100 Served asset /locomotive.js - 200 OK (127ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:46:12 +0100 Served asset /locomotive.css - 200 OK (45ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:46:12 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:46:12 +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-03-29 09:46:12 +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-03-29 09:46:12 +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-03-29 09:46:12 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:46:12 +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.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368851219d674c31000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4017ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368851219d674c31000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4554ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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.0619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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.1432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368851219d674c31000002"}, "$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"=>"53368851219d674c31000002"}, "$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.3500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368851219d674c31000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6869ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368851219d674c31000001", :role=>:admin}}}} (0.5209ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368851219d674c31000001"}} (0.4549ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368851219d674c31000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5538ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 60.5ms (Views: 44.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:46:12 +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.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368851219d674c31000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368851219d674c31000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5121ms) Completed 200 OK in 14.5ms (Views: 0.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.1928ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8768ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3742ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3020ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9451ms) 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.5877ms) 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.6011ms) 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.9458ms) 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.5751ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533689ef219d6721f6000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8b90f8d9f804fa88f1ba22c905584b33d5e25108", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"MGhwPjyEH4uMawMXyJiz", "api_key"=>"c1d0e089ae512ae7509af811338feea1cfb8f7ed", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.1910ms) 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.9031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533689ef219d6721f6000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:53:03 UTC, "updated_at"=>2014-03-29 08:53:03 UTC, "memberships"=>[{"_id"=>"533689ef219d6721f6000003", "role"=>"admin", "account_id"=>"533689ef219d6721f6000001"}]}] flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f6000002", "_id"=>{"$ne"=>"533689ef219d6721f6000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533689ef219d6721f6000004", "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"=>"533689ef219d6721f6000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000004"}, "$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"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000004"]}}, "$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"=>["533689ef219d6721f6000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f6000002", "_id"=>{"$ne"=>"533689ef219d6721f6000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f6000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f6000005", "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"=>"533689ef219d6721f6000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000005"]}}, "$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"=>"533689ef219d6721f6000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000005"]}} 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_content_types selector={"site_id"=>"533689ef219d6721f6000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533689ef219d6721f6000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533689ef219d6721f6000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533689ef219d6721f6000007", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC, "entries_custom_fields"=>[{"_id"=>"533689ef219d6721f6000007", "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.3650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533689ef219d6721f6000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533689ef219d6721f6000008", "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", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}}} flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533689ef219d6721f6000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533689ef219d6721f6000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000006"]}}} (0.4439ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533689ef219d6721f6000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533689ef219d6721f6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533689ef219d6721f6000006", "content_type_id"=>"533689ef219d6721f6000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533689ef219d6721f6000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533689ef219d6721f600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533689ef219d6721f6000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000006"]}}} (0.4499ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000006"]}}} (0.3729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6011ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533689ef219d6721f600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533689ef219d6721f6000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533689ef219d6721f6000006", "content_type_id"=>"533689ef219d6721f6000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533689ef219d6721f6000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2003ms) 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.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002", "_id"=>{"$ne"=>"533689ef219d6721f600000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533689ef219d6721f6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6037ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f600000b", "parent_ids"=>["533689ef219d6721f6000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600000b"]}}, "$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"=>"533689ef219d6721f600000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9429ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f600000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2069ms) 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.7718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002", "_id"=>{"$ne"=>"533689ef219d6721f600000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002"}, "$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"=>"533689ef219d6721f6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f600000c", "parent_ids"=>["533689ef219d6721f6000004"], "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"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.3200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600000c"]}}, "$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"=>"533689ef219d6721f600000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f600000c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7896ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002", "_id"=>{"$ne"=>"533689ef219d6721f600000d"}, "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"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002"}, "$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"=>"533689ef219d6721f6000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f600000d", "parent_ids"=>["533689ef219d6721f6000004"], "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"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600000d"]}}, "$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"=>"533689ef219d6721f600000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f600000d"]}} 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.5381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002", "_id"=>{"$ne"=>"533689ef219d6721f600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000004", "site_id"=>"533689ef219d6721f6000002"}, "$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"=>"533689ef219d6721f6000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"533689ef219d6721f600000e", "parent_ids"=>["533689ef219d6721f6000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533689ef219d6721f6000002", "parent_id"=>"533689ef219d6721f6000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600000e"]}}, "$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"=>"533689ef219d6721f600000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f600000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"533689ef219d6721f6000002"}, "$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"=>"533689ef219d6721f6000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:53:03 UTC}} flags=[] (0.1783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000004"]}}, "$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_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.3700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533689ef219d6721f600000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:53:03 UTC, "updated_at"=>2014-03-29 08:53:03 UTC, "memberships"=>[{"_id"=>"533689ef219d6721f6000010", "role"=>"admin", "account_id"=>"533689ef219d6721f6000001"}]}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"533689ef219d6721f600000f", "_id"=>{"$ne"=>"533689ef219d6721f6000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533689ef219d6721f6000011", "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"=>"533689ef219d6721f600000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f600000f", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000011"]}}, "$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"=>"533689ef219d6721f6000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000011"]}} 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={"site_id"=>"533689ef219d6721f600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f600000f", "_id"=>{"$ne"=>"533689ef219d6721f6000012"}, "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"=>"533689ef219d6721f600000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533689ef219d6721f6000012", "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"=>"533689ef219d6721f600000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f600000f", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000012"]}}, "$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"=>"533689ef219d6721f6000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000012"]}} 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={"site_id"=>"533689ef219d6721f600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f600000f", "_id"=>{"$ne"=>"533689ef219d6721f6000013"}, "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"=>"533689ef219d6721f600000f"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533689ef219d6721f6000013", "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"=>"533689ef219d6721f600000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f600000f", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000013"]}}, "$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"=>"533689ef219d6721f6000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000013"]}} 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_content_types selector={"site_id"=>"533689ef219d6721f600000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533689ef219d6721f6000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533689ef219d6721f600000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533689ef219d6721f6000015", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC, "entries_custom_fields"=>[{"_id"=>"533689ef219d6721f6000015", "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"=>"533689ef219d6721f6000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000014"]}} 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_entries selector={"content_type_id"=>"533689ef219d6721f6000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5617ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f6000014"]}}} (0.5481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533689ef219d6721f6000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533689ef219d6721f6000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533689ef219d6721f6000014", "content_type_id"=>"533689ef219d6721f6000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533689ef219d6721f600000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2508ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:53: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.6802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "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 14.7ms (Views: 8.8ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 09:53: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.6237ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000002", "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) Completed 500 Internal Server Error in 5.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.7451ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3177ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0669ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1833ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6149ms) 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.5541ms) 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.4511ms) 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"=>"533689ef219d6721f6000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"85bace104308d1d9faffe99f4536fae64e67650a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"1HTfBhsvqoAgA4DSJ6jp", "api_key"=>"2d4916c3568496c2eaf2b04da61105a0e350dbdb", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 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.3741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533689ef219d6721f6000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:53:03 UTC, "updated_at"=>2014-03-29 08:53:03 UTC, "memberships"=>[{"_id"=>"533689ef219d6721f6000019", "role"=>"admin", "account_id"=>"533689ef219d6721f6000017"}]}] flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f6000018", "_id"=>{"$ne"=>"533689ef219d6721f600001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f600001a", "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"=>"533689ef219d6721f6000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600001a"]}}, "$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"=>"533689ef219d6721f600001a"}, "$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"=>["533689ef219d6721f600001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f6000018", "_id"=>{"$ne"=>"533689ef219d6721f600001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689ef219d6721f6000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f600001b", "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"=>"533689ef219d6721f6000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600001b"]}}, "$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"=>"533689ef219d6721f600001b"}, "$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"=>["533689ef219d6721f600001b"]}} 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"=>"533689ef219d6721f6000018", "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"=>"533689ef219d6721f600001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533689ef219d6721f6000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533689ef219d6721f600001d", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC, "entries_custom_fields"=>[{"_id"=>"533689ef219d6721f600001d", "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.3052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533689ef219d6721f600001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533689ef219d6721f600001e", "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", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}}} flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533689ef219d6721f600001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}} 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_content_entries selector={"content_type_id"=>"533689ef219d6721f600001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}}} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533689ef219d6721f600001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533689ef219d6721f600001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533689ef219d6721f600001c", "content_type_id"=>"533689ef219d6721f600001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533689ef219d6721f6000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533689ef219d6721f6000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533689ef219d6721f600001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6969ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}}} (0.9899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}}} (0.3450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533689ef219d6721f6000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533689ef219d6721f600001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533689ef219d6721f600001c", "content_type_id"=>"533689ef219d6721f600001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533689ef219d6721f6000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.1822ms) 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"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018", "_id"=>{"$ne"=>"533689ef219d6721f6000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4728ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533689ef219d6721f600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f6000021", "parent_ids"=>["533689ef219d6721f600001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000021"]}}, "$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"=>"533689ef219d6721f6000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018", "_id"=>{"$ne"=>"533689ef219d6721f6000022"}, "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"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"533689ef219d6721f600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6282ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f6000022", "parent_ids"=>["533689ef219d6721f600001a"], "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"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.4599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000022"]}}, "$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"=>"533689ef219d6721f6000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000022"]}} 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.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018", "_id"=>{"$ne"=>"533689ef219d6721f6000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018"}, "$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"=>"533689ef219d6721f600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f6000023", "parent_ids"=>["533689ef219d6721f600001a"], "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"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.3469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689ef219d6721f6000023"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018", "_id"=>{"$ne"=>"533689ef219d6721f6000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f600001a", "site_id"=>"533689ef219d6721f6000018"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533689ef219d6721f600001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8142ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689ef219d6721f6000024", "parent_ids"=>["533689ef219d6721f600001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533689ef219d6721f6000018", "parent_id"=>"533689ef219d6721f600001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:03 UTC, "created_at"=>2014-03-29 08:53:03 UTC}] flags=[] (0.2818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f6000024"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533689ef219d6721f6000024"}, "$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"=>["533689ef219d6721f6000024"]}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"533689ef219d6721f6000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533689ef219d6721f600001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:53:04 UTC}} flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "template_dependencies.en"=>{"$in"=>["533689ef219d6721f600001a"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"533689f0219d6721f6000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:53:03 UTC, "updated_at"=>2014-03-29 08:53:04 UTC, "memberships"=>[{"_id"=>"533689f0219d6721f6000026", "role"=>"admin", "account_id"=>"533689ef219d6721f6000017"}]}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689f0219d6721f6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689f0219d6721f6000025", "_id"=>{"$ne"=>"533689f0219d6721f6000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533689f0219d6721f6000027", "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"=>"533689f0219d6721f6000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:04 UTC, "created_at"=>2014-03-29 08:53:04 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689f0219d6721f6000025", "template_dependencies.en"=>{"$in"=>["533689f0219d6721f6000027"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533689f0219d6721f6000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689f0219d6721f6000027"]}} 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=locomotive_pages selector={"site_id"=>"533689f0219d6721f6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533689f0219d6721f6000025", "_id"=>{"$ne"=>"533689f0219d6721f6000028"}, "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"=>"533689f0219d6721f6000025"}, "$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"=>"533689f0219d6721f6000028", "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"=>"533689f0219d6721f6000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:04 UTC, "created_at"=>2014-03-29 08:53:04 UTC}] flags=[] (0.2871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689f0219d6721f6000025", "template_dependencies.en"=>{"$in"=>["533689f0219d6721f6000028"]}}, "$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"=>"533689f0219d6721f6000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3738ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533689f0219d6721f6000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533689f0219d6721f6000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"533689f0219d6721f6000025", "_id"=>{"$ne"=>"533689f0219d6721f6000029"}, "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"=>"533689f0219d6721f6000025"}, "$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"=>{"_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"=>"533689f0219d6721f6000029", "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"=>"533689f0219d6721f6000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:04 UTC, "created_at"=>2014-03-29 08:53:04 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689f0219d6721f6000025", "template_dependencies.en"=>{"$in"=>["533689f0219d6721f6000029"]}}, "$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"=>"533689f0219d6721f6000029"}, "$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"=>["533689f0219d6721f6000029"]}} 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_content_types selector={"site_id"=>"533689f0219d6721f6000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533689f0219d6721f600002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533689f0219d6721f6000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533689f0219d6721f600002b", "updated_at"=>2014-03-29 08:53:04 UTC, "created_at"=>2014-03-29 08:53:04 UTC, "entries_custom_fields"=>[{"_id"=>"533689f0219d6721f600002b", "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.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533689f0219d6721f600002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533689f0219d6721f600002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533689f0219d6721f600002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533689f0219d6721f600002a"]}}} (0.4368ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533689f0219d6721f600002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533689f0219d6721f600002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533689f0219d6721f600002a", "content_type_id"=>"533689f0219d6721f600002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533689f0219d6721f6000025", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:04 UTC, "created_at"=>2014-03-29 08:53:04 UTC}] flags=[] (0.1688ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533689ef219d6721f600001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}} 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"=>"533689ef219d6721f6000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4172ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry533689ef219d6721f600001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1552ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533689ef219d6721f600001c"} update={"$set"=>{"updated_at"=>2014-03-29 08:53:04 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533689ef219d6721f600001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1700ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:53:04 +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.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 5.2ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 09:53:04 +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.5789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533689ef219d6721f6000018", "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.5989ms) Completed 500 Internal Server Error in 4.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.5710ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5341ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.6371ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4508ms) 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.8960ms) 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.5679ms) 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.6201ms) 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.5411ms) 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} (1.2932ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368a17219d67d0ea000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1db92a8a63f2de60c05ee0002a2332a7b7b66ec4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"7xh7a2KaQ1j9wTxXqyHz", "api_key"=>"7baae558c7c0d02b7472ac0cd6fb97bccda7b720", "updated_at"=>2014-03-29 08:53:43 UTC, "created_at"=>2014-03-29 08:53:43 UTC}] flags=[] (0.2611ms) 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.1361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368a17219d67d0ea000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:53:42 UTC, "updated_at"=>2014-03-29 08:53:43 UTC, "memberships"=>[{"_id"=>"53368a17219d67d0ea000003", "role"=>"admin", "account_id"=>"53368a17219d67d0ea000001"}]}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a17219d67d0ea000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a17219d67d0ea000002", "_id"=>{"$ne"=>"53368a17219d67d0ea000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a17219d67d0ea000004", "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"=>"53368a17219d67d0ea000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:43 UTC, "created_at"=>2014-03-29 08:53:43 UTC}] flags=[] (0.2658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a17219d67d0ea000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a17219d67d0ea000004"]}}, "$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"=>["53368a17219d67d0ea000004"]}} 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"=>"53368a17219d67d0ea000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53368a17219d67d0ea000002", "_id"=>{"$ne"=>"53368a18219d67d0ea000005"}, "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"=>"53368a17219d67d0ea000002"}, "$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"=>"53368a18219d67d0ea000005", "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"=>"53368a17219d67d0ea000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:44 UTC, "created_at"=>2014-03-29 08:53:44 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a18219d67d0ea000005"]}}, "$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"=>"53368a18219d67d0ea000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3593ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a18219d67d0ea000005"]}} 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"=>"53368a17219d67d0ea000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368a18219d67d0ea000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368a17219d67d0ea000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368a18219d67d0ea000007", "updated_at"=>2014-03-29 08:53:44 UTC, "created_at"=>2014-03-29 08:53:44 UTC, "entries_custom_fields"=>[{"_id"=>"53368a18219d67d0ea000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368a18219d67d0ea000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368a18219d67d0ea000008", "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", "updated_at"=>2014-03-29 08:53:44 UTC, "created_at"=>2014-03-29 08:53:44 UTC}}} flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a18219d67d0ea000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a18219d67d0ea000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a18219d67d0ea000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a18219d67d0ea000006"]}}} (0.5000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a18219d67d0ea000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a18219d67d0ea000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a18219d67d0ea000006", "content_type_id"=>"53368a18219d67d0ea000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368a17219d67d0ea000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:44 UTC, "created_at"=>2014-03-29 08:53:44 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a19219d67d0ea00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a18219d67d0ea000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a18219d67d0ea000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a18219d67d0ea000006"]}}} (0.4530ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a18219d67d0ea000006"]}}} (0.3052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a18219d67d0ea000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4699ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a19219d67d0ea00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a18219d67d0ea000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a18219d67d0ea000006", "content_type_id"=>"53368a18219d67d0ea000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368a17219d67d0ea000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:45 UTC, "created_at"=>2014-03-29 08:53:45 UTC}] flags=[] (0.1879ms) 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.7861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002", "_id"=>{"$ne"=>"53368a19219d67d0ea00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53368a17219d67d0ea000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a19219d67d0ea00000b", "parent_ids"=>["53368a17219d67d0ea000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:45 UTC, "created_at"=>2014-03-29 08:53:45 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a19219d67d0ea00000b"]}}, "$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"=>"53368a19219d67d0ea00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a19219d67d0ea00000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) 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.7300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002", "_id"=>{"$ne"=>"53368a1a219d67d0ea00000c"}, "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"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002"}, "$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"=>"53368a17219d67d0ea000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a1a219d67d0ea00000c", "parent_ids"=>["53368a17219d67d0ea000004"], "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"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:46 UTC, "created_at"=>2014-03-29 08:53:46 UTC}] flags=[] (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a1a219d67d0ea00000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0083ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a1a219d67d0ea00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5379ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a1a219d67d0ea00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002", "_id"=>{"$ne"=>"53368a1a219d67d0ea00000d"}, "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"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a17219d67d0ea000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"53368a1a219d67d0ea00000d", "parent_ids"=>["53368a17219d67d0ea000004"], "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"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:46 UTC, "created_at"=>2014-03-29 08:53:46 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a1a219d67d0ea00000d"]}}, "$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"=>"53368a1a219d67d0ea00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a1a219d67d0ea00000d"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002", "_id"=>{"$ne"=>"53368a1a219d67d0ea00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a17219d67d0ea000004", "site_id"=>"53368a17219d67d0ea000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a17219d67d0ea000004"}]}]}, "$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"=>"53368a1a219d67d0ea00000e", "parent_ids"=>["53368a17219d67d0ea000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368a17219d67d0ea000002", "parent_id"=>"53368a17219d67d0ea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:46 UTC, "created_at"=>2014-03-29 08:53:46 UTC}] flags=[] (0.2873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a1a219d67d0ea00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a1a219d67d0ea00000e"}, "$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"=>["53368a1a219d67d0ea00000e"]}} 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"=>{"site_id"=>"53368a17219d67d0ea000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368a17219d67d0ea000002"}, "$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_pages selector={"_id"=>"53368a17219d67d0ea000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:53:47 UTC}} flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "template_dependencies.en"=>{"$in"=>["53368a17219d67d0ea000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (2.0499ms) 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.5741ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368a1c219d67d0ea00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:53:42 UTC, "updated_at"=>2014-03-29 08:53:48 UTC, "memberships"=>[{"_id"=>"53368a1c219d67d0ea000010", "role"=>"admin", "account_id"=>"53368a17219d67d0ea000001"}]}] flags=[] (0.2410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a1c219d67d0ea00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"53368a1c219d67d0ea00000f", "_id"=>{"$ne"=>"53368a1c219d67d0ea000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"53368a1c219d67d0ea000011", "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"=>"53368a1c219d67d0ea00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:48 UTC, "created_at"=>2014-03-29 08:53:48 UTC}] flags=[] (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a1c219d67d0ea00000f", "template_dependencies.en"=>{"$in"=>["53368a1c219d67d0ea000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368a1c219d67d0ea000011"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53368a1c219d67d0ea000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a1c219d67d0ea00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a1c219d67d0ea00000f", "_id"=>{"$ne"=>"53368a1d219d67d0ea000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a1c219d67d0ea00000f"}, "$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"=>"53368a1d219d67d0ea000012", "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"=>"53368a1c219d67d0ea00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:49 UTC, "created_at"=>2014-03-29 08:53:49 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a1c219d67d0ea00000f", "template_dependencies.en"=>{"$in"=>["53368a1d219d67d0ea000012"]}}, "$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"=>"53368a1d219d67d0ea000012"}, "$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"=>["53368a1d219d67d0ea000012"]}} 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"=>"53368a1c219d67d0ea00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8757ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a1c219d67d0ea00000f", "_id"=>{"$ne"=>"53368a1d219d67d0ea000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a1c219d67d0ea00000f"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53368a1d219d67d0ea000013", "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"=>"53368a1c219d67d0ea00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:49 UTC, "created_at"=>2014-03-29 08:53:49 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a1c219d67d0ea00000f", "template_dependencies.en"=>{"$in"=>["53368a1d219d67d0ea000013"]}}, "$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"=>"53368a1d219d67d0ea000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3662ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a1d219d67d0ea000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1540ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368a1c219d67d0ea00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368a1d219d67d0ea000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368a1c219d67d0ea00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368a1d219d67d0ea000015", "updated_at"=>2014-03-29 08:53:49 UTC, "created_at"=>2014-03-29 08:53:49 UTC, "entries_custom_fields"=>[{"_id"=>"53368a1d219d67d0ea000015", "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.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a1d219d67d0ea000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a1d219d67d0ea000014"]}} 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_entries selector={"content_type_id"=>"53368a1d219d67d0ea000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7141ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a1d219d67d0ea000014"]}}} (0.7939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a1d219d67d0ea000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a1d219d67d0ea000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a1d219d67d0ea000014", "content_type_id"=>"53368a1d219d67d0ea000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368a1c219d67d0ea00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:49 UTC, "created_at"=>2014-03-29 08:53:49 UTC}] flags=[] (0.3493ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:53:50 +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.6750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7176ms) Rendered text template (0.0ms) Completed 200 OK in 16.9ms (Views: 10.4ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 09:53:50 +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.8759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "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.7029ms) Rendered text template (0.0ms) Completed 200 OK in 707.9ms (Views: 0.6ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 09:53:51 +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.8621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "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.7160ms) Rendered text template (0.0ms) Completed 200 OK in 5.7ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:53:51 +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.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5872ms) 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-03-29 09:53:51 +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.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a17219d67d0ea000002", "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.6101ms) Rendered text template (0.0ms) Completed 200 OK in 569.7ms (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.8931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.5029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0092ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8132ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3962ms) 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.6380ms) 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.0371ms) 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.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368a20219d67d0ea000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d8d3194df9187666d91c68ec7d541b4f4b896984", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"698wAvdxy5Ahm2ZpzGqS", "api_key"=>"b39f6faf5c0d547425c445936481016e151baeaf", "updated_at"=>2014-03-29 08:53:52 UTC, "created_at"=>2014-03-29 08:53:52 UTC}] flags=[] (0.1590ms) 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.8819ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368a20219d67d0ea000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:53:42 UTC, "updated_at"=>2014-03-29 08:53:52 UTC, "memberships"=>[{"_id"=>"53368a20219d67d0ea000019", "role"=>"admin", "account_id"=>"53368a20219d67d0ea000017"}]}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a20219d67d0ea000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a20219d67d0ea000018", "_id"=>{"$ne"=>"53368a20219d67d0ea00001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4199ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a20219d67d0ea00001a", "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"=>"53368a20219d67d0ea000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:52 UTC, "created_at"=>2014-03-29 08:53:52 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a20219d67d0ea00001a"]}}, "$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"=>"53368a20219d67d0ea00001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a20219d67d0ea00001a"]}} 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={"site_id"=>"53368a20219d67d0ea000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a20219d67d0ea000018", "_id"=>{"$ne"=>"53368a21219d67d0ea00001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a20219d67d0ea000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5593ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a21219d67d0ea00001b", "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"=>"53368a20219d67d0ea000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:53 UTC, "created_at"=>2014-03-29 08:53:53 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a21219d67d0ea00001b"]}}, "$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"=>"53368a21219d67d0ea00001b"}, "$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"=>["53368a21219d67d0ea00001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368a20219d67d0ea000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368a21219d67d0ea00001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368a20219d67d0ea000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368a21219d67d0ea00001d", "updated_at"=>2014-03-29 08:53:53 UTC, "created_at"=>2014-03-29 08:53:53 UTC, "entries_custom_fields"=>[{"_id"=>"53368a21219d67d0ea00001d", "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.2460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368a21219d67d0ea00001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368a21219d67d0ea00001e", "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", "updated_at"=>2014-03-29 08:53:53 UTC, "created_at"=>2014-03-29 08:53:53 UTC}}} flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a21219d67d0ea00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a21219d67d0ea00001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4499ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}}} (0.4222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a21219d67d0ea00001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a21219d67d0ea00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a21219d67d0ea00001c", "content_type_id"=>"53368a21219d67d0ea00001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368a20219d67d0ea000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:53 UTC, "created_at"=>2014-03-29 08:53:53 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a22219d67d0ea000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a21219d67d0ea00001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}}} (0.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}}} (0.3672ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5569ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a22219d67d0ea000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a21219d67d0ea00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a21219d67d0ea00001c", "content_type_id"=>"53368a21219d67d0ea00001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368a20219d67d0ea000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:54 UTC, "created_at"=>2014-03-29 08:53:54 UTC}] flags=[] (0.2460ms) 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.8550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6168ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018", "_id"=>{"$ne"=>"53368a22219d67d0ea000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a20219d67d0ea00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a22219d67d0ea000021", "parent_ids"=>["53368a20219d67d0ea00001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:54 UTC, "created_at"=>2014-03-29 08:53:54 UTC}] flags=[] (0.3419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a22219d67d0ea000021"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368a22219d67d0ea000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a22219d67d0ea000021"]}} 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.7873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018", "_id"=>{"$ne"=>"53368a23219d67d0ea000022"}, "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"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a20219d67d0ea00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a23219d67d0ea000022", "parent_ids"=>["53368a20219d67d0ea00001a"], "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"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:55 UTC, "created_at"=>2014-03-29 08:53:55 UTC}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a23219d67d0ea000022"]}}, "$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"=>"53368a23219d67d0ea000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a23219d67d0ea000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018", "_id"=>{"$ne"=>"53368a23219d67d0ea000023"}, "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"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018"}, "$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"=>"53368a20219d67d0ea00001a"}]}]}, "$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"=>"53368a23219d67d0ea000023", "parent_ids"=>["53368a20219d67d0ea00001a"], "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"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:55 UTC, "created_at"=>2014-03-29 08:53:55 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a23219d67d0ea000023"]}}, "$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"=>"53368a23219d67d0ea000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a23219d67d0ea000023"]}} 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.5751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018", "_id"=>{"$ne"=>"53368a23219d67d0ea000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53368a20219d67d0ea00001a", "site_id"=>"53368a20219d67d0ea000018"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a20219d67d0ea00001a"}]}]}, "$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"=>"53368a23219d67d0ea000024", "parent_ids"=>["53368a20219d67d0ea00001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368a20219d67d0ea000018", "parent_id"=>"53368a20219d67d0ea00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:55 UTC, "created_at"=>2014-03-29 08:53:55 UTC}] flags=[] (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a23219d67d0ea000024"]}}, "$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"=>"53368a23219d67d0ea000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a23219d67d0ea000024"]}} 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"=>"53368a20219d67d0ea000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368a20219d67d0ea000018"}, "$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"=>"53368a20219d67d0ea00001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:53:56 UTC}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "template_dependencies.en"=>{"$in"=>["53368a20219d67d0ea00001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) 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.7241ms) 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.4113ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368a25219d67d0ea000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:53:42 UTC, "updated_at"=>2014-03-29 08:53:57 UTC, "memberships"=>[{"_id"=>"53368a25219d67d0ea000026", "role"=>"admin", "account_id"=>"53368a20219d67d0ea000017"}]}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a25219d67d0ea000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a25219d67d0ea000025", "_id"=>{"$ne"=>"53368a25219d67d0ea000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53368a25219d67d0ea000027", "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"=>"53368a25219d67d0ea000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:57 UTC, "created_at"=>2014-03-29 08:53:57 UTC}] flags=[] (0.2811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a25219d67d0ea000025", "template_dependencies.en"=>{"$in"=>["53368a25219d67d0ea000027"]}}, "$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"=>"53368a25219d67d0ea000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a25219d67d0ea000027"]}} 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={"site_id"=>"53368a25219d67d0ea000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7334ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a25219d67d0ea000025", "_id"=>{"$ne"=>"53368a25219d67d0ea000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a25219d67d0ea000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a25219d67d0ea000028", "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"=>"53368a25219d67d0ea000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:58 UTC, "created_at"=>2014-03-29 08:53:58 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a25219d67d0ea000025", "template_dependencies.en"=>{"$in"=>["53368a25219d67d0ea000028"]}}, "$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"=>"53368a25219d67d0ea000028"}, "$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"=>["53368a25219d67d0ea000028"]}} 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={"site_id"=>"53368a25219d67d0ea000025", "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"=>"53368a25219d67d0ea000025", "_id"=>{"$ne"=>"53368a26219d67d0ea000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a25219d67d0ea000025"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a26219d67d0ea000029", "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"=>"53368a25219d67d0ea000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:53:58 UTC, "created_at"=>2014-03-29 08:53:58 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a25219d67d0ea000025", "template_dependencies.en"=>{"$in"=>["53368a26219d67d0ea000029"]}}, "$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"=>"53368a26219d67d0ea000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a26219d67d0ea000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1063ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368a25219d67d0ea000025", "slug"=>"examples"} 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"=>"53368a26219d67d0ea00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368a25219d67d0ea000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368a26219d67d0ea00002b", "updated_at"=>2014-03-29 08:53:58 UTC, "created_at"=>2014-03-29 08:53:58 UTC, "entries_custom_fields"=>[{"_id"=>"53368a26219d67d0ea00002b", "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.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a26219d67d0ea00002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a26219d67d0ea00002a"]}} 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"=>"53368a26219d67d0ea00002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4699ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a26219d67d0ea00002a"]}}} (0.4120ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a26219d67d0ea00002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a26219d67d0ea00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a26219d67d0ea00002a", "content_type_id"=>"53368a26219d67d0ea00002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368a25219d67d0ea000025", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:53:58 UTC, "created_at"=>2014-03-29 08:53:58 UTC}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a21219d67d0ea00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a22219d67d0ea000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1616ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368a21219d67d0ea00001c"} update={"$set"=>{"updated_at"=>2014-03-29 08:53:59 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1400ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a21219d67d0ea00001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1249ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:53:59 +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.8280ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6762ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 09:53:59 +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.5717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "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.5572ms) Rendered text template (0.0ms) Completed 200 OK in 567.1ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368a21219d67d0ea00001c"} 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_content_entries selector={"content_type_id"=>"53368a21219d67d0ea00001c", "updated_at"=>{"$lt"=>2014-03-29 08:53:59 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53368a21219d67d0ea00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368a20219d67d0ea000018"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"53368a21219d67d0ea00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53368a21219d67d0ea00001f"} update={"$set"=>{"updated_at"=>2014-03-29 08:54:00 UTC}} flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368a20219d67d0ea000018"}, "$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_content_types selector={"$query"=>{"_id"=>"53368a21219d67d0ea00001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53368a22219d67d0ea000020"} update={"$set"=>{"updated_at"=>2014-03-29 08:54:00 UTC}} flags=[] (0.1409ms) Started GET "/" for 127.0.0.1 at 2014-03-29 09:54: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 (1.1749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 7.0ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 09:54: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.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a20219d67d0ea000018", "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.7370ms) Rendered text template (0.0ms) Completed 200 OK in 560.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 (1.1282ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.9200ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.6618ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9580ms) 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.6378ms) 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.4811ms) 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.9410ms) 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.5338ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368a83219d6790df000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6dcaa2be39449a231d35e1bdd4f30c87df7cd407", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RA1fsq9Syryo4JZzxxxA", "api_key"=>"ff7900e1a7c9302c39a386f74ee31536a10efab0", "updated_at"=>2014-03-29 08:55:31 UTC, "created_at"=>2014-03-29 08:55:31 UTC}] flags=[] (0.1850ms) 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.6961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368a83219d6790df000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:55:31 UTC, "updated_at"=>2014-03-29 08:55:31 UTC, "memberships"=>[{"_id"=>"53368a83219d6790df000003", "role"=>"admin", "account_id"=>"53368a83219d6790df000001"}]}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a83219d6790df000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a83219d6790df000002", "_id"=>{"$ne"=>"53368a83219d6790df000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4773ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a83219d6790df000004", "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"=>"53368a83219d6790df000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:32 UTC, "created_at"=>2014-03-29 08:55:32 UTC}] flags=[] (0.4182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a83219d6790df000004"]}}, "$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"=>["53368a83219d6790df000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a83219d6790df000002", "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"=>"53368a83219d6790df000002", "_id"=>{"$ne"=>"53368a84219d6790df000005"}, "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"=>"53368a83219d6790df000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a84219d6790df000005", "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"=>"53368a83219d6790df000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:32 UTC, "created_at"=>2014-03-29 08:55:32 UTC}] flags=[] (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a84219d6790df000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368a84219d6790df000005"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53368a84219d6790df000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368a83219d6790df000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.7490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368a84219d6790df000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368a83219d6790df000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368a84219d6790df000007", "updated_at"=>2014-03-29 08:55:32 UTC, "created_at"=>2014-03-29 08:55:32 UTC, "entries_custom_fields"=>[{"_id"=>"53368a84219d6790df000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368a84219d6790df000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368a84219d6790df000008", "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", "updated_at"=>2014-03-29 08:55:32 UTC, "created_at"=>2014-03-29 08:55:32 UTC}}} flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a84219d6790df000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a84219d6790df000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a84219d6790df000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a84219d6790df000006"]}}} (0.4232ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a84219d6790df000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a84219d6790df000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a84219d6790df000006", "content_type_id"=>"53368a84219d6790df000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368a83219d6790df000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:55:32 UTC, "created_at"=>2014-03-29 08:55:32 UTC}] flags=[] (0.2658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a85219d6790df00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a84219d6790df000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a84219d6790df000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4339ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a84219d6790df000006"]}}} (0.5031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a84219d6790df000006"]}}} (0.3278ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a84219d6790df000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a85219d6790df00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a84219d6790df000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a84219d6790df000006", "content_type_id"=>"53368a84219d6790df000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368a83219d6790df000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:55:33 UTC, "created_at"=>2014-03-29 08:55:33 UTC}] flags=[] (0.2668ms) 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.7172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002", "_id"=>{"$ne"=>"53368a86219d6790df00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a83219d6790df000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a86219d6790df00000b", "parent_ids"=>["53368a83219d6790df000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:34 UTC, "created_at"=>2014-03-29 08:55:34 UTC}] flags=[] (0.4730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a86219d6790df00000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a86219d6790df00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3757ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a86219d6790df00000b"]}} 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.7758ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5424ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002", "_id"=>{"$ne"=>"53368a87219d6790df00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a83219d6790df000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a87219d6790df00000c", "parent_ids"=>["53368a83219d6790df000004"], "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"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:35 UTC, "created_at"=>2014-03-29 08:55:35 UTC}] flags=[] (0.4239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a87219d6790df00000c"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53368a87219d6790df00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a87219d6790df00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1721ms) 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.7432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "$or"=>[{"slug.en"=>"seems-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"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002", "_id"=>{"$ne"=>"53368a87219d6790df00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a83219d6790df000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a87219d6790df00000d", "parent_ids"=>["53368a83219d6790df000004"], "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"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:35 UTC, "created_at"=>2014-03-29 08:55:35 UTC}] flags=[] (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a87219d6790df00000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53368a87219d6790df00000d"}, "$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"=>["53368a87219d6790df00000d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2151ms) 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.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002", "_id"=>{"$ne"=>"53368a87219d6790df00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368a83219d6790df000004", "site_id"=>"53368a83219d6790df000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368a83219d6790df000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a87219d6790df00000e", "parent_ids"=>["53368a83219d6790df000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368a83219d6790df000002", "parent_id"=>"53368a83219d6790df000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:35 UTC, "created_at"=>2014-03-29 08:55:35 UTC}] flags=[] (0.3781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a87219d6790df00000e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368a87219d6790df00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5999ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a87219d6790df00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368a83219d6790df000002"}, "$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"=>"53368a83219d6790df000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:55:36 UTC}} flags=[] (0.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002", "template_dependencies.en"=>{"$in"=>["53368a83219d6790df000004"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7620ms) 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.5829ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368a88219d6790df00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:55:31 UTC, "updated_at"=>2014-03-29 08:55:36 UTC, "memberships"=>[{"_id"=>"53368a88219d6790df000010", "role"=>"admin", "account_id"=>"53368a83219d6790df000001"}]}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a88219d6790df00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a88219d6790df00000f", "_id"=>{"$ne"=>"53368a88219d6790df000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a88219d6790df000011", "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"=>"53368a88219d6790df00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:36 UTC, "created_at"=>2014-03-29 08:55:36 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a88219d6790df00000f", "template_dependencies.en"=>{"$in"=>["53368a88219d6790df000011"]}}, "$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"=>"53368a88219d6790df000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4282ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a88219d6790df000011"]}} 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"=>"53368a88219d6790df00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a88219d6790df00000f", "_id"=>{"$ne"=>"53368a89219d6790df000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1342ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a88219d6790df00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a89219d6790df000012", "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"=>"53368a88219d6790df00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:37 UTC, "created_at"=>2014-03-29 08:55:37 UTC}] flags=[] (0.4721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a88219d6790df00000f", "template_dependencies.en"=>{"$in"=>["53368a89219d6790df000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53368a89219d6790df000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7012ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368a89219d6790df000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368a88219d6790df00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a88219d6790df00000f", "_id"=>{"$ne"=>"53368a89219d6790df000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368a88219d6790df00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3051ms) 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.7548ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368a89219d6790df000013", "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"=>"53368a88219d6790df00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:55:37 UTC, "created_at"=>2014-03-29 08:55:37 UTC}] flags=[] (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a88219d6790df00000f", "template_dependencies.en"=>{"$in"=>["53368a89219d6790df000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53368a89219d6790df000013"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53368a89219d6790df000013"]}} 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_content_types selector={"site_id"=>"53368a88219d6790df00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6061ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368a8a219d6790df000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368a88219d6790df00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368a8a219d6790df000015", "updated_at"=>2014-03-29 08:55:38 UTC, "created_at"=>2014-03-29 08:55:38 UTC, "entries_custom_fields"=>[{"_id"=>"53368a8a219d6790df000015", "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.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368a8a219d6790df000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368a8a219d6790df000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368a8a219d6790df000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368a8a219d6790df000014"]}}} (0.5653ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368a8a219d6790df000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368a8a219d6790df000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368a8a219d6790df000014", "content_type_id"=>"53368a8a219d6790df000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368a88219d6790df00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:55:38 UTC, "created_at"=>2014-03-29 08:55:38 UTC}] flags=[] (0.3550ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:55: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} (0.8810ms) 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.6318ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368a83219d6790df000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5960ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (15.8ms) Completed 200 OK in 36.7ms (Views: 30.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:55:40 +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-03-29 09:55:40 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 09:55:40 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:55: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 (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368a83219d6790df000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368a83219d6790df000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:55:40 UTC, "updated_at"=>2014-03-29 08:55:40 UTC}} flags=[] (0.1547ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368a83219d6790df000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:55:40 UTC, "current_sign_in_at"=>2014-03-29 08:55: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-03-29 08:55:40 UTC}} flags=[] (0.2091ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 23.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:55: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 (1.6162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368a83219d6790df000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368a83219d6790df000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.1510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.4922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.3681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368a84219d6790df000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7889ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (50.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (80.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368a83219d6790df000001", :role=>:admin}}}} (0.7749ms) Rendered locomotive/shared/_main_app_head.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368a83219d6790df000001"}} (0.6640ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368a83219d6790df000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7422ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.8ms) 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.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (34.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 194.7ms (Views: 156.1ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:55:40 +0100 Served asset /locomotive.css - 200 OK (36ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:55:40 +0100 Served asset /locomotive.js - 200 OK (111ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:55:40 +0100 Served asset /locomotive/search_bar.js - 200 OK (8ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:55:40 +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-03-29 09:55:40 +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-03-29 09:55:40 +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-03-29 09:55:40 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:55: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.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368a83219d6790df000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368a83219d6790df000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.3151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.6979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368a83219d6790df000002"}, "$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.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368a84219d6790df000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7610ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368a83219d6790df000001", :role=>:admin}}}} (0.5150ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368a83219d6790df000001"}} (0.5169ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368a83219d6790df000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 57.9ms (Views: 42.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:55:41 +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.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368a83219d6790df000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368a83219d6790df000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) Completed 200 OK in 587.3ms (Views: 4.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 (2.1560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.0130ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6870ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.9751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2572ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.5230ms) 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.2081ms) 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.9270ms) 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.4062ms) 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.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368b0b219d67fb4d000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"b4e0b53bec7a2a2a3ee3697c3ae70e3b910c66da", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ZypPy5ETRwkWKa6NWsqN", "api_key"=>"6debe3381375f9b52a7d3f970885561387bcbf1c", "updated_at"=>2014-03-29 08:57:47 UTC, "created_at"=>2014-03-29 08:57:47 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} (1.8282ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368b0b219d67fb4d000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 08:57:46 UTC, "updated_at"=>2014-03-29 08:57:47 UTC, "memberships"=>[{"_id"=>"53368b0b219d67fb4d000003", "role"=>"admin", "account_id"=>"53368b0b219d67fb4d000001"}]}] flags=[] (0.2592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.4410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368b0b219d67fb4d000002", "_id"=>{"$ne"=>"53368b0b219d67fb4d000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368b0b219d67fb4d000004", "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"=>"53368b0b219d67fb4d000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:47 UTC, "created_at"=>2014-03-29 08:57:47 UTC}] flags=[] (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368b0b219d67fb4d000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0b219d67fb4d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6680ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b0b219d67fb4d000004"]}} 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={"site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368b0b219d67fb4d000002", "_id"=>{"$ne"=>"53368b0c219d67fb4d000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53368b0b219d67fb4d000002"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"53368b0c219d67fb4d000005", "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"=>"53368b0b219d67fb4d000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:48 UTC, "created_at"=>2014-03-29 08:57:48 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0c219d67fb4d000005"]}}, "$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"=>"53368b0c219d67fb4d000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b0c219d67fb4d000005"]}} 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_content_types selector={"site_id"=>"53368b0b219d67fb4d000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5302ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368b0c219d67fb4d000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368b0b219d67fb4d000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368b0c219d67fb4d000007", "updated_at"=>2014-03-29 08:57:48 UTC, "created_at"=>2014-03-29 08:57:48 UTC, "entries_custom_fields"=>[{"_id"=>"53368b0c219d67fb4d000007", "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.5679ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368b0c219d67fb4d000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368b0c219d67fb4d000008", "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", "updated_at"=>2014-03-29 08:57:48 UTC, "created_at"=>2014-03-29 08:57:48 UTC}}} flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368b0c219d67fb4d000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368b0c219d67fb4d000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.7218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368b0c219d67fb4d000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368b0c219d67fb4d000006"]}}} (0.6409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368b0c219d67fb4d000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368b0c219d67fb4d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368b0c219d67fb4d000006", "content_type_id"=>"53368b0c219d67fb4d000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368b0b219d67fb4d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:57:48 UTC, "created_at"=>2014-03-29 08:57:48 UTC}] flags=[] (0.3841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368b0d219d67fb4d00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368b0c219d67fb4d000006"]}} 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"=>"53368b0c219d67fb4d000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368b0c219d67fb4d000006"]}}} (0.3641ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368b0c219d67fb4d000006"]}}} (0.3133ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368b0c219d67fb4d000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368b0d219d67fb4d00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368b0c219d67fb4d000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368b0c219d67fb4d000006", "content_type_id"=>"53368b0c219d67fb4d000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368b0b219d67fb4d000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:57:49 UTC, "created_at"=>2014-03-29 08:57:49 UTC}] flags=[] (0.2551ms) 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.8960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002", "_id"=>{"$ne"=>"53368b0e219d67fb4d00000b"}, "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"=>"53368b0b219d67fb4d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368b0e219d67fb4d00000b", "parent_ids"=>["53368b0b219d67fb4d000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:50 UTC, "created_at"=>2014-03-29 08:57:50 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0e219d67fb4d00000b"]}}, "$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"=>"53368b0e219d67fb4d00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b0e219d67fb4d00000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002", "_id"=>{"$ne"=>"53368b0e219d67fb4d00000c"}, "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"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5577ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368b0b219d67fb4d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368b0e219d67fb4d00000c", "parent_ids"=>["53368b0b219d67fb4d000004"], "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"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:50 UTC, "created_at"=>2014-03-29 08:57:50 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0e219d67fb4d00000c"]}}, "$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"=>"53368b0e219d67fb4d00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b0e219d67fb4d00000c"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002", "_id"=>{"$ne"=>"53368b0e219d67fb4d00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002"}, "$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"=>"53368b0b219d67fb4d000004"}]}]}, "$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"=>"53368b0e219d67fb4d00000d", "parent_ids"=>["53368b0b219d67fb4d000004"], "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"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:50 UTC, "created_at"=>2014-03-29 08:57:50 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0e219d67fb4d00000d"]}}, "$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"=>"53368b0e219d67fb4d00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b0e219d67fb4d00000d"]}} 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.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002", "_id"=>{"$ne"=>"53368b0e219d67fb4d00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368b0b219d67fb4d000004", "site_id"=>"53368b0b219d67fb4d000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368b0b219d67fb4d000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4883ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368b0e219d67fb4d00000e", "parent_ids"=>["53368b0b219d67fb4d000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368b0b219d67fb4d000002", "parent_id"=>"53368b0b219d67fb4d000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:50 UTC, "created_at"=>2014-03-29 08:57:50 UTC}] flags=[] (0.3242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0e219d67fb4d00000e"]}}, "$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"=>"53368b0e219d67fb4d00000e"}, "$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"=>["53368b0e219d67fb4d00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1037ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368b0b219d67fb4d000002"}, "$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"=>"53368b0b219d67fb4d000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 08:57:51 UTC}} flags=[] (0.2053ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002", "template_dependencies.en"=>{"$in"=>["53368b0b219d67fb4d000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368b10219d67fb4d00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 08:57:46 UTC, "updated_at"=>2014-03-29 08:57:52 UTC, "memberships"=>[{"_id"=>"53368b10219d67fb4d000010", "role"=>"admin", "account_id"=>"53368b0b219d67fb4d000001"}]}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368b10219d67fb4d00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"53368b10219d67fb4d00000f", "_id"=>{"$ne"=>"53368b10219d67fb4d000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53368b10219d67fb4d000011", "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"=>"53368b10219d67fb4d00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:52 UTC, "created_at"=>2014-03-29 08:57:52 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b10219d67fb4d00000f", "template_dependencies.en"=>{"$in"=>["53368b10219d67fb4d000011"]}}, "$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"=>"53368b10219d67fb4d000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b10219d67fb4d000011"]}} 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"=>"53368b10219d67fb4d00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"53368b10219d67fb4d00000f", "_id"=>{"$ne"=>"53368b11219d67fb4d000012"}, "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"=>"53368b10219d67fb4d00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368b11219d67fb4d000012", "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"=>"53368b10219d67fb4d00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:53 UTC, "created_at"=>2014-03-29 08:57:53 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b10219d67fb4d00000f", "template_dependencies.en"=>{"$in"=>["53368b11219d67fb4d000012"]}}, "$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"=>"53368b11219d67fb4d000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6959ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368b11219d67fb4d000012"]}} 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"=>"53368b10219d67fb4d00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368b10219d67fb4d00000f", "_id"=>{"$ne"=>"53368b11219d67fb4d000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368b10219d67fb4d00000f"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368b11219d67fb4d000013", "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"=>"53368b10219d67fb4d00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 08:57:53 UTC, "created_at"=>2014-03-29 08:57:53 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b10219d67fb4d00000f", "template_dependencies.en"=>{"$in"=>["53368b11219d67fb4d000013"]}}, "$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"=>"53368b11219d67fb4d000013"}, "$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"=>["53368b11219d67fb4d000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368b10219d67fb4d00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5460ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368b11219d67fb4d000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368b10219d67fb4d00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368b12219d67fb4d000015", "updated_at"=>2014-03-29 08:57:54 UTC, "created_at"=>2014-03-29 08:57:54 UTC, "entries_custom_fields"=>[{"_id"=>"53368b12219d67fb4d000015", "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.2832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368b12219d67fb4d000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368b11219d67fb4d000014"]}} 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={"content_type_id"=>"53368b11219d67fb4d000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4938ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368b11219d67fb4d000014"]}}} (0.4952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368b12219d67fb4d000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368b11219d67fb4d000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368b11219d67fb4d000014", "content_type_id"=>"53368b11219d67fb4d000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368b10219d67fb4d00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 08:57:54 UTC, "created_at"=>2014-03-29 08:57:54 UTC}] flags=[] (0.1948ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 09:57: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 COMMAND database=admin command={:ismaster=>1} (1.1992ms) 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.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368b0b219d67fb4d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6311ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.4ms) Completed 200 OK in 44.5ms (Views: 35.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 09:57:56 +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-03-29 09:57:56 +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-03-29 09:57:56 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 09:57: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.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368b0b219d67fb4d000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4210ms) 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.7889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368b0b219d67fb4d000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 08:57:56 UTC, "updated_at"=>2014-03-29 08:57:56 UTC}} flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368b0b219d67fb4d000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 08:57:56 UTC, "current_sign_in_at"=>2014-03-29 08:57: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-03-29 08:57:56 UTC}} flags=[] (0.2229ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:57: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.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368b0b219d67fb4d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368b0b219d67fb4d000001"]}} 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"=>"53368b0b219d67fb4d000002"}, "$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.3139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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.6349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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.4117ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368b0c219d67fb4d000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7739ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (50.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368b0b219d67fb4d000001", :role=>:admin}}}} (0.7131ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368b0b219d67fb4d000001"}} (0.6571ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368b0b219d67fb4d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.2ms) 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.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 135.5ms (Views: 117.5ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 09:57:56 +0100 Served asset /locomotive.js - 200 OK (107ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 09:57:56 +0100 Served asset /locomotive.css - 200 OK (39ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 09:57:56 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 09:57:56 +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-03-29 09:57:56 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 09:57:56 +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-03-29 09:57:56 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 09:57: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.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368b0b219d67fb4d000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368b0b219d67fb4d000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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.1339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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.2240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368b0b219d67fb4d000002"}, "$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.4299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368b0c219d67fb4d000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6921ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368b0b219d67fb4d000001", :role=>:admin}}}} (0.5090ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368b0b219d67fb4d000001"}} (0.4117ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368b0b219d67fb4d000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5682ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 58.1ms (Views: 42.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 09:57:57 +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 (1.5681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368b0b219d67fb4d000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["53368b0b219d67fb4d000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7472ms) Completed 200 OK in 616.1ms (Views: 9.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 (1.6890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.2190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (3.2523ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1958ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.6651ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5922ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8199ms) 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.6030ms) 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.5002ms) 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.9820ms) 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.5028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368de5219d67c681000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8f7e284775fc11abfb8d7a044493b1e84f0cb31c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"MgpTSqiGJpBzeHEuyxzw", "api_key"=>"9a05c2aed5e2c03152b3bd5a4c0a6c435582e1b5", "updated_at"=>2014-03-29 09:09:57 UTC, "created_at"=>2014-03-29 09:09:57 UTC}] flags=[] (0.2170ms) 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.8409ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368de5219d67c681000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:09:56 UTC, "updated_at"=>2014-03-29 09:09:57 UTC, "memberships"=>[{"_id"=>"53368de5219d67c681000003", "role"=>"admin", "account_id"=>"53368de5219d67c681000001"}]}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368de5219d67c681000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368de5219d67c681000002", "_id"=>{"$ne"=>"53368de6219d67c681000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7317ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368de6219d67c681000004", "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"=>"53368de5219d67c681000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:09:58 UTC, "created_at"=>2014-03-29 09:09:58 UTC}] flags=[] (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368de6219d67c681000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8142ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368de6219d67c681000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2613ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368de5219d67c681000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368de5219d67c681000002", "_id"=>{"$ne"=>"53368de7219d67c681000005"}, "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"=>"53368de5219d67c681000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368de7219d67c681000005", "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"=>"53368de5219d67c681000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:09:59 UTC, "created_at"=>2014-03-29 09:09:59 UTC}] flags=[] (0.3147ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368de7219d67c681000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53368de7219d67c681000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368de7219d67c681000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368de5219d67c681000002", "slug"=>"examples"} 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"=>"53368de7219d67c681000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368de5219d67c681000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368de7219d67c681000007", "updated_at"=>2014-03-29 09:09:59 UTC, "created_at"=>2014-03-29 09:09:59 UTC, "entries_custom_fields"=>[{"_id"=>"53368de7219d67c681000007", "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.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368de7219d67c681000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368de7219d67c681000008", "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", "updated_at"=>2014-03-29 09:09:59 UTC, "created_at"=>2014-03-29 09:09:59 UTC}}} flags=[] (0.2007ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368de7219d67c681000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368de7219d67c681000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368de7219d67c681000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368de7219d67c681000006"]}}} (0.5341ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368de7219d67c681000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368de7219d67c681000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368de7219d67c681000006", "content_type_id"=>"53368de7219d67c681000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368de5219d67c681000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:09:59 UTC, "created_at"=>2014-03-29 09:09:59 UTC}] flags=[] (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368de8219d67c68100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368de7219d67c681000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368de7219d67c681000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9038ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368de7219d67c681000006"]}}} (0.9012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368de7219d67c681000006"]}}} (0.5281ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368de7219d67c681000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.1301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368de8219d67c68100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368de7219d67c681000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368de7219d67c681000006", "content_type_id"=>"53368de7219d67c681000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368de5219d67c681000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:10:00 UTC, "created_at"=>2014-03-29 09:10:00 UTC}] flags=[] (0.4251ms) 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.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002", "_id"=>{"$ne"=>"53368de8219d67c68100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368de6219d67c681000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368de8219d67c68100000b", "parent_ids"=>["53368de6219d67c681000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:00 UTC, "created_at"=>2014-03-29 09:10:00 UTC}] flags=[] (0.4869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368de8219d67c68100000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53368de8219d67c68100000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368de8219d67c68100000b"]}} 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.8402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002", "_id"=>{"$ne"=>"53368dea219d67c68100000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368de6219d67c681000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5808ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368dea219d67c68100000c", "parent_ids"=>["53368de6219d67c681000004"], "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"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:02 UTC, "created_at"=>2014-03-29 09:10:02 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368dea219d67c68100000c"]}}, "$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"=>"53368dea219d67c68100000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368dea219d67c68100000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) 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.7880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002", "_id"=>{"$ne"=>"53368dea219d67c68100000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368de6219d67c681000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368dea219d67c68100000d", "parent_ids"=>["53368de6219d67c681000004"], "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"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:02 UTC, "created_at"=>2014-03-29 09:10:02 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368dea219d67c68100000d"]}}, "$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"=>"53368dea219d67c68100000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368dea219d67c68100000d"]}} 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"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002", "_id"=>{"$ne"=>"53368dea219d67c68100000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368de6219d67c681000004", "site_id"=>"53368de5219d67c681000002"}, "$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"=>"53368de6219d67c681000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368dea219d67c68100000e", "parent_ids"=>["53368de6219d67c681000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368de5219d67c681000002", "parent_id"=>"53368de6219d67c681000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:02 UTC, "created_at"=>2014-03-29 09:10:02 UTC}] flags=[] (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368dea219d67c68100000e"]}}, "$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"=>"53368dea219d67c68100000e"}, "$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"=>["53368dea219d67c68100000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368de5219d67c681000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5398ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368de6219d67c681000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:10:03 UTC}} flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002", "template_dependencies.en"=>{"$in"=>["53368de6219d67c681000004"]}}, "$orderby"=>{"position"=>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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9282ms) 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.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368deb219d67c68100000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:09:56 UTC, "updated_at"=>2014-03-29 09:10:03 UTC, "memberships"=>[{"_id"=>"53368deb219d67c681000010", "role"=>"admin", "account_id"=>"53368de5219d67c681000001"}]}] flags=[] (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368deb219d67c68100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368deb219d67c68100000f", "_id"=>{"$ne"=>"53368deb219d67c681000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8571ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368deb219d67c681000011", "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"=>"53368deb219d67c68100000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:03 UTC, "created_at"=>2014-03-29 09:10:03 UTC}] flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368deb219d67c68100000f", "template_dependencies.en"=>{"$in"=>["53368deb219d67c681000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53368deb219d67c681000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7291ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368deb219d67c681000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368deb219d67c68100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5503ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368deb219d67c68100000f", "_id"=>{"$ne"=>"53368dec219d67c681000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368deb219d67c68100000f"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"53368dec219d67c681000012", "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"=>"53368deb219d67c68100000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:04 UTC, "created_at"=>2014-03-29 09:10:04 UTC}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368deb219d67c68100000f", "template_dependencies.en"=>{"$in"=>["53368dec219d67c681000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368dec219d67c681000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3903ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368dec219d67c681000012"]}} 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={"site_id"=>"53368deb219d67c68100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368deb219d67c68100000f", "_id"=>{"$ne"=>"53368dec219d67c681000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368deb219d67c68100000f"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368dec219d67c681000013", "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"=>"53368deb219d67c68100000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:10:04 UTC, "created_at"=>2014-03-29 09:10:04 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368deb219d67c68100000f", "template_dependencies.en"=>{"$in"=>["53368dec219d67c681000013"]}}, "$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"=>"53368dec219d67c681000013"}, "$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"=>["53368dec219d67c681000013"]}} 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_content_types selector={"site_id"=>"53368deb219d67c68100000f", "slug"=>"examples"} 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"=>"53368ded219d67c681000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368deb219d67c68100000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368ded219d67c681000015", "updated_at"=>2014-03-29 09:10:05 UTC, "created_at"=>2014-03-29 09:10:05 UTC, "entries_custom_fields"=>[{"_id"=>"53368ded219d67c681000015", "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.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368ded219d67c681000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368ded219d67c681000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (3.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368ded219d67c681000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4661ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368ded219d67c681000014"]}}} (0.5288ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368ded219d67c681000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368ded219d67c681000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368ded219d67c681000014", "content_type_id"=>"53368ded219d67c681000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368deb219d67c68100000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:10:05 UTC, "created_at"=>2014-03-29 09:10:05 UTC}] flags=[] (0.2148ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:10: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} (6.7389ms) 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.7613ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368de5219d67c681000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9291ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (31.0ms) Completed 200 OK in 65.8ms (Views: 51.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:10:08 +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-03-29 10:10:08 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (19ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:10:08 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:10: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.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368de5219d67c681000001"]}}, "$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"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6781ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368de5219d67c681000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:10:08 UTC, "updated_at"=>2014-03-29 09:10:08 UTC}} flags=[] (0.2458ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368de5219d67c681000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:10:08 UTC, "current_sign_in_at"=>2014-03-29 09:10: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-03-29 09:10:08 UTC}} flags=[] (0.1771ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.6ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:10: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.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368de5219d67c681000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368de5219d67c681000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5777ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.1189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.0872ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.8521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.4942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368de7219d67c681000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8669ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368de5219d67c681000001", :role=>:admin}}}} (0.6392ms) Rendered locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368de5219d67c681000001"}} (0.5271ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368de5219d67c681000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6042ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.1ms) Rendered locomotive/shared/_main_app_header.html.haml (6.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (33.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 143.4ms (Views: 126.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:10:08 +0100 Served asset /locomotive.css - 200 OK (69ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:10:08 +0100 Served asset /locomotive.js - 200 OK (206ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:10:09 +0100 Served asset /locomotive/search_bar.css - 200 OK (8ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:10:09 +0100 Served asset /locomotive/search_bar.js - 200 OK (14ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 10:10:09 +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-03-29 10:10: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-03-29 10:10:09 +0100 Served asset /locomotive/nocoffee.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:10: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.6542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368de5219d67c681000001"}, "$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"=>["53368de5219d67c681000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.2312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.6367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368de5219d67c681000002"}, "$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.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368de7219d67c681000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8237ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (19.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (32.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368de5219d67c681000001", :role=>:admin}}}} (0.5729ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (6.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368de5219d67c681000001"}} (0.5112ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368de5219d67c681000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.4ms) 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.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (12.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 79.1ms (Views: 58.1ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:10: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.6659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368de5219d67c681000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368de5219d67c681000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4761ms) Completed 200 OK in 627.3ms (Views: 7.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.9730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8508ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.8060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.6071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5330ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0679ms) 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.5822ms) 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.5488ms) 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.0049ms) 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.5560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368ea3219d671a65000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3060d7067354d451ca45afe99874ea45438b3c80", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"cyK3YDTK48NznWyxLH1E", "api_key"=>"79e24c23497f831ce5bbc744037780f7a1c29449", "updated_at"=>2014-03-29 09:13:07 UTC, "created_at"=>2014-03-29 09:13:07 UTC}] flags=[] (0.2089ms) 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.9313ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368ea3219d671a65000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:13:06 UTC, "updated_at"=>2014-03-29 09:13:07 UTC, "memberships"=>[{"_id"=>"53368ea3219d671a65000003", "role"=>"admin", "account_id"=>"53368ea3219d671a65000001"}]}] flags=[] (0.2408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea3219d671a65000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368ea3219d671a65000002", "_id"=>{"$ne"=>"53368ea3219d671a65000004"}, "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"=>"53368ea3219d671a65000004", "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"=>"53368ea3219d671a65000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:07 UTC, "created_at"=>2014-03-29 09:13:07 UTC}] flags=[] (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea3219d671a65000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea3219d671a65000004"]}} 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=locomotive_pages selector={"site_id"=>"53368ea3219d671a65000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368ea3219d671a65000002", "_id"=>{"$ne"=>"53368ea4219d671a65000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53368ea3219d671a65000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea4219d671a65000005", "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"=>"53368ea3219d671a65000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:08 UTC, "created_at"=>2014-03-29 09:13:08 UTC}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea4219d671a65000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368ea4219d671a65000005"}, "$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"=>["53368ea4219d671a65000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368ea3219d671a65000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5262ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368ea4219d671a65000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368ea3219d671a65000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368ea4219d671a65000007", "updated_at"=>2014-03-29 09:13:08 UTC, "created_at"=>2014-03-29 09:13:08 UTC, "entries_custom_fields"=>[{"_id"=>"53368ea4219d671a65000007", "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.2451ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368ea4219d671a65000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368ea4219d671a65000008", "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", "updated_at"=>2014-03-29 09:13:08 UTC, "created_at"=>2014-03-29 09:13:08 UTC}}} flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368ea4219d671a65000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368ea4219d671a65000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368ea4219d671a65000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5190ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368ea4219d671a65000006"]}}} (0.4890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368ea4219d671a65000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368ea4219d671a65000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368ea4219d671a65000006", "content_type_id"=>"53368ea4219d671a65000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368ea3219d671a65000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:13:08 UTC, "created_at"=>2014-03-29 09:13:08 UTC}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368ea5219d671a6500000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368ea4219d671a65000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368ea4219d671a65000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368ea4219d671a65000006"]}}} (0.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368ea4219d671a65000006"]}}} (0.2689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368ea4219d671a65000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368ea5219d671a6500000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368ea4219d671a65000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368ea4219d671a65000006", "content_type_id"=>"53368ea4219d671a65000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368ea3219d671a65000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:13:09 UTC, "created_at"=>2014-03-29 09:13:09 UTC}] flags=[] (0.2277ms) 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.7517ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002", "_id"=>{"$ne"=>"53368ea5219d671a6500000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368ea3219d671a65000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea5219d671a6500000b", "parent_ids"=>["53368ea3219d671a65000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:09 UTC, "created_at"=>2014-03-29 09:13:09 UTC}] flags=[] (0.3891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea5219d671a6500000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea5219d671a6500000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5083ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea5219d671a6500000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1361ms) 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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002", "_id"=>{"$ne"=>"53368ea6219d671a6500000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368ea3219d671a65000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea6219d671a6500000c", "parent_ids"=>["53368ea3219d671a65000004"], "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"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:10 UTC, "created_at"=>2014-03-29 09:13:10 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea6219d671a6500000c"]}}, "$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"=>"53368ea6219d671a6500000c"}, "$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"=>["53368ea6219d671a6500000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1812ms) 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.8571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002", "_id"=>{"$ne"=>"53368ea6219d671a6500000d"}, "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"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368ea3219d671a65000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea6219d671a6500000d", "parent_ids"=>["53368ea3219d671a65000004"], "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"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:10 UTC, "created_at"=>2014-03-29 09:13:10 UTC}] flags=[] (0.4387ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea6219d671a6500000d"]}}, "$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"=>"53368ea6219d671a6500000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea6219d671a6500000d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) 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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002", "_id"=>{"$ne"=>"53368ea6219d671a6500000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368ea3219d671a65000004", "site_id"=>"53368ea3219d671a65000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368ea3219d671a65000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea6219d671a6500000e", "parent_ids"=>["53368ea3219d671a65000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368ea3219d671a65000002", "parent_id"=>"53368ea3219d671a65000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:10 UTC, "created_at"=>2014-03-29 09:13:10 UTC}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea6219d671a6500000e"]}}, "$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"=>"53368ea6219d671a6500000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea6219d671a6500000e"]}} 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={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"53368ea3219d671a65000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7589ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368ea3219d671a65000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:13:11 UTC}} flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002", "template_dependencies.en"=>{"$in"=>["53368ea3219d671a65000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4847ms) 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.2050ms) 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.4551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368ea8219d671a6500000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:13:06 UTC, "updated_at"=>2014-03-29 09:13:12 UTC, "memberships"=>[{"_id"=>"53368ea8219d671a65000010", "role"=>"admin", "account_id"=>"53368ea3219d671a65000001"}]}] flags=[] (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea8219d671a6500000f", "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"=>"53368ea8219d671a6500000f", "_id"=>{"$ne"=>"53368ea8219d671a65000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9758ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea8219d671a65000011", "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"=>"53368ea8219d671a6500000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:12 UTC, "created_at"=>2014-03-29 09:13:12 UTC}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea8219d671a6500000f", "template_dependencies.en"=>{"$in"=>["53368ea8219d671a65000011"]}}, "$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"=>"53368ea8219d671a65000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea8219d671a65000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea8219d671a6500000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368ea8219d671a6500000f", "_id"=>{"$ne"=>"53368ea8219d671a65000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368ea8219d671a6500000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.3251ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea8219d671a65000012", "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"=>"53368ea8219d671a6500000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:12 UTC, "created_at"=>2014-03-29 09:13:12 UTC}] flags=[] (0.3641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea8219d671a6500000f", "template_dependencies.en"=>{"$in"=>["53368ea8219d671a65000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53368ea8219d671a65000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6948ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea8219d671a65000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368ea8219d671a6500000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368ea8219d671a6500000f", "_id"=>{"$ne"=>"53368ea8219d671a65000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368ea8219d671a6500000f"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2952ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368ea8219d671a65000013", "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"=>"53368ea8219d671a6500000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:13:12 UTC, "created_at"=>2014-03-29 09:13:12 UTC}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea8219d671a6500000f", "template_dependencies.en"=>{"$in"=>["53368ea8219d671a65000013"]}}, "$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"=>"53368ea8219d671a65000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3712ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368ea8219d671a65000013"]}} 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_content_types selector={"site_id"=>"53368ea8219d671a6500000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368ea9219d671a65000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368ea8219d671a6500000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368ea9219d671a65000015", "updated_at"=>2014-03-29 09:13:13 UTC, "created_at"=>2014-03-29 09:13:13 UTC, "entries_custom_fields"=>[{"_id"=>"53368ea9219d671a65000015", "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.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368ea9219d671a65000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368ea9219d671a65000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368ea9219d671a65000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368ea9219d671a65000014"]}}} (0.7069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368ea9219d671a65000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368ea9219d671a65000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368ea9219d671a65000014", "content_type_id"=>"53368ea9219d671a65000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368ea8219d671a6500000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:13:13 UTC, "created_at"=>2014-03-29 09:13:13 UTC}] flags=[] (0.5069ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:13:15 +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.7291ms) 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"=>["53368ea3219d671a65000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4580ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.1ms) Completed 200 OK in 42.1ms (Views: 36.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:13:15 +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-03-29 10:13:15 +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-03-29 10:13:15 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:13:15 +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.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368ea3219d671a65000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4437ms) 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.6249ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368ea3219d671a65000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:13:15 UTC, "updated_at"=>2014-03-29 09:13:15 UTC}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368ea3219d671a65000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:13:15 UTC, "current_sign_in_at"=>2014-03-29 09:13:15 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:13:15 UTC}} flags=[] (0.1647ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:13:15 +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.6788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368ea3219d671a65000001"}, "$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"=>["53368ea3219d671a65000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.1129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.4060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.5987ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.3693ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368ea4219d671a65000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6809ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (51.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368ea3219d671a65000001", :role=>:admin}}}} (0.5529ms) Rendered locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368ea3219d671a65000001"}} (0.5219ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (3.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368ea3219d671a65000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9661ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (7.6ms) 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 (8.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (41.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 154.6ms (Views: 137.4ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:13:15 +0100 Served asset /locomotive.js - 200 OK (196ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:13:16 +0100 Served asset /locomotive.css - 200 OK (70ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:13:16 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:13:16 +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-03-29 10:13:16 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:13:16 +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-03-29 10:13:16 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:13:16 +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.6154ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368ea3219d671a65000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368ea3219d671a65000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4983ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.2119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.5261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368ea3219d671a65000002"}, "$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.4449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368ea4219d671a65000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7520ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368ea3219d671a65000001", :role=>:admin}}}} (0.5131ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (4.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368ea3219d671a65000001"}} (0.5519ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368ea3219d671a65000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5751ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 59.2ms (Views: 43.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:13:16 +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.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368ea3219d671a65000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3443ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368ea3219d671a65000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6549ms) Completed 200 OK in 611.8ms (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 (1.6530ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (7.4148ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9829ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8401ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1849ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0970ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (7.0879ms) 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.6120ms) 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.5209ms) 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.7152ms) 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.5550ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368f0e219d679e53000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"c26cfbaef6fe8753c57e785bda29ee6471c992a4", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"C1LysmxxaTT46yBtpxzA", "api_key"=>"907563e1c2fe0807f28c67bc68dde4a49e06b4fd", "updated_at"=>2014-03-29 09:14:54 UTC, "created_at"=>2014-03-29 09:14:54 UTC}] flags=[] (0.2551ms) 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.8619ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368f0e219d679e53000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:14:54 UTC, "updated_at"=>2014-03-29 09:14:54 UTC, "memberships"=>[{"_id"=>"53368f0e219d679e53000003", "role"=>"admin", "account_id"=>"53368f0e219d679e53000001"}]}] flags=[] (0.3741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f0e219d679e53000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (22.6359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f0e219d679e53000002", "_id"=>{"$ne"=>"53368f0f219d679e53000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5922ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f0f219d679e53000004", "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"=>"53368f0e219d679e53000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:14:55 UTC, "created_at"=>2014-03-29 09:14:55 UTC}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f0f219d679e53000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4342ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f0f219d679e53000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f0e219d679e53000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f0e219d679e53000002", "_id"=>{"$ne"=>"53368f10219d679e53000005"}, "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"=>"53368f0e219d679e53000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53368f10219d679e53000005", "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"=>"53368f0e219d679e53000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:14:56 UTC, "created_at"=>2014-03-29 09:14:56 UTC}] flags=[] (0.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f10219d679e53000005"]}}, "$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"=>"53368f10219d679e53000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f10219d679e53000005"]}} 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_content_types selector={"site_id"=>"53368f0e219d679e53000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.3779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368f10219d679e53000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368f0e219d679e53000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368f10219d679e53000007", "updated_at"=>2014-03-29 09:14:56 UTC, "created_at"=>2014-03-29 09:14:56 UTC, "entries_custom_fields"=>[{"_id"=>"53368f10219d679e53000007", "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.2990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368f10219d679e53000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368f10219d679e53000008", "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", "updated_at"=>2014-03-29 09:14:56 UTC, "created_at"=>2014-03-29 09:14:56 UTC}}} flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368f10219d679e53000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368f10219d679e53000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368f10219d679e53000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f10219d679e53000006"]}}} (0.4277ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368f10219d679e53000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368f10219d679e53000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368f10219d679e53000006", "content_type_id"=>"53368f10219d679e53000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368f0e219d679e53000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:14:56 UTC, "created_at"=>2014-03-29 09:14:56 UTC}] flags=[] (0.2358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368f11219d679e5300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368f10219d679e53000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368f10219d679e53000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f10219d679e53000006"]}}} (0.4652ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f10219d679e53000006"]}}} (0.3591ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f10219d679e53000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368f11219d679e5300000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368f10219d679e53000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368f10219d679e53000006", "content_type_id"=>"53368f10219d679e53000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368f0e219d679e53000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:14:57 UTC, "created_at"=>2014-03-29 09:14:57 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.7172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5181ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002", "_id"=>{"$ne"=>"53368f11219d679e5300000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f0f219d679e53000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"53368f11219d679e5300000b", "parent_ids"=>["53368f0f219d679e53000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:14:57 UTC, "created_at"=>2014-03-29 09:14:57 UTC}] flags=[] (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f11219d679e5300000b"]}}, "$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"=>"53368f11219d679e5300000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f11219d679e5300000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1292ms) 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.7632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002", "_id"=>{"$ne"=>"53368f12219d679e5300000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7441ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f0f219d679e53000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6223ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f12219d679e5300000c", "parent_ids"=>["53368f0f219d679e53000004"], "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"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:14:58 UTC, "created_at"=>2014-03-29 09:14:58 UTC}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f12219d679e5300000c"]}}, "$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"=>"53368f12219d679e5300000c"}, "$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"=>["53368f12219d679e5300000c"]}} 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.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002", "_id"=>{"$ne"=>"53368f12219d679e5300000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f0f219d679e53000004"}]}]}, "$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"=>"53368f12219d679e5300000d", "parent_ids"=>["53368f0f219d679e53000004"], "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"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:14:58 UTC, "created_at"=>2014-03-29 09:14:58 UTC}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f12219d679e5300000d"]}}, "$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"=>"53368f12219d679e5300000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3788ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f12219d679e5300000d"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002", "_id"=>{"$ne"=>"53368f12219d679e5300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f0f219d679e53000004", "site_id"=>"53368f0e219d679e53000002"}, "$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"=>"53368f0f219d679e53000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"53368f12219d679e5300000e", "parent_ids"=>["53368f0f219d679e53000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368f0e219d679e53000002", "parent_id"=>"53368f0f219d679e53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:14:58 UTC, "created_at"=>2014-03-29 09:14:58 UTC}] flags=[] (0.2952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f12219d679e5300000e"]}}, "$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"=>"53368f12219d679e5300000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f12219d679e5300000e"]}} 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={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53368f0e219d679e53000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5000ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368f0f219d679e53000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:14:59 UTC}} flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002", "template_dependencies.en"=>{"$in"=>["53368f0f219d679e53000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4148ms) 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.6940ms) 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.3891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368f14219d679e5300000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:14:54 UTC, "updated_at"=>2014-03-29 09:15:00 UTC, "memberships"=>[{"_id"=>"53368f14219d679e53000010", "role"=>"admin", "account_id"=>"53368f0e219d679e53000001"}]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f14219d679e5300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f14219d679e5300000f", "_id"=>{"$ne"=>"53368f14219d679e53000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f14219d679e53000011", "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"=>"53368f14219d679e5300000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:15:00 UTC, "created_at"=>2014-03-29 09:15:00 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f14219d679e5300000f", "template_dependencies.en"=>{"$in"=>["53368f14219d679e53000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3133ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f14219d679e53000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f14219d679e53000011"]}} 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"=>"53368f14219d679e5300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f14219d679e5300000f", "_id"=>{"$ne"=>"53368f14219d679e53000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f14219d679e5300000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5462ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f14219d679e53000012", "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"=>"53368f14219d679e5300000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:15:00 UTC, "created_at"=>2014-03-29 09:15:00 UTC}] flags=[] (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f14219d679e5300000f", "template_dependencies.en"=>{"$in"=>["53368f14219d679e53000012"]}}, "$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"=>"53368f14219d679e53000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4318ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f14219d679e53000012"]}} 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"=>"53368f14219d679e5300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f14219d679e5300000f", "_id"=>{"$ne"=>"53368f14219d679e53000013"}, "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"=>"53368f14219d679e5300000f"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2618ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f14219d679e53000013", "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"=>"53368f14219d679e5300000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:15:00 UTC, "created_at"=>2014-03-29 09:15:00 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f14219d679e5300000f", "template_dependencies.en"=>{"$in"=>["53368f14219d679e53000013"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"53368f14219d679e53000013"}, "$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"=>["53368f14219d679e53000013"]}} 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_content_types selector={"site_id"=>"53368f14219d679e5300000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4773ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368f15219d679e53000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368f14219d679e5300000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368f15219d679e53000015", "updated_at"=>2014-03-29 09:15:01 UTC, "created_at"=>2014-03-29 09:15:01 UTC, "entries_custom_fields"=>[{"_id"=>"53368f15219d679e53000015", "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.2937ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368f15219d679e53000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368f15219d679e53000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368f15219d679e53000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f15219d679e53000014"]}}} (0.4601ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368f15219d679e53000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368f15219d679e53000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368f15219d679e53000014", "content_type_id"=>"53368f15219d679e53000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368f14219d679e5300000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:15:01 UTC, "created_at"=>2014-03-29 09:15:01 UTC}] flags=[] (0.1988ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:15:03 +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.9909ms) 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.6108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368f0e219d679e53000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7920ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (22.7ms) Completed 200 OK in 47.4ms (Views: 38.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:15:03 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 10:15:03 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (15ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:15:03 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:15:03 +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.6590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368f0e219d679e53000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7689ms) 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.6459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368f0e219d679e53000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:15:03 UTC, "updated_at"=>2014-03-29 09:15:03 UTC}} flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368f0e219d679e53000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:15:03 UTC, "current_sign_in_at"=>2014-03-29 09:15:03 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:15:03 UTC}} flags=[] (0.1574ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 24.8ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:15:03 +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.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368f0e219d679e53000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368f0e219d679e53000001"]}} 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"=>"53368f0e219d679e53000002"}, "$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.4939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.2190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.7763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.4289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368f10219d679e53000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8521ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (12.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368f0e219d679e53000001", :role=>:admin}}}} (0.6251ms) Rendered locomotive/shared/_main_app_head.html.haml (2.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.7ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368f0e219d679e53000001"}} (0.5901ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368f0e219d679e53000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6530ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (3.7ms) Rendered locomotive/shared/_main_app_header.html.haml (6.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 147.9ms (Views: 123.9ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:15:04 +0100 Served asset /locomotive.js - 200 OK (185ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:15:04 +0100 Served asset /locomotive.css - 200 OK (68ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:15:04 +0100 Served asset /locomotive/search_bar.js - 200 OK (6ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:15:04 +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-03-29 10:15:04 +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-03-29 10:15:04 +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-03-29 10:15:04 +0100 Served asset /locomotive/nocoffee.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:15:04 +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.6270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368f0e219d679e53000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368f0e219d679e53000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.4369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.4238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.7272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f0e219d679e53000002"}, "$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.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368f10219d679e53000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8190ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368f0e219d679e53000001", :role=>:admin}}}} (0.4699ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368f0e219d679e53000001"}} (0.4108ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368f0e219d679e53000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5169ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.7ms (Views: 44.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:15:04 +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.7000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368f0e219d679e53000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368f0e219d679e53000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5050ms) Completed 200 OK in 580.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 (1.1921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (7.3230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (40.5462ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.1567ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.7221ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1108ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0688ms) 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.8938ms) 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.5519ms) 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.3899ms) 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.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368f73219d67a939000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"53ee700f4b4aaf92779d40a47b9f00397ec7ba41", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"uSzGqJcxxyF3xJsFq2HF", "api_key"=>"214bddbe8794b29790f2dcbbbe63abf501f16f08", "updated_at"=>2014-03-29 09:16:35 UTC, "created_at"=>2014-03-29 09:16:35 UTC}] flags=[] (0.1709ms) 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.9162ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368f73219d67a939000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:16:35 UTC, "updated_at"=>2014-03-29 09:16:35 UTC, "memberships"=>[{"_id"=>"53368f73219d67a939000003", "role"=>"admin", "account_id"=>"53368f73219d67a939000001"}]}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f73219d67a939000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.2309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f73219d67a939000002", "_id"=>{"$ne"=>"53368f74219d67a939000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.8001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f74219d67a939000004", "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"=>"53368f73219d67a939000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:36 UTC, "created_at"=>2014-03-29 09:16:36 UTC}] flags=[] (0.6950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f74219d67a939000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f74219d67a939000004"]}} 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={"site_id"=>"53368f73219d67a939000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f73219d67a939000002", "_id"=>{"$ne"=>"53368f74219d67a939000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.0349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f73219d67a939000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f74219d67a939000005", "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"=>"53368f73219d67a939000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:37 UTC, "created_at"=>2014-03-29 09:16:37 UTC}] flags=[] (0.3862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f74219d67a939000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9627ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000005"}, "$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"=>["53368f74219d67a939000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368f73219d67a939000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (2.1291ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368f75219d67a939000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368f73219d67a939000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368f75219d67a939000007", "updated_at"=>2014-03-29 09:16:37 UTC, "created_at"=>2014-03-29 09:16:37 UTC, "entries_custom_fields"=>[{"_id"=>"53368f75219d67a939000007", "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.4070ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368f75219d67a939000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368f75219d67a939000008", "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", "updated_at"=>2014-03-29 09:16:37 UTC, "created_at"=>2014-03-29 09:16:37 UTC}}} flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368f75219d67a939000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368f75219d67a939000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.9492ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368f75219d67a939000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8669ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f75219d67a939000006"]}}} (0.8779ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368f75219d67a939000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368f75219d67a939000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368f75219d67a939000006", "content_type_id"=>"53368f75219d67a939000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368f73219d67a939000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:16:37 UTC, "created_at"=>2014-03-29 09:16:37 UTC}] flags=[] (0.2990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368f76219d67a93900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368f75219d67a939000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8903ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368f75219d67a939000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7937ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f75219d67a939000006"]}}} (0.7842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f75219d67a939000006"]}}} (0.5922ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f75219d67a939000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368f76219d67a93900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368f75219d67a939000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368f75219d67a939000006", "content_type_id"=>"53368f75219d67a939000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368f73219d67a939000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:16:38 UTC, "created_at"=>2014-03-29 09:16:38 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 (1.3831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.8919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002", "_id"=>{"$ne"=>"53368f76219d67a93900000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f74219d67a939000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f76219d67a93900000b", "parent_ids"=>["53368f74219d67a939000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:38 UTC, "created_at"=>2014-03-29 09:16:38 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f76219d67a93900000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f76219d67a93900000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f76219d67a93900000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.7281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002", "_id"=>{"$ne"=>"53368f77219d67a93900000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f74219d67a939000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f77219d67a93900000c", "parent_ids"=>["53368f74219d67a939000004"], "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"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:39 UTC, "created_at"=>2014-03-29 09:16:39 UTC}] flags=[] (0.3281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f77219d67a93900000c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53368f77219d67a93900000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f77219d67a93900000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2568ms) 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.5261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002", "_id"=>{"$ne"=>"53368f77219d67a93900000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.9610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f74219d67a939000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f77219d67a93900000d", "parent_ids"=>["53368f74219d67a939000004"], "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"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:39 UTC, "created_at"=>2014-03-29 09:16:39 UTC}] flags=[] (0.4370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f77219d67a93900000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53368f77219d67a93900000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3037ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f77219d67a93900000d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2854ms) 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.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002", "_id"=>{"$ne"=>"53368f77219d67a93900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.8930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f74219d67a939000004", "site_id"=>"53368f73219d67a939000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368f74219d67a939000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.7710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f77219d67a93900000e", "parent_ids"=>["53368f74219d67a939000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368f73219d67a939000002", "parent_id"=>"53368f74219d67a939000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:39 UTC, "created_at"=>2014-03-29 09:16:39 UTC}] flags=[] (0.6299ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f77219d67a93900000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f77219d67a93900000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3349ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f77219d67a93900000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"53368f73219d67a939000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368f74219d67a939000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:16:40 UTC}} flags=[] (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002", "template_dependencies.en"=>{"$in"=>["53368f74219d67a939000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6320ms) 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.4762ms) 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.5329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368f79219d67a93900000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:16:35 UTC, "updated_at"=>2014-03-29 09:16:41 UTC, "memberships"=>[{"_id"=>"53368f79219d67a939000010", "role"=>"admin", "account_id"=>"53368f73219d67a939000001"}]}] flags=[] (0.4783ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f79219d67a93900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f79219d67a93900000f", "_id"=>{"$ne"=>"53368f79219d67a939000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8337ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f79219d67a939000011", "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"=>"53368f79219d67a93900000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:41 UTC, "created_at"=>2014-03-29 09:16:41 UTC}] flags=[] (0.3583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f79219d67a93900000f", "template_dependencies.en"=>{"$in"=>["53368f79219d67a939000011"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f79219d67a939000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4792ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f79219d67a939000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f79219d67a93900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f79219d67a93900000f", "_id"=>{"$ne"=>"53368f7a219d67a939000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f79219d67a93900000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8321ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f7a219d67a939000012", "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"=>"53368f79219d67a93900000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:42 UTC, "created_at"=>2014-03-29 09:16:42 UTC}] flags=[] (2.0640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f79219d67a93900000f", "template_dependencies.en"=>{"$in"=>["53368f7a219d67a939000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f7a219d67a939000012"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53368f7a219d67a939000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368f79219d67a93900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f79219d67a93900000f", "_id"=>{"$ne"=>"53368f7a219d67a939000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368f79219d67a93900000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0679ms) 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.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368f7a219d67a939000013", "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"=>"53368f79219d67a93900000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:16:42 UTC, "created_at"=>2014-03-29 09:16:42 UTC}] flags=[] (0.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f79219d67a93900000f", "template_dependencies.en"=>{"$in"=>["53368f7a219d67a939000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.1238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368f7a219d67a939000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.4348ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368f7a219d67a939000013"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.9291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53368f79219d67a93900000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53368f7a219d67a939000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368f79219d67a93900000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368f7a219d67a939000015", "updated_at"=>2014-03-29 09:16:42 UTC, "created_at"=>2014-03-29 09:16:42 UTC, "entries_custom_fields"=>[{"_id"=>"53368f7a219d67a939000015", "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.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368f7a219d67a939000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368f7a219d67a939000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368f7a219d67a939000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (3.4239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368f7a219d67a939000014"]}}} (1.9600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368f7a219d67a939000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368f7a219d67a939000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368f7a219d67a939000014", "content_type_id"=>"53368f7a219d67a939000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368f79219d67a93900000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:16:42 UTC, "created_at"=>2014-03-29 09:16:42 UTC}] flags=[] (0.8421ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:16:45 +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.8409ms) 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.5138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368f73219d67a939000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5629ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.8ms) Completed 200 OK in 41.6ms (Views: 35.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:16:45 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 10:16:45 +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-03-29 10:16:45 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:16:45 +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.7770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368f73219d67a939000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368f73219d67a939000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:16:45 UTC, "updated_at"=>2014-03-29 09:16:45 UTC}} flags=[] (0.1693ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368f73219d67a939000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:16:45 UTC, "current_sign_in_at"=>2014-03-29 09:16:45 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:16:45 UTC}} flags=[] (0.1669ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:16:45 +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.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368f73219d67a939000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368f73219d67a939000001"]}} flags=[:slave_ok] limit=0 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"=>"53368f73219d67a939000002"}, "$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.0929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.2271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.7479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.4978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368f75219d67a939000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7849ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (52.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368f73219d67a939000001", :role=>:admin}}}} (0.5913ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368f73219d67a939000001"}} (0.5879ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368f73219d67a939000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6509ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (5.2ms) Rendered locomotive/shared/_main_app_header.html.haml (7.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.8ms) Completed 200 OK in 140.1ms (Views: 121.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:16:45 +0100 Served asset /locomotive.js - 200 OK (128ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:16:45 +0100 Served asset /locomotive.css - 200 OK (42ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:16:45 +0100 Served asset /locomotive/search_bar.js - 200 OK (10ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:16:45 +0100 Served asset /locomotive/search_bar.css - 200 OK (8ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 10:16:46 +0100 Served asset /locomotive/list/item-left.png - 200 OK (4ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:16:46 +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-03-29 10:16:46 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:16: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.9000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368f73219d67a939000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368f73219d67a939000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.1971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.0259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368f73219d67a939000002"}, "$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.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368f75219d67a939000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7193ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (1.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (26.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368f73219d67a939000001", :role=>:admin}}}} (0.5510ms) Rendered locomotive/shared/_main_app_head.html.haml (1.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (6.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368f73219d67a939000001"}} (0.3972ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53368f73219d67a939000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5620ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (1.0ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (1.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.6ms) Completed 200 OK in 71.4ms (Views: 51.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:16:46 +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.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368f73219d67a939000001"}, "$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={"_id"=>{"$in"=>["53368f73219d67a939000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6709ms) Completed 200 OK in 588.1ms (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 (3.1109ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.2850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7102ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (2.0843ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (4.0329ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.7648ms) 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.5789ms) 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.5739ms) 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.9201ms) 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.5612ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53368fd7219d671cf4000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"3fbdc250b32691e3cdc449190230c273da0434f9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"qn3UjFD7oQUWYGgyFeTV", "api_key"=>"1682a480d526935cf5e0c66cb58cc52d8a5ebf58", "updated_at"=>2014-03-29 09:18:15 UTC, "created_at"=>2014-03-29 09:18:15 UTC}] flags=[] (0.2010ms) 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.9363ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368fd7219d671cf4000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:18:14 UTC, "updated_at"=>2014-03-29 09:18:15 UTC, "memberships"=>[{"_id"=>"53368fd7219d671cf4000003", "role"=>"admin", "account_id"=>"53368fd7219d671cf4000001"}]}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fd7219d671cf4000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368fd7219d671cf4000002", "_id"=>{"$ne"=>"53368fd7219d671cf4000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53368fd7219d671cf4000004", "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"=>"53368fd7219d671cf4000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:15 UTC, "created_at"=>2014-03-29 09:18:15 UTC}] flags=[] (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368fd7219d671cf4000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fd7219d671cf4000004"]}}, "$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"=>["53368fd7219d671cf4000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1261ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fd7219d671cf4000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368fd7219d671cf4000002", "_id"=>{"$ne"=>"53368fd8219d671cf4000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368fd7219d671cf4000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368fd8219d671cf4000005", "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"=>"53368fd7219d671cf4000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:16 UTC, "created_at"=>2014-03-29 09:18:16 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fd8219d671cf4000005"]}}, "$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"=>"53368fd8219d671cf4000005"}, "$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"=>["53368fd8219d671cf4000005"]}} 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_content_types selector={"site_id"=>"53368fd7219d671cf4000002", "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"=>"53368fd8219d671cf4000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368fd7219d671cf4000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368fd8219d671cf4000007", "updated_at"=>2014-03-29 09:18:16 UTC, "created_at"=>2014-03-29 09:18:16 UTC, "entries_custom_fields"=>[{"_id"=>"53368fd8219d671cf4000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53368fd8219d671cf4000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53368fd8219d671cf4000008", "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", "updated_at"=>2014-03-29 09:18:16 UTC, "created_at"=>2014-03-29 09:18:16 UTC}}} flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368fd8219d671cf4000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368fd8219d671cf4000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368fd8219d671cf4000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368fd8219d671cf4000006"]}}} (0.4900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368fd8219d671cf4000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368fd8219d671cf4000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368fd8219d671cf4000006", "content_type_id"=>"53368fd8219d671cf4000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53368fd7219d671cf4000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:18:16 UTC, "created_at"=>2014-03-29 09:18:16 UTC}] flags=[] (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368fd9219d671cf400000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53368fd8219d671cf4000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53368fd8219d671cf4000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368fd8219d671cf4000006"]}}} (0.4501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368fd8219d671cf4000006"]}}} (0.3791ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368fd8219d671cf4000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368fd9219d671cf400000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53368fd8219d671cf4000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368fd8219d671cf4000006", "content_type_id"=>"53368fd8219d671cf4000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53368fd7219d671cf4000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:18:17 UTC, "created_at"=>2014-03-29 09:18:17 UTC}] flags=[] (0.2108ms) 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.7243ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002", "_id"=>{"$ne"=>"53368fd9219d671cf400000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53368fd7219d671cf4000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368fd9219d671cf400000b", "parent_ids"=>["53368fd7219d671cf4000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:17 UTC, "created_at"=>2014-03-29 09:18:17 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fd9219d671cf400000b"]}}, "$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"=>"53368fd9219d671cf400000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4251ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368fd9219d671cf400000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.7930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002", "_id"=>{"$ne"=>"53368fda219d671cf400000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368fd7219d671cf4000004"}]}]}, "$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"=>"53368fda219d671cf400000c", "parent_ids"=>["53368fd7219d671cf4000004"], "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"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:18 UTC, "created_at"=>2014-03-29 09:18:18 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fda219d671cf400000c"]}}, "$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"=>"53368fda219d671cf400000c"}, "$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"=>["53368fda219d671cf400000c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002", "_id"=>{"$ne"=>"53368fda219d671cf400000d"}, "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"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368fd7219d671cf4000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368fda219d671cf400000d", "parent_ids"=>["53368fd7219d671cf4000004"], "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"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:18 UTC, "created_at"=>2014-03-29 09:18:18 UTC}] flags=[] (0.3009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fda219d671cf400000d"]}}, "$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"=>"53368fda219d671cf400000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368fda219d671cf400000d"]}} 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.5302ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002", "_id"=>{"$ne"=>"53368fda219d671cf400000e"}, "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"=>"53368fd7219d671cf4000004", "site_id"=>"53368fd7219d671cf4000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53368fd7219d671cf4000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368fda219d671cf400000e", "parent_ids"=>["53368fd7219d671cf4000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53368fd7219d671cf4000002", "parent_id"=>"53368fd7219d671cf4000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:18 UTC, "created_at"=>2014-03-29 09:18:18 UTC}] flags=[] (0.2902ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fda219d671cf400000e"]}}, "$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"=>"53368fda219d671cf400000e"}, "$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"=>["53368fda219d671cf400000e"]}} 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={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"53368fd7219d671cf4000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53368fd7219d671cf4000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:18:19 UTC}} flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002", "template_dependencies.en"=>{"$in"=>["53368fd7219d671cf4000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7410ms) 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.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53368fdc219d671cf400000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:18:14 UTC, "updated_at"=>2014-03-29 09:18:20 UTC, "memberships"=>[{"_id"=>"53368fdc219d671cf4000010", "role"=>"admin", "account_id"=>"53368fd7219d671cf4000001"}]}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53368fdc219d671cf400000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368fdc219d671cf400000f", "_id"=>{"$ne"=>"53368fdc219d671cf4000011"}, "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"=>"53368fdc219d671cf4000011", "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"=>"53368fdc219d671cf400000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:20 UTC, "created_at"=>2014-03-29 09:18:20 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fdc219d671cf400000f", "template_dependencies.en"=>{"$in"=>["53368fdc219d671cf4000011"]}}, "$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"=>"53368fdc219d671cf4000011"}, "$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"=>["53368fdc219d671cf4000011"]}} 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"=>"53368fdc219d671cf400000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368fdc219d671cf400000f", "_id"=>{"$ne"=>"53368fdc219d671cf4000012"}, "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"=>"53368fdc219d671cf400000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53368fdc219d671cf4000012", "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"=>"53368fdc219d671cf400000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:20 UTC, "created_at"=>2014-03-29 09:18:20 UTC}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fdc219d671cf400000f", "template_dependencies.en"=>{"$in"=>["53368fdc219d671cf4000012"]}}, "$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"=>"53368fdc219d671cf4000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53368fdc219d671cf4000012"]}} 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"=>"53368fdc219d671cf400000f", "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"=>"53368fdc219d671cf400000f", "_id"=>{"$ne"=>"53368fdc219d671cf4000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8624ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53368fdc219d671cf400000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53368fdc219d671cf4000013", "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"=>"53368fdc219d671cf400000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:18:20 UTC, "created_at"=>2014-03-29 09:18:20 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fdc219d671cf400000f", "template_dependencies.en"=>{"$in"=>["53368fdc219d671cf4000013"]}}, "$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"=>"53368fdc219d671cf4000013"}, "$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"=>["53368fdc219d671cf4000013"]}} 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_content_types selector={"site_id"=>"53368fdc219d671cf400000f", "slug"=>"examples"} 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"=>"53368fdd219d671cf4000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53368fdc219d671cf400000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53368fdd219d671cf4000015", "updated_at"=>2014-03-29 09:18:21 UTC, "created_at"=>2014-03-29 09:18:21 UTC, "entries_custom_fields"=>[{"_id"=>"53368fdd219d671cf4000015", "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.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53368fdd219d671cf4000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53368fdd219d671cf4000014"]}} 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"=>"53368fdd219d671cf4000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53368fdd219d671cf4000014"]}}} (0.4041ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53368fdd219d671cf4000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53368fdd219d671cf4000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53368fdd219d671cf4000014", "content_type_id"=>"53368fdd219d671cf4000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53368fdc219d671cf400000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:18:21 UTC, "created_at"=>2014-03-29 09:18:21 UTC}] flags=[] (0.1719ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:18:23 +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.9758ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368fd7219d671cf4000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4799ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.5ms) Completed 200 OK in 38.0ms (Views: 31.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:18:23 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 10:18:23 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (14ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:18:23 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:18:23 +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.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53368fd7219d671cf4000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4249ms) 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.6499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368fd7219d671cf4000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:18:23 UTC, "updated_at"=>2014-03-29 09:18:23 UTC}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53368fd7219d671cf4000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:18:23 UTC, "current_sign_in_at"=>2014-03-29 09:18:23 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:18:23 UTC}} flags=[] (0.1547ms) 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-03-29 10:18:23 +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.6223ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368fd7219d671cf4000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368fd7219d671cf4000001"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.4591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.3571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.5660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.6539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368fd8219d671cf4000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7889ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (28.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (52.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368fd7219d671cf4000001", :role=>:admin}}}} (0.6351ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (13.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53368fd7219d671cf4000001"}} (0.5310ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368fd7219d671cf4000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.6ms) 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.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 137.6ms (Views: 118.9ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:18:23 +0100 Served asset /locomotive.css - 200 OK (34ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:18:23 +0100 Served asset /locomotive.js - 200 OK (97ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:18:24 +0100 Served asset /locomotive/search_bar.js - 200 OK (6ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:18:24 +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-03-29 10:18:24 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:18:24 +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-03-29 10:18:24 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:18:24 +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.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368fd7219d671cf4000001"}, "$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_accounts selector={"_id"=>{"$in"=>["53368fd7219d671cf4000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.0433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.4568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53368fd7219d671cf4000002"}, "$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.4091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53368fd8219d671cf4000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7641ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53368fd7219d671cf4000001", :role=>:admin}}}} (0.5009ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368fd7219d671cf4000001"}} (0.4380ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53368fd7219d671cf4000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5729ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 56.5ms (Views: 41.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:18:24 +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.6530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53368fd7219d671cf4000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53368fd7219d671cf4000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4182ms) Completed 200 OK in 594.8ms (Views: 0.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.9360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.9839ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4172ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5340ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0850ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2941ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8600ms) 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.6561ms) 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.5102ms) 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.8888ms) 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.4711ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336909d219d677223000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6bf80eaead469c7a3a94a4e55885d46815235951", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"uMTEjypYFrzyCs52LBz6", "api_key"=>"14d55f4dacbb8fd26405ac4bb426d21eb12c11eb", "updated_at"=>2014-03-29 09:21:33 UTC, "created_at"=>2014-03-29 09:21:33 UTC}] flags=[] (0.1709ms) 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.8559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336909d219d677223000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:21:33 UTC, "updated_at"=>2014-03-29 09:21:33 UTC, "memberships"=>[{"_id"=>"5336909d219d677223000003", "role"=>"admin", "account_id"=>"5336909d219d677223000001"}]}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336909d219d677223000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336909d219d677223000002", "_id"=>{"$ne"=>"5336909e219d677223000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"5336909e219d677223000004", "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"=>"5336909d219d677223000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:34 UTC, "created_at"=>2014-03-29 09:21:34 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336909e219d677223000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["5336909e219d677223000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3262ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336909e219d677223000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336909d219d677223000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336909d219d677223000002", "_id"=>{"$ne"=>"5336909f219d677223000005"}, "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"=>"5336909d219d677223000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336909f219d677223000005", "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"=>"5336909d219d677223000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:35 UTC, "created_at"=>2014-03-29 09:21:35 UTC}] flags=[] (0.2422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["5336909f219d677223000005"]}}, "$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"=>"5336909f219d677223000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336909f219d677223000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336909d219d677223000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7908ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336909f219d677223000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336909d219d677223000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336909f219d677223000007", "updated_at"=>2014-03-29 09:21:35 UTC, "created_at"=>2014-03-29 09:21:35 UTC, "entries_custom_fields"=>[{"_id"=>"5336909f219d677223000007", "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.2348ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336909f219d677223000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336909f219d677223000008", "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", "updated_at"=>2014-03-29 09:21:35 UTC, "created_at"=>2014-03-29 09:21:35 UTC}}} flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336909f219d677223000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336909f219d677223000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336909f219d677223000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4861ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336909f219d677223000006"]}}} (0.4189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336909f219d677223000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336909f219d677223000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336909f219d677223000006", "content_type_id"=>"5336909f219d677223000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336909d219d677223000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:21:35 UTC, "created_at"=>2014-03-29 09:21:35 UTC}] flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336909f219d67722300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336909f219d677223000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5853ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336909f219d677223000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4327ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336909f219d677223000006"]}}} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336909f219d677223000006"]}}} (0.3371ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336909f219d677223000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336909f219d67722300000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336909f219d677223000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336909f219d677223000006", "content_type_id"=>"5336909f219d677223000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336909d219d677223000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:21:35 UTC, "created_at"=>2014-03-29 09:21:35 UTC}] flags=[] (0.2079ms) 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"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002", "_id"=>{"$ne"=>"533690a0219d67722300000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336909e219d677223000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5953ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690a0219d67722300000b", "parent_ids"=>["5336909e219d677223000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:36 UTC, "created_at"=>2014-03-29 09:21:36 UTC}] flags=[] (0.2303ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["533690a0219d67722300000b"]}}, "$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"=>"533690a0219d67722300000b"}, "$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"=>["533690a0219d67722300000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002", "_id"=>{"$ne"=>"533690a1219d67722300000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336909e219d677223000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5531ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690a1219d67722300000c", "parent_ids"=>["5336909e219d677223000004"], "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"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:37 UTC, "created_at"=>2014-03-29 09:21:37 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["533690a1219d67722300000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690a1219d67722300000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4003ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690a1219d67722300000c"]}} 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.6588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002", "_id"=>{"$ne"=>"533690a1219d67722300000d"}, "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"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336909e219d677223000004"}]}]}, "$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"=>"533690a1219d67722300000d", "parent_ids"=>["5336909e219d677223000004"], "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"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:37 UTC, "created_at"=>2014-03-29 09:21:37 UTC}] flags=[] (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["533690a1219d67722300000d"]}}, "$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"=>"533690a1219d67722300000d"}, "$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"=>["533690a1219d67722300000d"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002", "_id"=>{"$ne"=>"533690a1219d67722300000e"}, "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"=>"5336909e219d677223000004", "site_id"=>"5336909d219d677223000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"5336909e219d677223000004"}]}]}, "$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"=>"533690a1219d67722300000e", "parent_ids"=>["5336909e219d677223000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336909d219d677223000002", "parent_id"=>"5336909e219d677223000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:37 UTC, "created_at"=>2014-03-29 09:21:37 UTC}] flags=[] (0.2880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["533690a1219d67722300000e"]}}, "$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"=>"533690a1219d67722300000e"}, "$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"=>["533690a1219d67722300000e"]}} 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"=>{"site_id"=>"5336909d219d677223000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336909d219d677223000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336909e219d677223000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:21:38 UTC}} flags=[] (0.1969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002", "template_dependencies.en"=>{"$in"=>["5336909e219d677223000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) 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.7010ms) 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.4191ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533690a2219d67722300000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:21:33 UTC, "updated_at"=>2014-03-29 09:21:38 UTC, "memberships"=>[{"_id"=>"533690a2219d677223000010", "role"=>"admin", "account_id"=>"5336909d219d677223000001"}]}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690a2219d67722300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533690a2219d67722300000f", "_id"=>{"$ne"=>"533690a2219d677223000011"}, "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"=>"533690a2219d677223000011", "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"=>"533690a2219d67722300000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:38 UTC, "created_at"=>2014-03-29 09:21:38 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690a2219d67722300000f", "template_dependencies.en"=>{"$in"=>["533690a2219d677223000011"]}}, "$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"=>"533690a2219d677223000011"}, "$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"=>["533690a2219d677223000011"]}} 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"=>"533690a2219d67722300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533690a2219d67722300000f", "_id"=>{"$ne"=>"533690a3219d677223000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533690a2219d67722300000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533690a3219d677223000012", "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"=>"533690a2219d67722300000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:39 UTC, "created_at"=>2014-03-29 09:21:39 UTC}] flags=[] (0.2313ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690a2219d67722300000f", "template_dependencies.en"=>{"$in"=>["533690a3219d677223000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690a3219d677223000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690a3219d677223000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690a2219d67722300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"533690a2219d67722300000f", "_id"=>{"$ne"=>"533690a3219d677223000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533690a2219d67722300000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5717ms) 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.2379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690a3219d677223000013", "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"=>"533690a2219d67722300000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:21:39 UTC, "created_at"=>2014-03-29 09:21:39 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690a2219d67722300000f", "template_dependencies.en"=>{"$in"=>["533690a3219d677223000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690a3219d677223000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690a3219d677223000013"]}} 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"=>"533690a2219d67722300000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5260ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533690a4219d677223000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533690a2219d67722300000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533690a4219d677223000015", "updated_at"=>2014-03-29 09:21:40 UTC, "created_at"=>2014-03-29 09:21:40 UTC, "entries_custom_fields"=>[{"_id"=>"533690a4219d677223000015", "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.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533690a4219d677223000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533690a4219d677223000014"]}} 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=locomotive_content_entries selector={"content_type_id"=>"533690a4219d677223000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533690a4219d677223000014"]}}} (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533690a4219d677223000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533690a4219d677223000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533690a4219d677223000014", "content_type_id"=>"533690a4219d677223000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533690a2219d67722300000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:21:40 UTC, "created_at"=>2014-03-29 09:21:40 UTC}] flags=[] (0.2189ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:21: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 COMMAND database=admin command={:ismaster=>1} (0.7989ms) 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.5720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336909d219d677223000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5410ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.3ms) Completed 200 OK in 36.5ms (Views: 29.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:21:42 +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-03-29 10:21:42 +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-03-29 10:21:42 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:21: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.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336909d219d677223000001"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5522ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336909d219d677223000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:21:42 UTC, "updated_at"=>2014-03-29 09:21:42 UTC}} flags=[] (0.1550ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336909d219d677223000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:21:42 UTC, "current_sign_in_at"=>2014-03-29 09:21: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-03-29 09:21:42 UTC}} flags=[] (0.2019ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:21: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 (0.7031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336909d219d677223000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336909d219d677223000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.1890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.4317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.6306ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336909f219d677223000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6912ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336909d219d677223000001", :role=>:admin}}}} (0.6859ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (13.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5336909d219d677223000001"}} (0.5672ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336909d219d677223000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5572ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (3.7ms) Rendered locomotive/shared/_main_app_header.html.haml (5.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 132.6ms (Views: 115.7ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:21:42 +0100 Served asset /locomotive.js - 200 OK (100ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:21:42 +0100 Served asset /locomotive.css - 200 OK (32ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:21:42 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:21:42 +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-03-29 10:21:42 +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-03-29 10:21:43 +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-03-29 10:21:43 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:21:43 +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.6349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336909d219d677223000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336909d219d677223000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.2252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.0140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.4959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336909d219d677223000002"}, "$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.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336909f219d677223000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6783ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (20.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336909d219d677223000001", :role=>:admin}}}} (0.5820ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336909d219d677223000001"}} (0.4878ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336909d219d677223000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5310ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 54.6ms (Views: 39.8ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:21:43 +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.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336909d219d677223000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336909d219d677223000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4740ms) Completed 200 OK in 609.6ms (Views: 0.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.8110ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.9441ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4789ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6782ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3041ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1649ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8068ms) 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.6089ms) 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.8111ms) 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.8039ms) 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.4771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533690ea219d6784cc000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"208e3c7fd9e114decc9960b6490170f6796a71f9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"sYhxzDtorSkM9ESnZPKG", "api_key"=>"74f4dae2bdf31f358d9333df06e6120a309e3e6f", "updated_at"=>2014-03-29 09:22:50 UTC, "created_at"=>2014-03-29 09:22:50 UTC}] flags=[] (0.1462ms) 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.8101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533690ea219d6784cc000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:22:50 UTC, "updated_at"=>2014-03-29 09:22:50 UTC, "memberships"=>[{"_id"=>"533690ea219d6784cc000003", "role"=>"admin", "account_id"=>"533690ea219d6784cc000001"}]}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ea219d6784cc000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533690ea219d6784cc000002", "_id"=>{"$ne"=>"533690eb219d6784cc000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690eb219d6784cc000004", "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"=>"533690ea219d6784cc000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:51 UTC, "created_at"=>2014-03-29 09:22:51 UTC}] flags=[] (0.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690eb219d6784cc000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690eb219d6784cc000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690eb219d6784cc000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ea219d6784cc000002", "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"=>"533690ea219d6784cc000002", "_id"=>{"$ne"=>"533690eb219d6784cc000005"}, "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"=>"533690ea219d6784cc000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533690eb219d6784cc000005", "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"=>"533690ea219d6784cc000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:51 UTC, "created_at"=>2014-03-29 09:22:51 UTC}] flags=[] (0.2618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690eb219d6784cc000005"]}}, "$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"=>"533690eb219d6784cc000005"}, "$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"=>["533690eb219d6784cc000005"]}} 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_content_types selector={"site_id"=>"533690ea219d6784cc000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533690eb219d6784cc000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533690ea219d6784cc000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533690ec219d6784cc000007", "updated_at"=>2014-03-29 09:22:52 UTC, "created_at"=>2014-03-29 09:22:52 UTC, "entries_custom_fields"=>[{"_id"=>"533690ec219d6784cc000007", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533690eb219d6784cc000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533690ec219d6784cc000008", "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", "updated_at"=>2014-03-29 09:22:52 UTC, "created_at"=>2014-03-29 09:22:52 UTC}}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533690ec219d6784cc000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533690eb219d6784cc000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533690eb219d6784cc000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533690eb219d6784cc000006"]}}} (0.4172ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533690ec219d6784cc000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533690eb219d6784cc000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533690eb219d6784cc000006", "content_type_id"=>"533690eb219d6784cc000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533690ea219d6784cc000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:22:52 UTC, "created_at"=>2014-03-29 09:22:52 UTC}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533690ec219d6784cc00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533690eb219d6784cc000006"]}} 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"=>"533690eb219d6784cc000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4570ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533690eb219d6784cc000006"]}}} (0.4621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533690eb219d6784cc000006"]}}} (0.3371ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533690eb219d6784cc000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5248ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533690ec219d6784cc00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533690eb219d6784cc000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533690eb219d6784cc000006", "content_type_id"=>"533690eb219d6784cc000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533690ea219d6784cc000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:22:52 UTC, "created_at"=>2014-03-29 09:22:52 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.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002", "_id"=>{"$ne"=>"533690ed219d6784cc00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533690eb219d6784cc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690ed219d6784cc00000b", "parent_ids"=>["533690eb219d6784cc000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:53 UTC, "created_at"=>2014-03-29 09:22:53 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690ed219d6784cc00000b"]}}, "$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"=>"533690ed219d6784cc00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4227ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690ed219d6784cc00000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1826ms) 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.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002", "_id"=>{"$ne"=>"533690ee219d6784cc00000c"}, "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"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"533690eb219d6784cc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533690ee219d6784cc00000c", "parent_ids"=>["533690eb219d6784cc000004"], "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"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:54 UTC, "created_at"=>2014-03-29 09:22:54 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690ee219d6784cc00000c"]}}, "$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"=>"533690ee219d6784cc00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690ee219d6784cc00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1132ms) 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.6821ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002", "_id"=>{"$ne"=>"533690ee219d6784cc00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"533690eb219d6784cc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8128ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690ee219d6784cc00000d", "parent_ids"=>["533690eb219d6784cc000004"], "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"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:54 UTC, "created_at"=>2014-03-29 09:22:54 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690ee219d6784cc00000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690ee219d6784cc00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690ee219d6784cc00000d"]}} 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={"$query"=>{"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_pages selector={"site_id"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002", "_id"=>{"$ne"=>"533690ee219d6784cc00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9811ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533690eb219d6784cc000004", "site_id"=>"533690ea219d6784cc000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533690eb219d6784cc000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533690ee219d6784cc00000e", "parent_ids"=>["533690eb219d6784cc000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533690ea219d6784cc000002", "parent_id"=>"533690eb219d6784cc000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:54 UTC, "created_at"=>2014-03-29 09:22:54 UTC}] flags=[] (0.2842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690ee219d6784cc00000e"]}}, "$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"=>"533690ee219d6784cc00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690ee219d6784cc00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533690ea219d6784cc000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4253ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533690eb219d6784cc000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:22:55 UTC}} flags=[] (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002", "template_dependencies.en"=>{"$in"=>["533690eb219d6784cc000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6049ms) 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.7150ms) 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.6340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533690ef219d6784cc00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:22:50 UTC, "updated_at"=>2014-03-29 09:22:55 UTC, "memberships"=>[{"_id"=>"533690ef219d6784cc000010", "role"=>"admin", "account_id"=>"533690ea219d6784cc000001"}]}] flags=[] (0.4539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ef219d6784cc00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533690ef219d6784cc00000f", "_id"=>{"$ne"=>"533690ef219d6784cc000011"}, "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"=>"533690ef219d6784cc000011", "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"=>"533690ef219d6784cc00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:55 UTC, "created_at"=>2014-03-29 09:22:55 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ef219d6784cc00000f", "template_dependencies.en"=>{"$in"=>["533690ef219d6784cc000011"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"533690ef219d6784cc000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690ef219d6784cc000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533690ef219d6784cc00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533690ef219d6784cc00000f", "_id"=>{"$ne"=>"533690f0219d6784cc000012"}, "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"=>"533690ef219d6784cc00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533690f0219d6784cc000012", "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"=>"533690ef219d6784cc00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:56 UTC, "created_at"=>2014-03-29 09:22:56 UTC}] flags=[] (0.2272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ef219d6784cc00000f", "template_dependencies.en"=>{"$in"=>["533690f0219d6784cc000012"]}}, "$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"=>"533690f0219d6784cc000012"}, "$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"=>["533690f0219d6784cc000012"]}} 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"=>"533690ef219d6784cc00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533690ef219d6784cc00000f", "_id"=>{"$ne"=>"533690f0219d6784cc000013"}, "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"=>nil, "site_id"=>"533690ef219d6784cc00000f"}, "$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.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533690f0219d6784cc000013", "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"=>"533690ef219d6784cc00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:22:56 UTC, "created_at"=>2014-03-29 09:22:56 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ef219d6784cc00000f", "template_dependencies.en"=>{"$in"=>["533690f0219d6784cc000013"]}}, "$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"=>"533690f0219d6784cc000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533690f0219d6784cc000013"]}} 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"=>"533690ef219d6784cc00000f", "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"=>"533690f1219d6784cc000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533690ef219d6784cc00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533690f1219d6784cc000015", "updated_at"=>2014-03-29 09:22:57 UTC, "created_at"=>2014-03-29 09:22:57 UTC, "entries_custom_fields"=>[{"_id"=>"533690f1219d6784cc000015", "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.2582ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533690f1219d6784cc000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533690f1219d6784cc000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533690f1219d6784cc000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533690f1219d6784cc000014"]}}} (0.5698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533690f1219d6784cc000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533690f1219d6784cc000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533690f1219d6784cc000014", "content_type_id"=>"533690f1219d6784cc000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533690ef219d6784cc00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:22:57 UTC, "created_at"=>2014-03-29 09:22:57 UTC}] flags=[] (0.2241ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:22:59 +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.8483ms) 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.6771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533690ea219d6784cc000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5250ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.0ms) Completed 200 OK in 37.0ms (Views: 30.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:22:59 +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-03-29 10:22:59 +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-03-29 10:22:59 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:22:59 +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.6309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533690ea219d6784cc000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533690ea219d6784cc000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:22:59 UTC, "updated_at"=>2014-03-29 09:22:59 UTC}} flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533690ea219d6784cc000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:22:59 UTC, "current_sign_in_at"=>2014-03-29 09:22:59 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:22:59 UTC}} flags=[] (0.1538ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:22:59 +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.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533690ea219d6784cc000001"}, "$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={"_id"=>{"$in"=>["533690ea219d6784cc000001"]}} 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"=>"533690ea219d6784cc000002"}, "$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.1110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002"}, "$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 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002"}, "$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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002"}, "$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.6433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533690eb219d6784cc000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6747ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533690ea219d6784cc000001", :role=>:admin}}}} (0.6039ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533690ea219d6784cc000001"}} (0.5357ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533690ea219d6784cc000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6063ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.2ms) Rendered locomotive/shared/_main_app_header.html.haml (6.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.6ms) Completed 200 OK in 134.2ms (Views: 116.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:22:59 +0100 Served asset /locomotive.js - 200 OK (153ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:23:00 +0100 Served asset /locomotive.css - 200 OK (54ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:23:00 +0100 Served asset /locomotive/search_bar.js - 200 OK (10ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:23:00 +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-03-29 10:23:00 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:23:00 +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-03-29 10:23:00 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:23:00 +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.6249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533690ea219d6784cc000001"}, "$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_accounts selector={"_id"=>{"$in"=>["533690ea219d6784cc000001"]}} flags=[:slave_ok] limit=0 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"=>"533690ea219d6784cc000002"}, "$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.3270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002"}, "$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.8828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002"}, "$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.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533690ea219d6784cc000002"}, "$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.4559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533690eb219d6784cc000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7110ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533690ea219d6784cc000001", :role=>:admin}}}} (0.6430ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533690ea219d6784cc000001"}} (0.4311ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533690ea219d6784cc000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5419ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (1.0ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 64.9ms (Views: 46.2ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:23:00 +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.6690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533690ea219d6784cc000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533690ea219d6784cc000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) Completed 200 OK in 584.5ms (Views: 0.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.7202ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7691ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9159ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7312ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5948ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8559ms) 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.6449ms) 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.5031ms) 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.9410ms) 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.5698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369116219d676e73000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"29d4ad6623309fd2d4e6fc9e37825721e8b8f7da", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"jveQ4pzLDf55vtrTxyqQ", "api_key"=>"b34151be87203ee577475d04499aef89bea64779", "updated_at"=>2014-03-29 09:23:34 UTC, "created_at"=>2014-03-29 09:23:34 UTC}] flags=[] (0.1953ms) 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.8838ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369116219d676e73000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:23:34 UTC, "updated_at"=>2014-03-29 09:23:34 UTC, "memberships"=>[{"_id"=>"53369116219d676e73000003", "role"=>"admin", "account_id"=>"53369116219d676e73000001"}]}] flags=[] (0.2091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369116219d676e73000002", "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"=>"53369116219d676e73000002", "_id"=>{"$ne"=>"53369117219d676e73000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5298ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369117219d676e73000004", "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"=>"53369116219d676e73000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:35 UTC, "created_at"=>2014-03-29 09:23:35 UTC}] flags=[] (0.3119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004"}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["53369117219d676e73000004"]}}, "$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"=>["53369117219d676e73000004"]}} 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_pages selector={"site_id"=>"53369116219d676e73000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369116219d676e73000002", "_id"=>{"$ne"=>"53369117219d676e73000005"}, "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"=>"53369116219d676e73000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369117219d676e73000005", "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"=>"53369116219d676e73000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:35 UTC, "created_at"=>2014-03-29 09:23:35 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["53369117219d676e73000005"]}}, "$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"=>"53369117219d676e73000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3707ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369117219d676e73000005"]}} 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_content_types selector={"site_id"=>"53369116219d676e73000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"53369117219d676e73000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369116219d676e73000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369117219d676e73000007", "updated_at"=>2014-03-29 09:23:35 UTC, "created_at"=>2014-03-29 09:23:35 UTC, "entries_custom_fields"=>[{"_id"=>"53369117219d676e73000007", "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.2310ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369117219d676e73000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369117219d676e73000008", "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", "updated_at"=>2014-03-29 09:23:35 UTC, "created_at"=>2014-03-29 09:23:35 UTC}}} flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369117219d676e73000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369117219d676e73000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369117219d676e73000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369117219d676e73000006"]}}} (0.4008ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369117219d676e73000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369117219d676e73000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369117219d676e73000006", "content_type_id"=>"53369117219d676e73000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369116219d676e73000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:23:35 UTC, "created_at"=>2014-03-29 09:23:35 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369118219d676e7300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369117219d676e73000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369117219d676e73000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369117219d676e73000006"]}}} (0.4818ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369117219d676e73000006"]}}} (0.3891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369117219d676e73000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369118219d676e7300000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369117219d676e73000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369117219d676e73000006", "content_type_id"=>"53369117219d676e73000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369116219d676e73000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:23:36 UTC, "created_at"=>2014-03-29 09:23:36 UTC}] flags=[] (0.2360ms) 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"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002", "_id"=>{"$ne"=>"53369119219d676e7300000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53369117219d676e73000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8051ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369119219d676e7300000b", "parent_ids"=>["53369117219d676e73000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:37 UTC, "created_at"=>2014-03-29 09:23:37 UTC}] flags=[] (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["53369119219d676e7300000b"]}}, "$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"=>"53369119219d676e7300000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369119219d676e7300000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002", "_id"=>{"$ne"=>"5336911a219d676e7300000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002"}, "$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"=>"53369117219d676e73000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"5336911a219d676e7300000c", "parent_ids"=>["53369117219d676e73000004"], "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"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:38 UTC, "created_at"=>2014-03-29 09:23:38 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["5336911a219d676e7300000c"]}}, "$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"=>"5336911a219d676e7300000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336911a219d676e7300000c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002", "_id"=>{"$ne"=>"5336911a219d676e7300000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002"}, "$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"=>"53369117219d676e73000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"5336911a219d676e7300000d", "parent_ids"=>["53369117219d676e73000004"], "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"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:38 UTC, "created_at"=>2014-03-29 09:23:38 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["5336911a219d676e7300000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336911a219d676e7300000d"}, "$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"=>["5336911a219d676e7300000d"]}} 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.5908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002", "_id"=>{"$ne"=>"5336911a219d676e7300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369117219d676e73000004", "site_id"=>"53369116219d676e73000002"}, "$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"=>"53369117219d676e73000004"}]}]}, "$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"=>"5336911a219d676e7300000e", "parent_ids"=>["53369117219d676e73000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369116219d676e73000002", "parent_id"=>"53369117219d676e73000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:38 UTC, "created_at"=>2014-03-29 09:23:38 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["5336911a219d676e7300000e"]}}, "$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"=>"5336911a219d676e7300000e"}, "$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"=>["5336911a219d676e7300000e"]}} 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_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369116219d676e73000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5438ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369117219d676e73000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:23:38 UTC}} flags=[] (0.1881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002", "template_dependencies.en"=>{"$in"=>["53369117219d676e73000004"]}}, "$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_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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336911b219d676e7300000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:23:34 UTC, "updated_at"=>2014-03-29 09:23:39 UTC, "memberships"=>[{"_id"=>"5336911b219d676e73000010", "role"=>"admin", "account_id"=>"53369116219d676e73000001"}]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336911b219d676e7300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336911b219d676e7300000f", "_id"=>{"$ne"=>"5336911b219d676e73000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"5336911b219d676e73000011", "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"=>"5336911b219d676e7300000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:39 UTC, "created_at"=>2014-03-29 09:23:39 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336911b219d676e7300000f", "template_dependencies.en"=>{"$in"=>["5336911b219d676e73000011"]}}, "$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"=>"5336911b219d676e73000011"}, "$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"=>["5336911b219d676e73000011"]}} 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={"site_id"=>"5336911b219d676e7300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336911b219d676e7300000f", "_id"=>{"$ne"=>"5336911c219d676e73000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8008ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336911b219d676e7300000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6778ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336911c219d676e73000012", "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"=>"5336911b219d676e7300000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:40 UTC, "created_at"=>2014-03-29 09:23:40 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336911b219d676e7300000f", "template_dependencies.en"=>{"$in"=>["5336911c219d676e73000012"]}}, "$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"=>"5336911c219d676e73000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336911c219d676e73000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336911b219d676e7300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336911b219d676e7300000f", "_id"=>{"$ne"=>"5336911c219d676e73000013"}, "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"=>{"parent_id"=>nil, "site_id"=>"5336911b219d676e7300000f"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336911c219d676e73000013", "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"=>"5336911b219d676e7300000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:23:40 UTC, "created_at"=>2014-03-29 09:23:40 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336911b219d676e7300000f", "template_dependencies.en"=>{"$in"=>["5336911c219d676e73000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336911c219d676e73000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336911c219d676e73000013"]}} 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"=>"5336911b219d676e7300000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4847ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336911d219d676e73000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336911b219d676e7300000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336911d219d676e73000015", "updated_at"=>2014-03-29 09:23:41 UTC, "created_at"=>2014-03-29 09:23:41 UTC, "entries_custom_fields"=>[{"_id"=>"5336911d219d676e73000015", "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.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336911d219d676e73000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336911d219d676e73000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336911d219d676e73000014", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336911d219d676e73000014"]}}} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336911d219d676e73000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336911d219d676e73000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336911d219d676e73000014", "content_type_id"=>"5336911d219d676e73000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336911b219d676e7300000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:23:41 UTC, "created_at"=>2014-03-29 09:23:41 UTC}] flags=[] (0.3648ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:23:43 +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.8912ms) 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"=>["53369116219d676e73000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4849ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.2ms) Completed 200 OK in 35.9ms (Views: 29.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:23:43 +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-03-29 10:23:43 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:23:43 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:23:43 +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.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369116219d676e73000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6101ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369116219d676e73000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:23:43 UTC, "updated_at"=>2014-03-29 09:23:43 UTC}} flags=[] (0.1502ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369116219d676e73000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:23:43 UTC, "current_sign_in_at"=>2014-03-29 09:23:43 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:23:43 UTC}} flags=[] (0.1562ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:23:43 +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.6437ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369116219d676e73000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4227ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369116219d676e73000001"]}} 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"=>"53369116219d676e73000002"}, "$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.5647ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.0488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.4201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369117219d676e73000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7691ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (22.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (44.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369116219d676e73000001", :role=>:admin}}}} (0.7989ms) Rendered locomotive/shared/_main_app_head.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369116219d676e73000001"}} (0.6263ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369116219d676e73000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.9ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (30.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 127.4ms (Views: 110.4ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:23:43 +0100 Served asset /locomotive.js - 200 OK (100ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:23:43 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:23:43 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:23:43 +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-03-29 10:23:43 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:23:43 +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-03-29 10:23:43 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:23:44 +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.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369116219d676e73000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["53369116219d676e73000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.7462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.5030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369116219d676e73000002"}, "$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.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369117219d676e73000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8759ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (18.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (9.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (15.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (40.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369116219d676e73000001", :role=>:admin}}}} (0.5322ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369116219d676e73000001"}} (0.4320ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369116219d676e73000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5398ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 82.6ms (Views: 60.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:23:44 +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.7420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369116219d676e73000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369116219d676e73000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) Completed 200 OK in 607.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 (1.1590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.8790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7490ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4782ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1148ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9978ms) 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.6349ms) 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.4709ms) 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.8492ms) 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.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369151219d673b87000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a0ffdb429c10c23066d813038821431885a5c09c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"FZ1TjCjxxczYwgbfTiz7", "api_key"=>"ef54796dadec809d8c956e1d1e2878fa14928912", "updated_at"=>2014-03-29 09:24:33 UTC, "created_at"=>2014-03-29 09:24:33 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} (1.2300ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369151219d673b87000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:24:32 UTC, "updated_at"=>2014-03-29 09:24:33 UTC, "memberships"=>[{"_id"=>"53369151219d673b87000003", "role"=>"admin", "account_id"=>"53369151219d673b87000001"}]}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369151219d673b87000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369151219d673b87000002", "_id"=>{"$ne"=>"53369151219d673b87000004"}, "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"=>"53369151219d673b87000004", "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"=>"53369151219d673b87000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:33 UTC, "created_at"=>2014-03-29 09:24:33 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369151219d673b87000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369151219d673b87000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4263ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369151219d673b87000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369151219d673b87000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369151219d673b87000002", "_id"=>{"$ne"=>"53369152219d673b87000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369151219d673b87000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369152219d673b87000005", "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"=>"53369151219d673b87000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:34 UTC, "created_at"=>2014-03-29 09:24:34 UTC}] flags=[] (0.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369152219d673b87000005"]}}, "$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"=>"53369152219d673b87000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369152219d673b87000005"]}} 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_content_types selector={"site_id"=>"53369151219d673b87000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369152219d673b87000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369151219d673b87000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369152219d673b87000007", "updated_at"=>2014-03-29 09:24:34 UTC, "created_at"=>2014-03-29 09:24:34 UTC, "entries_custom_fields"=>[{"_id"=>"53369152219d673b87000007", "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.2482ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369152219d673b87000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369152219d673b87000008", "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", "updated_at"=>2014-03-29 09:24:34 UTC, "created_at"=>2014-03-29 09:24:34 UTC}}} flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369152219d673b87000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369152219d673b87000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369152219d673b87000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369152219d673b87000006"]}}} (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369152219d673b87000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369152219d673b87000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369152219d673b87000006", "content_type_id"=>"53369152219d673b87000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369151219d673b87000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:24:34 UTC, "created_at"=>2014-03-29 09:24:34 UTC}] flags=[] (0.2863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369152219d673b8700000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369152219d673b87000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369152219d673b87000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369152219d673b87000006"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369152219d673b87000006"]}}} (0.4210ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369152219d673b87000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5381ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369152219d673b8700000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369152219d673b87000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369152219d673b87000006", "content_type_id"=>"53369152219d673b87000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369151219d673b87000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:24:34 UTC, "created_at"=>2014-03-29 09:24:34 UTC}] flags=[] (0.2759ms) 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.9632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "$or"=>[{"slug.en"=>"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"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002", "_id"=>{"$ne"=>"53369153219d673b8700000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369151219d673b87000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369153219d673b8700000b", "parent_ids"=>["53369151219d673b87000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:35 UTC, "created_at"=>2014-03-29 09:24:35 UTC}] flags=[] (0.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369153219d673b8700000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369153219d673b8700000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5431ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369153219d673b8700000b"]}} 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.6752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5307ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002", "_id"=>{"$ne"=>"53369154219d673b8700000c"}, "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"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002"}, "$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"=>"53369151219d673b87000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369154219d673b8700000c", "parent_ids"=>["53369151219d673b87000004"], "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"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:36 UTC, "created_at"=>2014-03-29 09:24:36 UTC}] flags=[] (0.2189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369154219d673b8700000c"]}}, "$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"=>"53369154219d673b8700000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5090ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369154219d673b8700000c"]}} 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"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "$or"=>[{"slug.en"=>"seems-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"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002", "_id"=>{"$ne"=>"53369154219d673b8700000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7377ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369151219d673b87000004"}]}]}, "$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"=>"53369154219d673b8700000d", "parent_ids"=>["53369151219d673b87000004"], "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"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:36 UTC, "created_at"=>2014-03-29 09:24:36 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369154219d673b8700000d"]}}, "$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"=>"53369154219d673b8700000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369154219d673b8700000d"]}} 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.6638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002", "_id"=>{"$ne"=>"53369154219d673b8700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369151219d673b87000004", "site_id"=>"53369151219d673b87000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369151219d673b87000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369154219d673b8700000e", "parent_ids"=>["53369151219d673b87000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369151219d673b87000002", "parent_id"=>"53369151219d673b87000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:36 UTC, "created_at"=>2014-03-29 09:24:36 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369154219d673b8700000e"]}}, "$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"=>"53369154219d673b8700000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369154219d673b8700000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369151219d673b87000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4313ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369151219d673b87000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:24:37 UTC}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002", "template_dependencies.en"=>{"$in"=>["53369151219d673b87000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) 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.7138ms) 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.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369155219d673b8700000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:24:32 UTC, "updated_at"=>2014-03-29 09:24:37 UTC, "memberships"=>[{"_id"=>"53369155219d673b87000010", "role"=>"admin", "account_id"=>"53369151219d673b87000001"}]}] flags=[] (0.2792ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369155219d673b8700000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369155219d673b8700000f", "_id"=>{"$ne"=>"53369155219d673b87000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369155219d673b87000011", "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"=>"53369155219d673b8700000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:37 UTC, "created_at"=>2014-03-29 09:24:37 UTC}] flags=[] (0.2472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369155219d673b8700000f", "template_dependencies.en"=>{"$in"=>["53369155219d673b87000011"]}}, "$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"=>"53369155219d673b87000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369155219d673b87000011"]}} 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={"site_id"=>"53369155219d673b8700000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369155219d673b8700000f", "_id"=>{"$ne"=>"53369156219d673b87000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369155219d673b8700000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5748ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369156219d673b87000012", "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"=>"53369155219d673b8700000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:38 UTC, "created_at"=>2014-03-29 09:24:38 UTC}] flags=[] (0.2711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369155219d673b8700000f", "template_dependencies.en"=>{"$in"=>["53369156219d673b87000012"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369156219d673b87000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369156219d673b87000012"]}} 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={"site_id"=>"53369155219d673b8700000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369155219d673b8700000f", "_id"=>{"$ne"=>"53369156219d673b87000013"}, "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"=>"53369155219d673b8700000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369156219d673b87000013", "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"=>"53369155219d673b8700000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:24:38 UTC, "created_at"=>2014-03-29 09:24:38 UTC}] flags=[] (0.2093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369155219d673b8700000f", "template_dependencies.en"=>{"$in"=>["53369156219d673b87000013"]}}, "$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"=>"53369156219d673b87000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369156219d673b87000013"]}} 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"=>"53369155219d673b8700000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369157219d673b87000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369155219d673b8700000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369157219d673b87000015", "updated_at"=>2014-03-29 09:24:39 UTC, "created_at"=>2014-03-29 09:24:39 UTC, "entries_custom_fields"=>[{"_id"=>"53369157219d673b87000015", "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"=>"53369157219d673b87000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369157219d673b87000014"]}} 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"=>"53369157219d673b87000014", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369157219d673b87000014"]}}} (0.5379ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369157219d673b87000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369157219d673b87000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369157219d673b87000014", "content_type_id"=>"53369157219d673b87000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369155219d673b8700000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:24:39 UTC, "created_at"=>2014-03-29 09:24:39 UTC}] flags=[] (0.2060ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:24:41 +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.4369ms) 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.7453ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369151219d673b87000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (21.2ms) Completed 200 OK in 51.1ms (Views: 41.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:24:41 +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-03-29 10:24:41 +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-03-29 10:24:41 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:24:41 +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.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369151219d673b87000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369151219d673b87000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:24:41 UTC, "updated_at"=>2014-03-29 09:24:41 UTC}} flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369151219d673b87000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:24:41 UTC, "current_sign_in_at"=>2014-03-29 09:24:41 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:24:41 UTC}} flags=[] (0.2089ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:24:41 +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.7408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369151219d673b87000001"}, "$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"=>["53369151219d673b87000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.6451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.0490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.5498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369152219d673b87000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.0433ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (29.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (12.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (60.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369151219d673b87000001", :role=>:admin}}}} (0.6828ms) Rendered locomotive/shared/_main_app_head.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (15.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369151219d673b87000001"}} (0.5100ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (3.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53369151219d673b87000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6421ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (2.0ms) Completed 200 OK in 161.1ms (Views: 137.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:24:41 +0100 Served asset /locomotive.js - 200 OK (119ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:24:42 +0100 Served asset /locomotive.css - 200 OK (46ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:24:42 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:24:42 +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-03-29 10:24:42 +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-03-29 10:24:42 +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-03-29 10:24:42 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:24: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 (0.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369151219d673b87000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369151219d673b87000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.0400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.5092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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.5009ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369151219d673b87000002"}, "$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"=>"53369152219d673b87000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7570ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369151219d673b87000001", :role=>:admin}}}} (0.6120ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369151219d673b87000001"}} (0.5150ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369151219d673b87000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (10.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.4ms) Completed 200 OK in 60.2ms (Views: 44.3ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:24:42 +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.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369151219d673b87000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369151219d673b87000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4370ms) Completed 500 Internal Server Error in 585.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 (1.0018ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.1842ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.4899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.1292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2910ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0989ms) 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.7610ms) 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.5410ms) 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.9711ms) 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.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533691ed219d67aa79000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"41299baeb82bcf71ceafe167de58d518c8c7d856", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ufbB6xHKkncyzEFpeW7Z", "api_key"=>"88fd17dc1090fe0dc4fd326cab66256a8671d9ee", "updated_at"=>2014-03-29 09:27:09 UTC, "created_at"=>2014-03-29 09:27:09 UTC}] flags=[] (0.1631ms) 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.7830ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533691ed219d67aa79000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:27:08 UTC, "updated_at"=>2014-03-29 09:27:09 UTC, "memberships"=>[{"_id"=>"533691ed219d67aa79000003", "role"=>"admin", "account_id"=>"533691ed219d67aa79000001"}]}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533691ed219d67aa79000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533691ed219d67aa79000002", "_id"=>{"$ne"=>"533691ed219d67aa79000004"}, "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"=>"533691ed219d67aa79000004", "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"=>"533691ed219d67aa79000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:09 UTC, "created_at"=>2014-03-29 09:27:09 UTC}] flags=[] (0.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691ed219d67aa79000004"}, "$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"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691ed219d67aa79000004"]}}, "$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"=>["533691ed219d67aa79000004"]}} 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={"site_id"=>"533691ed219d67aa79000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5422ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533691ed219d67aa79000002", "_id"=>{"$ne"=>"533691ee219d67aa79000005"}, "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"=>{"parent_id"=>nil, "site_id"=>"533691ed219d67aa79000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533691ee219d67aa79000005", "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"=>"533691ed219d67aa79000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:10 UTC, "created_at"=>2014-03-29 09:27:10 UTC}] flags=[] (0.3898ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691ee219d67aa79000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533691ee219d67aa79000005"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["533691ee219d67aa79000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533691ed219d67aa79000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533691ee219d67aa79000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533691ed219d67aa79000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533691ee219d67aa79000007", "updated_at"=>2014-03-29 09:27:10 UTC, "created_at"=>2014-03-29 09:27:10 UTC, "entries_custom_fields"=>[{"_id"=>"533691ee219d67aa79000007", "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.3240ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533691ee219d67aa79000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533691ee219d67aa79000008", "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", "updated_at"=>2014-03-29 09:27:10 UTC, "created_at"=>2014-03-29 09:27:10 UTC}}} flags=[] (0.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533691ee219d67aa79000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533691ee219d67aa79000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533691ee219d67aa79000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533691ee219d67aa79000006"]}}} (0.4730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533691ee219d67aa79000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533691ee219d67aa79000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533691ee219d67aa79000006", "content_type_id"=>"533691ee219d67aa79000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533691ed219d67aa79000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:27:10 UTC, "created_at"=>2014-03-29 09:27:10 UTC}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533691ef219d67aa7900000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533691ee219d67aa79000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533691ee219d67aa79000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3939ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533691ee219d67aa79000006"]}}} (0.3781ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533691ee219d67aa79000006"]}}} (0.2949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533691ee219d67aa79000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533691ef219d67aa7900000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533691ee219d67aa79000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533691ee219d67aa79000006", "content_type_id"=>"533691ee219d67aa79000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533691ed219d67aa79000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:27:11 UTC, "created_at"=>2014-03-29 09:27:11 UTC}] flags=[] (0.1831ms) 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.6919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "$or"=>[{"slug.en"=>"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"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002", "_id"=>{"$ne"=>"533691ef219d67aa7900000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533691ed219d67aa79000004"}]}]}, "$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"=>"533691ef219d67aa7900000b", "parent_ids"=>["533691ed219d67aa79000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:11 UTC, "created_at"=>2014-03-29 09:27:11 UTC}] flags=[] (0.2058ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691ef219d67aa7900000b"]}}, "$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"=>"533691ef219d67aa7900000b"}, "$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"=>["533691ef219d67aa7900000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1831ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002", "_id"=>{"$ne"=>"533691f0219d67aa7900000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7386ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533691ed219d67aa79000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6890ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533691f0219d67aa7900000c", "parent_ids"=>["533691ed219d67aa79000004"], "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"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:12 UTC, "created_at"=>2014-03-29 09:27:12 UTC}] flags=[] (0.5372ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691f0219d67aa7900000c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533691f0219d67aa7900000c"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["533691f0219d67aa7900000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1972ms) 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.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002", "_id"=>{"$ne"=>"533691f0219d67aa7900000d"}, "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"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533691ed219d67aa79000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"533691f0219d67aa7900000d", "parent_ids"=>["533691ed219d67aa79000004"], "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"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:12 UTC, "created_at"=>2014-03-29 09:27:12 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691f0219d67aa7900000d"]}}, "$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"=>"533691f0219d67aa7900000d"}, "$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"=>["533691f0219d67aa7900000d"]}} 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.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002", "_id"=>{"$ne"=>"533691f0219d67aa7900000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691ed219d67aa79000004", "site_id"=>"533691ed219d67aa79000002"}, "$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"=>"533691ed219d67aa79000004"}]}]}, "$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"=>"533691f0219d67aa7900000e", "parent_ids"=>["533691ed219d67aa79000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533691ed219d67aa79000002", "parent_id"=>"533691ed219d67aa79000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:12 UTC, "created_at"=>2014-03-29 09:27:12 UTC}] flags=[] (0.3350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691f0219d67aa7900000e"]}}, "$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"=>"533691f0219d67aa7900000e"}, "$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"=>["533691f0219d67aa7900000e"]}} 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"=>"533691ed219d67aa79000002", "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_sites selector={"$query"=>{"_id"=>"533691ed219d67aa79000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5488ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533691ed219d67aa79000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:27:13 UTC}} flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002", "template_dependencies.en"=>{"$in"=>["533691ed219d67aa79000004"]}}, "$orderby"=>{"position"=>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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6821ms) 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.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533691f2219d67aa7900000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:27:08 UTC, "updated_at"=>2014-03-29 09:27:14 UTC, "memberships"=>[{"_id"=>"533691f2219d67aa79000010", "role"=>"admin", "account_id"=>"533691ed219d67aa79000001"}]}] flags=[] (0.2828ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533691f2219d67aa7900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533691f2219d67aa7900000f", "_id"=>{"$ne"=>"533691f2219d67aa79000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533691f2219d67aa79000011", "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"=>"533691f2219d67aa7900000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:14 UTC, "created_at"=>2014-03-29 09:27:14 UTC}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691f2219d67aa7900000f", "template_dependencies.en"=>{"$in"=>["533691f2219d67aa79000011"]}}, "$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"=>"533691f2219d67aa79000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4158ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533691f2219d67aa79000011"]}} 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"=>"533691f2219d67aa7900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533691f2219d67aa7900000f", "_id"=>{"$ne"=>"533691f2219d67aa79000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533691f2219d67aa7900000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533691f2219d67aa79000012", "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"=>"533691f2219d67aa7900000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:14 UTC, "created_at"=>2014-03-29 09:27:14 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691f2219d67aa7900000f", "template_dependencies.en"=>{"$in"=>["533691f2219d67aa79000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3142ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533691f2219d67aa79000012"}, "$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"=>["533691f2219d67aa79000012"]}} 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={"site_id"=>"533691f2219d67aa7900000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"533691f2219d67aa7900000f", "_id"=>{"$ne"=>"533691f2219d67aa79000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533691f2219d67aa7900000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4542ms) 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.2787ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533691f2219d67aa79000013", "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"=>"533691f2219d67aa7900000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:27:14 UTC, "created_at"=>2014-03-29 09:27:14 UTC}] flags=[] (0.2809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691f2219d67aa7900000f", "template_dependencies.en"=>{"$in"=>["533691f2219d67aa79000013"]}}, "$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"=>"533691f2219d67aa79000013"}, "$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"=>["533691f2219d67aa79000013"]}} 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_content_types selector={"site_id"=>"533691f2219d67aa7900000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.6301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533691f3219d67aa79000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533691f2219d67aa7900000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533691f3219d67aa79000015", "updated_at"=>2014-03-29 09:27:15 UTC, "created_at"=>2014-03-29 09:27:15 UTC, "entries_custom_fields"=>[{"_id"=>"533691f3219d67aa79000015", "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.5152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533691f3219d67aa79000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533691f3219d67aa79000014"]}} 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_entries selector={"content_type_id"=>"533691f3219d67aa79000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5648ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533691f3219d67aa79000014"]}}} (0.6800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533691f3219d67aa79000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533691f3219d67aa79000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533691f3219d67aa79000014", "content_type_id"=>"533691f3219d67aa79000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533691f2219d67aa7900000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:27:15 UTC, "created_at"=>2014-03-29 09:27:15 UTC}] flags=[] (0.2763ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:27: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.7920ms) 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.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533691ed219d67aa79000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.3ms) Completed 200 OK in 43.5ms (Views: 36.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:27:17 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 10:27:17 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:27:17 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:27: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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533691ed219d67aa79000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4318ms) 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.6011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533691ed219d67aa79000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:27:17 UTC, "updated_at"=>2014-03-29 09:27:17 UTC}} flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533691ed219d67aa79000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:27:17 UTC, "current_sign_in_at"=>2014-03-29 09:27: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-03-29 09:27:17 UTC}} flags=[] (0.1669ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 22.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:27: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.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533691ed219d67aa79000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533691ed219d67aa79000001"]}} 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"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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.2119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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.6680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"533691ee219d67aa79000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8478ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (27.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533691ed219d67aa79000001", :role=>:admin}}}} (0.7708ms) Rendered locomotive/shared/_main_app_head.html.haml (2.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (16.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533691ed219d67aa79000001"}} (0.4771ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533691ed219d67aa79000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8183ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.9ms) 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 (6.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (32.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (4.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 150.3ms (Views: 131.4ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:27:17 +0100 Served asset /locomotive.css - 200 OK (59ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:27:18 +0100 Served asset /locomotive.js - 200 OK (194ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:27:18 +0100 Served asset /locomotive/search_bar.js - 200 OK (24ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:27:18 +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-03-29 10:27:18 +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-03-29 10:27:18 +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-03-29 10:27:18 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:27: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.8709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533691ed219d67aa79000001"}, "$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_accounts selector={"_id"=>{"$in"=>["533691ed219d67aa79000001"]}} 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_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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.0588ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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.0591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533691ed219d67aa79000002"}, "$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"=>"533691ee219d67aa79000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7219ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533691ed219d67aa79000001", :role=>:admin}}}} (0.5801ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533691ed219d67aa79000001"}} (0.4008ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533691ed219d67aa79000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6568ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.1ms) 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.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 60.5ms (Views: 42.0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:27: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.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533691ed219d67aa79000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533691ed219d67aa79000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) Completed 500 Internal Server Error in 582.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.9971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.2418ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.9031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3900ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.4551ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8299ms) 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.5450ms) 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.5398ms) 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.0192ms) 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.4570ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336922c219d673f04000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d0c9c353489a2f6f579a94558454c40e5efcb307", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"typpAZskrxRA8jryB6U3", "api_key"=>"fdde5b19c175c713590e4af50fbe157483d1f6ff", "updated_at"=>2014-03-29 09:28:12 UTC, "created_at"=>2014-03-29 09:28:12 UTC}] flags=[] (0.3240ms) 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.8028ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336922c219d673f04000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:28:11 UTC, "updated_at"=>2014-03-29 09:28:12 UTC, "memberships"=>[{"_id"=>"5336922c219d673f04000003", "role"=>"admin", "account_id"=>"5336922c219d673f04000001"}]}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336922c219d673f04000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336922c219d673f04000002", "_id"=>{"$ne"=>"5336922c219d673f04000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"5336922c219d673f04000004", "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"=>"5336922c219d673f04000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:12 UTC, "created_at"=>2014-03-29 09:28:12 UTC}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336922c219d673f04000004"}, "$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"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["5336922c219d673f04000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336922c219d673f04000004"]}} 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=locomotive_pages selector={"site_id"=>"5336922c219d673f04000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336922c219d673f04000002", "_id"=>{"$ne"=>"5336922d219d673f04000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336922c219d673f04000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336922d219d673f04000005", "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"=>"5336922c219d673f04000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:13 UTC, "created_at"=>2014-03-29 09:28:13 UTC}] flags=[] (0.5331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["5336922d219d673f04000005"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336922d219d673f04000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336922d219d673f04000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336922c219d673f04000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336922d219d673f04000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336922c219d673f04000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336922d219d673f04000007", "updated_at"=>2014-03-29 09:28:13 UTC, "created_at"=>2014-03-29 09:28:13 UTC, "entries_custom_fields"=>[{"_id"=>"5336922d219d673f04000007", "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.2480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336922d219d673f04000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336922d219d673f04000008", "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", "updated_at"=>2014-03-29 09:28:13 UTC, "created_at"=>2014-03-29 09:28:13 UTC}}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336922d219d673f04000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336922d219d673f04000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336922d219d673f04000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336922d219d673f04000006"]}}} (0.3889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336922d219d673f04000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336922d219d673f04000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336922d219d673f04000006", "content_type_id"=>"5336922d219d673f04000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336922c219d673f04000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:28:13 UTC, "created_at"=>2014-03-29 09:28:13 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336922e219d673f0400000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336922d219d673f04000006"]}} 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"=>"5336922d219d673f04000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336922d219d673f04000006"]}}} (0.4292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336922d219d673f04000006"]}}} (0.3128ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336922d219d673f04000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336922e219d673f0400000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336922d219d673f04000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336922d219d673f04000006", "content_type_id"=>"5336922d219d673f04000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336922c219d673f04000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:28:14 UTC, "created_at"=>2014-03-29 09:28:14 UTC}] flags=[] (0.2100ms) 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.8950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002", "_id"=>{"$ne"=>"5336922f219d673f0400000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336922c219d673f04000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336922f219d673f0400000b", "parent_ids"=>["5336922c219d673f04000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:15 UTC, "created_at"=>2014-03-29 09:28:15 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["5336922f219d673f0400000b"]}}, "$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"=>"5336922f219d673f0400000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336922f219d673f0400000b"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002", "_id"=>{"$ne"=>"53369230219d673f0400000c"}, "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"=>{"parent_id"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336922c219d673f04000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5648ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369230219d673f0400000c", "parent_ids"=>["5336922c219d673f04000004"], "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"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:16 UTC, "created_at"=>2014-03-29 09:28:16 UTC}] flags=[] (0.2248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["53369230219d673f0400000c"]}}, "$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"=>"53369230219d673f0400000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369230219d673f0400000c"]}} 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"=>{"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"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002", "_id"=>{"$ne"=>"53369230219d673f0400000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336922c219d673f04000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4892ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369230219d673f0400000d", "parent_ids"=>["5336922c219d673f04000004"], "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"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:16 UTC, "created_at"=>2014-03-29 09:28:16 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["53369230219d673f0400000d"]}}, "$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"=>"53369230219d673f0400000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3412ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369230219d673f0400000d"]}} 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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002", "_id"=>{"$ne"=>"53369230219d673f0400000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336922c219d673f04000004", "site_id"=>"5336922c219d673f04000002"}, "$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"=>"5336922c219d673f04000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6361ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369230219d673f0400000e", "parent_ids"=>["5336922c219d673f04000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336922c219d673f04000002", "parent_id"=>"5336922c219d673f04000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:16 UTC, "created_at"=>2014-03-29 09:28:16 UTC}] flags=[] (0.2630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["53369230219d673f0400000e"]}}, "$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"=>"53369230219d673f0400000e"}, "$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"=>["53369230219d673f0400000e"]}} 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"=>{"site_id"=>"5336922c219d673f04000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336922c219d673f04000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6273ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336922c219d673f04000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:28:17 UTC}} flags=[] (0.2077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002", "template_dependencies.en"=>{"$in"=>["5336922c219d673f04000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) 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.6330ms) 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.3808ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369231219d673f0400000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:28:11 UTC, "updated_at"=>2014-03-29 09:28:17 UTC, "memberships"=>[{"_id"=>"53369231219d673f04000010", "role"=>"admin", "account_id"=>"5336922c219d673f04000001"}]}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369231219d673f0400000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369231219d673f0400000f", "_id"=>{"$ne"=>"53369231219d673f04000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369231219d673f04000011", "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"=>"53369231219d673f0400000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:17 UTC, "created_at"=>2014-03-29 09:28:17 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369231219d673f0400000f", "template_dependencies.en"=>{"$in"=>["53369231219d673f04000011"]}}, "$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"=>"53369231219d673f04000011"}, "$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"=>["53369231219d673f04000011"]}} 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={"site_id"=>"53369231219d673f0400000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369231219d673f0400000f", "_id"=>{"$ne"=>"53369232219d673f04000012"}, "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"=>nil, "site_id"=>"53369231219d673f0400000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369232219d673f04000012", "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"=>"53369231219d673f0400000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:18 UTC, "created_at"=>2014-03-29 09:28:18 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369231219d673f0400000f", "template_dependencies.en"=>{"$in"=>["53369232219d673f04000012"]}}, "$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"=>"53369232219d673f04000012"}, "$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"=>["53369232219d673f04000012"]}} 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"=>"53369231219d673f0400000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4969ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369231219d673f0400000f", "_id"=>{"$ne"=>"53369232219d673f04000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53369231219d673f0400000f"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2789ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369232219d673f04000013", "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"=>"53369231219d673f0400000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:28:18 UTC, "created_at"=>2014-03-29 09:28:18 UTC}] flags=[] (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369231219d673f0400000f", "template_dependencies.en"=>{"$in"=>["53369232219d673f04000013"]}}, "$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"=>"53369232219d673f04000013"}, "$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"=>["53369232219d673f04000013"]}} 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"=>"53369231219d673f0400000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4983ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369233219d673f04000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369231219d673f0400000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369233219d673f04000015", "updated_at"=>2014-03-29 09:28:19 UTC, "created_at"=>2014-03-29 09:28:19 UTC, "entries_custom_fields"=>[{"_id"=>"53369233219d673f04000015", "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.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369233219d673f04000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369233219d673f04000014"]}} 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"=>"53369233219d673f04000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369233219d673f04000014"]}}} (0.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369233219d673f04000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369233219d673f04000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369233219d673f04000014", "content_type_id"=>"53369233219d673f04000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369231219d673f0400000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:28:19 UTC, "created_at"=>2014-03-29 09:28:19 UTC}] flags=[] (0.1671ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:28:21 +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.8731ms) 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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336922c219d673f04000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.7ms) Completed 200 OK in 36.8ms (Views: 29.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (9ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:28: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.6192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336922c219d673f04000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5698ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336922c219d673f04000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:28:21 UTC, "updated_at"=>2014-03-29 09:28:21 UTC}} flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336922c219d673f04000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:28:21 UTC, "current_sign_in_at"=>2014-03-29 09:28: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-03-29 09:28:21 UTC}} flags=[] (0.1600ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:28: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.9012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336922c219d673f04000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5336922c219d673f04000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.8410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.7731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.7460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.7200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336922d219d673f04000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.0412ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (43.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (19.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (81.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336922c219d673f04000001", :role=>:admin}}}} (0.9646ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (20.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5336922c219d673f04000001"}} (0.6936ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (5.1ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"5336922c219d673f04000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1201ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (7.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (11.4ms) Rendered locomotive/shared/_main_app_header.html.haml (14.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (48.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (4.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.7ms) Completed 200 OK in 207.4ms (Views: 178.7ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive.css - 200 OK (48ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive.js - 200 OK (134ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive/search_bar.css - 200 OK (2ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:28:21 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 10:28:22 +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-03-29 10:28:22 +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-03-29 10:28:22 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:28:22 +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.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336922c219d673f04000001"}, "$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_accounts selector={"_id"=>{"$in"=>["5336922c219d673f04000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.3812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.1511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.5188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336922c219d673f04000002"}, "$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.3610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336922d219d673f04000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6928ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (23.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336922c219d673f04000001", :role=>:admin}}}} (0.5531ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336922c219d673f04000001"}} (0.4802ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336922c219d673f04000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5522ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 59.4ms (Views: 43.9ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:28:22 +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.6218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336922c219d673f04000001"}, "$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"=>["5336922c219d673f04000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) Completed 200 OK in 587.7ms (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.0059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.0459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5202ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.8559ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.2689ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2019ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.9549ms) 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.5541ms) 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.5100ms) 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.8659ms) 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.4780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533692e6219d67af66000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a58db8466449510959a24b1de91a04d78dac0e95", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"ux4gK99L2rUmHV4cMHZk", "api_key"=>"2e0b6c0dc0d9ffac6373587db2ba0c3c009f1c09", "updated_at"=>2014-03-29 09:31:18 UTC, "created_at"=>2014-03-29 09:31:18 UTC}] flags=[] (0.1800ms) 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.8621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533692e6219d67af66000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:31:17 UTC, "updated_at"=>2014-03-29 09:31:18 UTC, "memberships"=>[{"_id"=>"533692e6219d67af66000003", "role"=>"admin", "account_id"=>"533692e6219d67af66000001"}]}] flags=[] (0.2403ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692e6219d67af66000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1730ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692e6219d67af66000002", "_id"=>{"$ne"=>"533692e6219d67af66000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533692e6219d67af66000004", "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"=>"533692e6219d67af66000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:18 UTC, "created_at"=>2014-03-29 09:31:18 UTC}] flags=[] (0.2873ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004"}, "$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"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e6219d67af66000004"]}}, "$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"=>["533692e6219d67af66000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692e6219d67af66000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692e6219d67af66000002", "_id"=>{"$ne"=>"533692e7219d67af66000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533692e6219d67af66000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533692e7219d67af66000005", "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"=>"533692e6219d67af66000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:19 UTC, "created_at"=>2014-03-29 09:31:19 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e7219d67af66000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e7219d67af66000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533692e7219d67af66000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533692e6219d67af66000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533692e7219d67af66000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533692e6219d67af66000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533692e7219d67af66000007", "updated_at"=>2014-03-29 09:31:19 UTC, "created_at"=>2014-03-29 09:31:19 UTC, "entries_custom_fields"=>[{"_id"=>"533692e7219d67af66000007", "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.2582ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533692e7219d67af66000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533692e7219d67af66000008", "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", "updated_at"=>2014-03-29 09:31:19 UTC, "created_at"=>2014-03-29 09:31:19 UTC}}} flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533692e7219d67af66000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533692e7219d67af66000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7908ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533692e7219d67af66000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533692e7219d67af66000006"]}}} (0.4270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533692e7219d67af66000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533692e7219d67af66000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533692e7219d67af66000006", "content_type_id"=>"533692e7219d67af66000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533692e6219d67af66000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:31:19 UTC, "created_at"=>2014-03-29 09:31:19 UTC}] flags=[] (0.1822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533692e8219d67af6600000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533692e7219d67af66000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533692e7219d67af66000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533692e7219d67af66000006"]}}} (0.5329ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533692e7219d67af66000006"]}}} (0.6211ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533692e7219d67af66000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533692e8219d67af6600000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533692e7219d67af66000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533692e7219d67af66000006", "content_type_id"=>"533692e7219d67af66000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533692e6219d67af66000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:31:20 UTC, "created_at"=>2014-03-29 09:31:20 UTC}] flags=[] (0.3567ms) 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.8378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6051ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002", "_id"=>{"$ne"=>"533692e8219d67af6600000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533692e6219d67af66000004"}]}]}, "$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"=>"533692e8219d67af6600000b", "parent_ids"=>["533692e6219d67af66000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:20 UTC, "created_at"=>2014-03-29 09:31:20 UTC}] flags=[] (0.2291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e8219d67af6600000b"]}}, "$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"=>"533692e8219d67af6600000b"}, "$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"=>["533692e8219d67af6600000b"]}} 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.7041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002", "_id"=>{"$ne"=>"533692e9219d67af6600000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002"}, "$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"=>"533692e6219d67af66000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533692e9219d67af6600000c", "parent_ids"=>["533692e6219d67af66000004"], "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"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:21 UTC, "created_at"=>2014-03-29 09:31:21 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e9219d67af6600000c"]}}, "$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"=>"533692e9219d67af6600000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4990ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533692e9219d67af6600000c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002", "_id"=>{"$ne"=>"533692e9219d67af6600000d"}, "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"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533692e6219d67af66000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533692e9219d67af6600000d", "parent_ids"=>["533692e6219d67af66000004"], "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"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:21 UTC, "created_at"=>2014-03-29 09:31:21 UTC}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e9219d67af6600000d"]}}, "$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"=>"533692e9219d67af6600000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533692e9219d67af6600000d"]}} 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.6921ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002", "_id"=>{"$ne"=>"533692e9219d67af6600000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e6219d67af66000004", "site_id"=>"533692e6219d67af66000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533692e6219d67af66000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533692e9219d67af6600000e", "parent_ids"=>["533692e6219d67af66000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533692e6219d67af66000002", "parent_id"=>"533692e6219d67af66000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:21 UTC, "created_at"=>2014-03-29 09:31:21 UTC}] flags=[] (0.3562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e9219d67af6600000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533692e9219d67af6600000e"}, "$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"=>["533692e9219d67af6600000e"]}} 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"=>{"site_id"=>"533692e6219d67af66000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533692e6219d67af66000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4423ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533692e6219d67af66000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:31:22 UTC}} flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002", "template_dependencies.en"=>{"$in"=>["533692e6219d67af66000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6683ms) 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.3500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533692eb219d67af6600000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:31:17 UTC, "updated_at"=>2014-03-29 09:31:23 UTC, "memberships"=>[{"_id"=>"533692eb219d67af66000010", "role"=>"admin", "account_id"=>"533692e6219d67af66000001"}]}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692eb219d67af6600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692eb219d67af6600000f", "_id"=>{"$ne"=>"533692eb219d67af66000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"533692eb219d67af66000011", "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"=>"533692eb219d67af6600000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:23 UTC, "created_at"=>2014-03-29 09:31:23 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692eb219d67af6600000f", "template_dependencies.en"=>{"$in"=>["533692eb219d67af66000011"]}}, "$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"=>"533692eb219d67af66000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533692eb219d67af66000011"]}} 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={"site_id"=>"533692eb219d67af6600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692eb219d67af6600000f", "_id"=>{"$ne"=>"533692eb219d67af66000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692eb219d67af6600000f"}, "$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"=>"533692eb219d67af66000012", "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"=>"533692eb219d67af6600000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:23 UTC, "created_at"=>2014-03-29 09:31:23 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692eb219d67af6600000f", "template_dependencies.en"=>{"$in"=>["533692eb219d67af66000012"]}}, "$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"=>"533692eb219d67af66000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533692eb219d67af66000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533692eb219d67af6600000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692eb219d67af6600000f", "_id"=>{"$ne"=>"533692eb219d67af66000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533692eb219d67af6600000f"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3512ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533692eb219d67af66000013", "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"=>"533692eb219d67af6600000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:31:24 UTC, "created_at"=>2014-03-29 09:31:24 UTC}] flags=[] (0.2279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692eb219d67af6600000f", "template_dependencies.en"=>{"$in"=>["533692eb219d67af66000013"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533692eb219d67af66000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5162ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533692eb219d67af66000013"]}} 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=locomotive_content_types selector={"site_id"=>"533692eb219d67af6600000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5257ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533692ec219d67af66000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533692eb219d67af6600000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533692ec219d67af66000015", "updated_at"=>2014-03-29 09:31:24 UTC, "created_at"=>2014-03-29 09:31:24 UTC, "entries_custom_fields"=>[{"_id"=>"533692ec219d67af66000015", "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"=>"533692ec219d67af66000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533692ec219d67af66000014"]}} 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"=>"533692ec219d67af66000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533692ec219d67af66000014"]}}} (0.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533692ec219d67af66000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533692ec219d67af66000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533692ec219d67af66000014", "content_type_id"=>"533692ec219d67af66000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533692eb219d67af6600000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:31:24 UTC, "created_at"=>2014-03-29 09:31:24 UTC}] flags=[] (0.2091ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:31:26 +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.8757ms) 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.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533692e6219d67af66000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6430ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.7ms) Completed 200 OK in 38.4ms (Views: 31.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:31:26 +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-03-29 10:31:26 +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-03-29 10:31:26 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:31:26 +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.6218ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533692e6219d67af66000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4439ms) 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.5860ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533692e6219d67af66000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:31:26 UTC, "updated_at"=>2014-03-29 09:31:26 UTC}} flags=[] (0.1719ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533692e6219d67af66000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:31:26 UTC, "current_sign_in_at"=>2014-03-29 09:31: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-03-29 09:31:26 UTC}} flags=[] (0.1860ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 19.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:31: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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533692e6219d67af66000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["533692e6219d67af66000001"]}} 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=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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"=>"533692e6219d67af66000002"}, "$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.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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.7498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533692e7219d67af66000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7870ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (26.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533692e6219d67af66000001", :role=>:admin}}}} (0.7963ms) Rendered locomotive/shared/_main_app_head.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533692e6219d67af66000001"}} (0.5031ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533692e6219d67af66000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6390ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (3.6ms) Rendered locomotive/shared/_main_app_header.html.haml (5.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (29.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 136.8ms (Views: 116.2ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:31:27 +0100 Served asset /locomotive.js - 200 OK (107ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:31:27 +0100 Served asset /locomotive.css - 200 OK (36ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:31:27 +0100 Served asset /locomotive/search_bar.js - 200 OK (7ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:31:27 +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-03-29 10:31:27 +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-03-29 10:31:27 +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-03-29 10:31:27 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:31: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.6449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533692e6219d67af66000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4733ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533692e6219d67af66000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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.0509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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.0569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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.5639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533692e6219d67af66000002"}, "$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.4759ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533692e7219d67af66000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6421ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (13.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (25.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533692e6219d67af66000001", :role=>:admin}}}} (0.5631ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533692e6219d67af66000001"}} (0.4921ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533692e6219d67af66000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 63.9ms (Views: 46.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:31:27 +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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533692e6219d67af66000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533692e6219d67af66000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) Completed 200 OK in 592.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.4262ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.7378ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.5461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.6708ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.4040ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.3349ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8302ms) 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.5980ms) 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.4737ms) 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.9010ms) 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.5510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533695ac219d67bcea000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"e1f86b77fa4ac04c14636ff5287d930547b0b6cf", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"pVUbT2Mzr2mN57XcogKu", "api_key"=>"2fe32d65a12a212dd6df2407bd2c2082f7f32631", "updated_at"=>2014-03-29 09:43:08 UTC, "created_at"=>2014-03-29 09:43:08 UTC}] flags=[] (0.2680ms) 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.9222ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695ac219d67bcea000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:43:07 UTC, "updated_at"=>2014-03-29 09:43:08 UTC, "memberships"=>[{"_id"=>"533695ac219d67bcea000003", "role"=>"admin", "account_id"=>"533695ac219d67bcea000001"}]}] flags=[] (0.2472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695ac219d67bcea000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695ac219d67bcea000002", "_id"=>{"$ne"=>"533695ac219d67bcea000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533695ac219d67bcea000004", "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"=>"533695ac219d67bcea000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:08 UTC, "created_at"=>2014-03-29 09:43:08 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695ac219d67bcea000004"]}}, "$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"=>["533695ac219d67bcea000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695ac219d67bcea000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695ac219d67bcea000002", "_id"=>{"$ne"=>"533695ad219d67bcea000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695ac219d67bcea000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5476ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695ad219d67bcea000005", "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"=>"533695ac219d67bcea000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:09 UTC, "created_at"=>2014-03-29 09:43:09 UTC}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695ad219d67bcea000005"]}}, "$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"=>"533695ad219d67bcea000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695ad219d67bcea000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695ac219d67bcea000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8960ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695ad219d67bcea000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695ac219d67bcea000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695ad219d67bcea000007", "updated_at"=>2014-03-29 09:43:09 UTC, "created_at"=>2014-03-29 09:43:09 UTC, "entries_custom_fields"=>[{"_id"=>"533695ad219d67bcea000007", "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.2830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695ad219d67bcea000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533695ad219d67bcea000008", "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", "updated_at"=>2014-03-29 09:43:09 UTC, "created_at"=>2014-03-29 09:43:09 UTC}}} flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695ad219d67bcea000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695ad219d67bcea000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695ad219d67bcea000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4551ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695ad219d67bcea000006"]}}} (0.4108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695ad219d67bcea000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695ad219d67bcea000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695ad219d67bcea000006", "content_type_id"=>"533695ad219d67bcea000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533695ac219d67bcea000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:09 UTC, "created_at"=>2014-03-29 09:43:09 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695ae219d67bcea00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695ad219d67bcea000006"]}} 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"=>"533695ad219d67bcea000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4618ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695ad219d67bcea000006"]}}} (0.4520ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695ad219d67bcea000006"]}}} (0.3579ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695ad219d67bcea000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695ae219d67bcea00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533695ad219d67bcea000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695ad219d67bcea000006", "content_type_id"=>"533695ad219d67bcea000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533695ac219d67bcea000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:10 UTC, "created_at"=>2014-03-29 09:43:10 UTC}] flags=[] (0.2477ms) 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"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002", "_id"=>{"$ne"=>"533695af219d67bcea00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533695ac219d67bcea000004"}]}]}, "$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"=>"533695af219d67bcea00000b", "parent_ids"=>["533695ac219d67bcea000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:11 UTC, "created_at"=>2014-03-29 09:43:11 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695af219d67bcea00000b"]}}, "$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"=>"533695af219d67bcea00000b"}, "$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"=>["533695af219d67bcea00000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1132ms) 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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5209ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002", "_id"=>{"$ne"=>"533695b0219d67bcea00000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695ac219d67bcea000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695b0219d67bcea00000c", "parent_ids"=>["533695ac219d67bcea000004"], "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"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:12 UTC, "created_at"=>2014-03-29 09:43:12 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695b0219d67bcea00000c"]}}, "$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"=>"533695b0219d67bcea00000c"}, "$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"=>["533695b0219d67bcea00000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) 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.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "$or"=>[{"slug.en"=>"seems-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"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002", "_id"=>{"$ne"=>"533695b0219d67bcea00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695ac219d67bcea000004"}]}]}, "$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"=>"533695b0219d67bcea00000d", "parent_ids"=>["533695ac219d67bcea000004"], "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"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:12 UTC, "created_at"=>2014-03-29 09:43:12 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695b0219d67bcea00000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695b0219d67bcea00000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3500ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695b0219d67bcea00000d"]}} 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.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002", "_id"=>{"$ne"=>"533695b0219d67bcea00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695ac219d67bcea000004", "site_id"=>"533695ac219d67bcea000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695ac219d67bcea000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695b0219d67bcea00000e", "parent_ids"=>["533695ac219d67bcea000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533695ac219d67bcea000002", "parent_id"=>"533695ac219d67bcea000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:12 UTC, "created_at"=>2014-03-29 09:43:12 UTC}] flags=[] (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695b0219d67bcea00000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5288ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695b0219d67bcea00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695b0219d67bcea00000e"]}} 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={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7617ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533695ac219d67bcea000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5291ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533695ac219d67bcea000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:43:12 UTC}} flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002", "template_dependencies.en"=>{"$in"=>["533695ac219d67bcea000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7260ms) 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.4082ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695b1219d67bcea00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:43:07 UTC, "updated_at"=>2014-03-29 09:43:13 UTC, "memberships"=>[{"_id"=>"533695b1219d67bcea000010", "role"=>"admin", "account_id"=>"533695ac219d67bcea000001"}]}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695b1219d67bcea00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695b1219d67bcea00000f", "_id"=>{"$ne"=>"533695b1219d67bcea000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4413ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695b1219d67bcea000011", "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"=>"533695b1219d67bcea00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:13 UTC, "created_at"=>2014-03-29 09:43:13 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695b1219d67bcea00000f", "template_dependencies.en"=>{"$in"=>["533695b1219d67bcea000011"]}}, "$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"=>"533695b1219d67bcea000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3772ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695b1219d67bcea000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695b1219d67bcea00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695b1219d67bcea00000f", "_id"=>{"$ne"=>"533695b2219d67bcea000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695b1219d67bcea00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695b2219d67bcea000012", "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"=>"533695b1219d67bcea00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:14 UTC, "created_at"=>2014-03-29 09:43:14 UTC}] flags=[] (0.4101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695b1219d67bcea00000f", "template_dependencies.en"=>{"$in"=>["533695b2219d67bcea000012"]}}, "$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"=>"533695b2219d67bcea000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695b2219d67bcea000012"]}} 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={"site_id"=>"533695b1219d67bcea00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"533695b1219d67bcea00000f", "_id"=>{"$ne"=>"533695b2219d67bcea000013"}, "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"=>"533695b1219d67bcea00000f"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695b2219d67bcea000013", "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"=>"533695b1219d67bcea00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:14 UTC, "created_at"=>2014-03-29 09:43:14 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695b1219d67bcea00000f", "template_dependencies.en"=>{"$in"=>["533695b2219d67bcea000013"]}}, "$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"=>"533695b2219d67bcea000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695b2219d67bcea000013"]}} 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"=>"533695b1219d67bcea00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695b3219d67bcea000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695b1219d67bcea00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695b3219d67bcea000015", "updated_at"=>2014-03-29 09:43:15 UTC, "created_at"=>2014-03-29 09:43:15 UTC, "entries_custom_fields"=>[{"_id"=>"533695b3219d67bcea000015", "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.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695b3219d67bcea000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695b3219d67bcea000014"]}} 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"=>"533695b3219d67bcea000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695b3219d67bcea000014"]}}} (0.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695b3219d67bcea000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695b3219d67bcea000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695b3219d67bcea000014", "content_type_id"=>"533695b3219d67bcea000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533695b1219d67bcea00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:15 UTC, "created_at"=>2014-03-29 09:43:15 UTC}] flags=[] (0.1659ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:43: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.7448ms) 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.7439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695ac219d67bcea000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4501ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.7ms) Completed 200 OK in 35.8ms (Views: 29.2ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:43: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-03-29 10:43: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-03-29 10:43:17 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:43: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.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695ac219d67bcea000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4082ms) 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.5918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695ac219d67bcea000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:43:17 UTC, "updated_at"=>2014-03-29 09:43:17 UTC}} flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695ac219d67bcea000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:43:17 UTC, "current_sign_in_at"=>2014-03-29 09:43: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-03-29 09:43:17 UTC}} flags=[] (0.1540ms) 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-03-29 10:43: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.6552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695ac219d67bcea000001"}, "$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"=>["533695ac219d67bcea000001"]}} 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_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.3442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.6068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.4082ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695ad219d67bcea000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7310ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (12.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695ac219d67bcea000001", :role=>:admin}}}} (0.5612ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (13.0ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533695ac219d67bcea000001"}} (0.5741ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695ac219d67bcea000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8070ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.7ms) 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.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (29.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.2ms) Completed 200 OK in 133.5ms (Views: 116.2ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:43:17 +0100 Served asset /locomotive.js - 200 OK (112ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:43:17 +0100 Served asset /locomotive.css - 200 OK (36ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:43:17 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:43: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-03-29 10:43:17 +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-03-29 10:43:17 +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-03-29 10:43:17 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:43: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.7780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695ac219d67bcea000001"}, "$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"=>["533695ac219d67bcea000001"]}} 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_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.2431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695ac219d67bcea000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"533695ad219d67bcea000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7150ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (16.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (26.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695ac219d67bcea000001", :role=>:admin}}}} (0.5100ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (4.8ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533695ac219d67bcea000001"}} (0.4520ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695ac219d67bcea000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5250ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 62.0ms (Views: 45.8ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:43: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.5932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695ac219d67bcea000001"}, "$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"=>["533695ac219d67bcea000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4110ms) Completed 200 OK in 595.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.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4808ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9201ms) 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.5751ms) 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.6318ms) 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.1421ms) 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.1121ms) 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.7930ms) 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.5698ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533695bc219d67ba8c000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"5d7d74b27e6f4d5a22ce837471ed02e46cdcdc3e", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"3iG9rcJXwU3ekjeM7Uj2", "api_key"=>"804eccda5c892da7940320b36a565426ea3e2bcc", "updated_at"=>2014-03-29 09:43:24 UTC, "created_at"=>2014-03-29 09:43:24 UTC}] flags=[] (0.2799ms) 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.7100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695bc219d67ba8c000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:43:24 UTC, "updated_at"=>2014-03-29 09:43:24 UTC, "memberships"=>[{"_id"=>"533695bc219d67ba8c000003", "role"=>"admin", "account_id"=>"533695bc219d67ba8c000001"}]}] flags=[] (0.1793ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bc219d67ba8c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bc219d67ba8c000002", "_id"=>{"$ne"=>"533695bc219d67ba8c000004"}, "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"=>"533695bc219d67ba8c000004", "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"=>"533695bc219d67ba8c000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:24 UTC, "created_at"=>2014-03-29 09:43:24 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bc219d67ba8c000004"}, "$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"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bc219d67ba8c000004"]}}, "$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"=>["533695bc219d67ba8c000004"]}} 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"=>"533695bc219d67ba8c000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6149ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bc219d67ba8c000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695bc219d67ba8c000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bc219d67ba8c000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bc219d67ba8c000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bc219d67ba8c000002", "_id"=>{"$ne"=>"533695bc219d67ba8c000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"533695bc219d67ba8c000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bc219d67ba8c000006", "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"=>"533695bc219d67ba8c000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.2048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bc219d67ba8c000006"]}}, "$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"=>"533695bc219d67ba8c000006"}, "$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"=>["533695bc219d67ba8c000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695bc219d67ba8c000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8540ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695bd219d67ba8c000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695bc219d67ba8c000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695bd219d67ba8c000008", "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC, "entries_custom_fields"=>[{"_id"=>"533695bd219d67ba8c000008", "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.3498ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695bd219d67ba8c000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533695bd219d67ba8c000009", "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", "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}}} flags=[] (0.4652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695bd219d67ba8c00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695bd219d67ba8c000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c000007"]}}} (0.4001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695bd219d67ba8c00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695bd219d67ba8c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695bd219d67ba8c000007", "content_type_id"=>"533695bd219d67ba8c000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533695bc219d67ba8c000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695bd219d67ba8c000007", "original_id"=>"533695bd219d67ba8c00000a", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bd219d67ba8c00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533695bc219d67ba8c000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695bd219d67ba8c000007", "original_id"=>"533695bd219d67ba8c00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695bd219d67ba8c00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c000007"]}} 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_content_entries selector={"content_type_id"=>"533695bd219d67ba8c000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3672ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c000007"]}}} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c000007"]}}} (0.2720ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4692ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695bd219d67ba8c00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533695bd219d67ba8c000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695bd219d67ba8c000007", "content_type_id"=>"533695bd219d67ba8c000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533695bc219d67ba8c000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 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::ContentEntry533695bd219d67ba8c000007", "original_id"=>"533695bd219d67ba8c00000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3803ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bd219d67ba8c00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533695bc219d67ba8c000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695bd219d67ba8c000007", "original_id"=>"533695bd219d67ba8c00000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1433ms) 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.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002", "_id"=>{"$ne"=>"533695bd219d67ba8c00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533695bc219d67ba8c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8390ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bd219d67ba8c00000e", "parent_ids"=>["533695bc219d67ba8c000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c00000e"]}}, "$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"=>"533695bd219d67ba8c00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bd219d67ba8c00000e"]}} 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"=>"533695bd219d67ba8c00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bd219d67ba8c00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533695bc219d67ba8c000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bd219d67ba8c00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2038ms) 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.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002", "_id"=>{"$ne"=>"533695bd219d67ba8c000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695bc219d67ba8c000004"}]}]}, "$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"=>"533695bd219d67ba8c000010", "parent_ids"=>["533695bc219d67ba8c000004"], "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"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c000010"]}}, "$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"=>"533695bd219d67ba8c000010"}, "$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"=>["533695bd219d67ba8c000010"]}} 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.5479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002", "_id"=>{"$ne"=>"533695bd219d67ba8c000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002"}, "$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"=>"533695bc219d67ba8c000004"}]}]}, "$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"=>"533695bd219d67ba8c000011", "parent_ids"=>["533695bc219d67ba8c000004"], "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"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c000011"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bd219d67ba8c000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3741ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bd219d67ba8c000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1814ms) 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.7880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002", "_id"=>{"$ne"=>"533695bd219d67ba8c000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0381ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bc219d67ba8c000004", "site_id"=>"533695bc219d67ba8c000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695bc219d67ba8c000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bd219d67ba8c000012", "parent_ids"=>["533695bc219d67ba8c000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533695bc219d67ba8c000002", "parent_id"=>"533695bc219d67ba8c000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c000012"]}}, "$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"=>"533695bd219d67ba8c000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bd219d67ba8c000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bd219d67ba8c000012", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bd219d67ba8c000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533695bc219d67ba8c000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bd219d67ba8c000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"533695bc219d67ba8c000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3548ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533695bc219d67ba8c000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:43:25 UTC}} flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002", "template_dependencies.en"=>{"$in"=>["533695bc219d67ba8c000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bc219d67ba8c000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5577ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695bc219d67ba8c000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533695bc219d67ba8c000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1552ms) 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.5932ms) 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"=>"533695bd219d67ba8c000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:43:24 UTC, "updated_at"=>2014-03-29 09:43:25 UTC, "memberships"=>[{"_id"=>"533695bd219d67ba8c000015", "role"=>"admin", "account_id"=>"533695bc219d67ba8c000001"}]}] flags=[] (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bd219d67ba8c000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bd219d67ba8c000014", "_id"=>{"$ne"=>"533695bd219d67ba8c000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"533695bd219d67ba8c000016", "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"=>"533695bd219d67ba8c000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bd219d67ba8c000014", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c000016"]}}, "$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"=>"533695bd219d67ba8c000016"}, "$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"=>["533695bd219d67ba8c000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bd219d67ba8c000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3052ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bd219d67ba8c000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695bd219d67ba8c000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bd219d67ba8c000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bd219d67ba8c000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bd219d67ba8c000014", "_id"=>{"$ne"=>"533695bd219d67ba8c000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bd219d67ba8c000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bd219d67ba8c000018", "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"=>"533695bd219d67ba8c000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bd219d67ba8c000014", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c000018"]}}, "$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"=>"533695bd219d67ba8c000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bd219d67ba8c000018"]}} 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={"site_id"=>"533695bd219d67ba8c000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bd219d67ba8c000014", "_id"=>{"$ne"=>"533695bd219d67ba8c000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bd219d67ba8c000014"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533695bd219d67ba8c000019", "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"=>"533695bd219d67ba8c000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bd219d67ba8c000014", "template_dependencies.en"=>{"$in"=>["533695bd219d67ba8c000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bd219d67ba8c000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bd219d67ba8c000019"]}} 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"=>"533695bd219d67ba8c000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bd219d67ba8c00001a", "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=>"533695bd219d67ba8c000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bd219d67ba8c000019", "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"=>"533695bd219d67ba8c000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4168ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695bd219d67ba8c00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695bd219d67ba8c000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695bd219d67ba8c00001c", "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC, "entries_custom_fields"=>[{"_id"=>"533695bd219d67ba8c00001c", "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.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695bd219d67ba8c00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c00001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695bd219d67ba8c00001b", "$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 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bd219d67ba8c00001b"]}}} (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695bd219d67ba8c00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695bd219d67ba8c00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695bd219d67ba8c00001b", "content_type_id"=>"533695bd219d67ba8c00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533695bd219d67ba8c000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:25 UTC, "created_at"=>2014-03-29 09:43:25 UTC}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695bd219d67ba8c00001b", "original_id"=>"533695bd219d67ba8c00001d", "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"=>"533695bd219d67ba8c00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533695bd219d67ba8c000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695bd219d67ba8c00001b", "original_id"=>"533695bd219d67ba8c00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1600ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:43:26 +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.8819ms) 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.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695bc219d67ba8c000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5803ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.9ms) Completed 200 OK in 38.1ms (Views: 31.6ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:43:26 +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-03-29 10:43:26 +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-03-29 10:43:26 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:43:26 +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.6080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695bc219d67ba8c000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4818ms) 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.5660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695bc219d67ba8c000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:43:26 UTC, "updated_at"=>2014-03-29 09:43:26 UTC}} flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695bc219d67ba8c000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:43:26 UTC, "current_sign_in_at"=>2014-03-29 09:43: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-03-29 09:43:26 UTC}} flags=[] (0.1521ms) 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-03-29 10:43: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.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695bc219d67ba8c000001"}, "$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_accounts selector={"_id"=>{"$in"=>["533695bc219d67ba8c000001"]}} 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_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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.0800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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.6630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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.4630ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695bd219d67ba8c000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7408ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (27.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (3.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695bc219d67ba8c000001", :role=>:admin}}}} (0.5789ms) Rendered locomotive/shared/_main_app_head.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (16.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533695bc219d67ba8c000001"}} (0.4592ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695bc219d67ba8c000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5963ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.9ms) 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.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (28.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 130.8ms (Views: 114.9ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:43:26 +0100 Served asset /locomotive.js - 200 OK (110ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:43:26 +0100 Served asset /locomotive.css - 200 OK (37ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:43: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-03-29 10:43: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-03-29 10:43:27 +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-03-29 10:43:27 +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-03-29 10:43:27 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:43: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.5741ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695bc219d67ba8c000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533695bc219d67ba8c000001"]}} 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"=>"533695bc219d67ba8c000002"}, "$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.0600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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.1172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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.5338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695bc219d67ba8c000002"}, "$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.3591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695bd219d67ba8c000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8187ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (0.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"533695bc219d67ba8c000001", :role=>:admin}}}} (0.5100ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695bc219d67ba8c000001"}} (0.4373ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695bc219d67ba8c000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 55.9ms (Views: 41.3ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:43:27 +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.6227ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695bc219d67ba8c000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533695bc219d67ba8c000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4599ms) 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"=>"533695bc219d67ba8c000002", "locale"=>"en"}} (0.6740ms) Completed 200 OK in 19.3ms (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.6840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.1012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3301ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3368ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6800ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4680ms) 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.4129ms) 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.1070ms) 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.1218ms) 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.5450ms) 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.3858ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533695bf219d67ba8c00001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"50c9bf05f224644f565f7274543587c78be21e10", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"fYoAAdJMh4sRdZxqQJr5", "api_key"=>"df3bd26d7988d6690fc4225e9331e51c458e295c", "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.1309ms) 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.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695bf219d67ba8c000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:43:24 UTC, "updated_at"=>2014-03-29 09:43:27 UTC, "memberships"=>[{"_id"=>"533695bf219d67ba8c000021", "role"=>"admin", "account_id"=>"533695bf219d67ba8c00001f"}]}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bf219d67ba8c000020", "_id"=>{"$ne"=>"533695bf219d67ba8c000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bf219d67ba8c000022", "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"=>"533695bf219d67ba8c000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.3250ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022"}, "$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"=>["533695bf219d67ba8c000022"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bf219d67ba8c000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695bf219d67ba8c000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2596ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bf219d67ba8c000020", "_id"=>{"$ne"=>"533695bf219d67ba8c000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bf219d67ba8c000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bf219d67ba8c000024", "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"=>"533695bf219d67ba8c000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.2718ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c000024"]}}, "$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"=>"533695bf219d67ba8c000024"}, "$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"=>["533695bf219d67ba8c000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695bf219d67ba8c000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695bf219d67ba8c000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695bf219d67ba8c000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695bf219d67ba8c000026", "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC, "entries_custom_fields"=>[{"_id"=>"533695bf219d67ba8c000026", "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.3641ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695bf219d67ba8c000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533695bf219d67ba8c000027", "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", "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}}} flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695bf219d67ba8c000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695bf219d67ba8c000025"]}} 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={"content_type_id"=>"533695bf219d67ba8c000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4628ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bf219d67ba8c000025"]}}} (0.4077ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695bf219d67ba8c000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695bf219d67ba8c000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695bf219d67ba8c000025", "content_type_id"=>"533695bf219d67ba8c000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533695bf219d67ba8c000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 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::ContentEntry533695bf219d67ba8c000025", "original_id"=>"533695bf219d67ba8c000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bf219d67ba8c000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533695bf219d67ba8c000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695bf219d67ba8c000025", "original_id"=>"533695bf219d67ba8c000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1972ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695bf219d67ba8c00002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695bf219d67ba8c000025"]}} 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"=>"533695bf219d67ba8c000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4690ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bf219d67ba8c000025"]}}} (0.4148ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bf219d67ba8c000025"]}}} (0.3769ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695bf219d67ba8c000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5252ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695bf219d67ba8c00002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533695bf219d67ba8c000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695bf219d67ba8c000025", "content_type_id"=>"533695bf219d67ba8c000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533695bf219d67ba8c000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 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::ContentEntry533695bf219d67ba8c000025", "original_id"=>"533695bf219d67ba8c00002a", "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"=>"533695bf219d67ba8c00002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533695bf219d67ba8c000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695bf219d67ba8c000025", "original_id"=>"533695bf219d67ba8c00002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1841ms) 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"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020", "_id"=>{"$ne"=>"533695bf219d67ba8c00002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533695bf219d67ba8c000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bf219d67ba8c00002c", "parent_ids"=>["533695bf219d67ba8c000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c00002c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c00002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bf219d67ba8c00002c"]}} 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"=>"533695bf219d67ba8c00002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3343ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bf219d67ba8c00002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533695bf219d67ba8c000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c00002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1872ms) 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.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020", "_id"=>{"$ne"=>"533695bf219d67ba8c00002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695bf219d67ba8c000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8771ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bf219d67ba8c00002e", "parent_ids"=>["533695bf219d67ba8c000022"], "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"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c00002e"]}}, "$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"=>"533695bf219d67ba8c00002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bf219d67ba8c00002e"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6263ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020", "_id"=>{"$ne"=>"533695bf219d67ba8c00002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695bf219d67ba8c000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695bf219d67ba8c00002f", "parent_ids"=>["533695bf219d67ba8c000022"], "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"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c00002f"]}}, "$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"=>"533695bf219d67ba8c00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bf219d67ba8c00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2151ms) 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.7651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020", "_id"=>{"$ne"=>"533695bf219d67ba8c000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695bf219d67ba8c000022", "site_id"=>"533695bf219d67ba8c000020"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695bf219d67ba8c000022"}]}]}, "$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"=>"533695bf219d67ba8c000030", "parent_ids"=>["533695bf219d67ba8c000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533695bf219d67ba8c000020", "parent_id"=>"533695bf219d67ba8c000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c000030"]}}, "$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"=>"533695bf219d67ba8c000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695bf219d67ba8c000030"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000030", "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"=>"533695bf219d67ba8c000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533695bf219d67ba8c000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533695bf219d67ba8c000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533695bf219d67ba8c000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:43:27 UTC}} flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c000022"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695bf219d67ba8c000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533695bf219d67ba8c000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2091ms) 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.5927ms) 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.3941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695bf219d67ba8c000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:43:24 UTC, "updated_at"=>2014-03-29 09:43:27 UTC, "memberships"=>[{"_id"=>"533695bf219d67ba8c000033", "role"=>"admin", "account_id"=>"533695bf219d67ba8c00001f"}]}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bf219d67ba8c000032", "_id"=>{"$ne"=>"533695bf219d67ba8c000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533695bf219d67ba8c000034", "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"=>"533695bf219d67ba8c000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:27 UTC, "created_at"=>2014-03-29 09:43:27 UTC}] flags=[] (0.2389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000032", "template_dependencies.en"=>{"$in"=>["533695bf219d67ba8c000034"]}}, "$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"=>"533695bf219d67ba8c000034"}, "$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"=>["533695bf219d67ba8c000034"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000034", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695bf219d67ba8c000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695bf219d67ba8c000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695bf219d67ba8c000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000032", "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"=>"533695bf219d67ba8c000032", "_id"=>{"$ne"=>"533695c0219d67ba8c000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695bf219d67ba8c000032"}, "$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"=>"533695c0219d67ba8c000036", "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"=>"533695bf219d67ba8c000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000032", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000036"]}}, "$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"=>"533695c0219d67ba8c000036"}, "$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"=>["533695c0219d67ba8c000036"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695bf219d67ba8c000032", "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"=>"533695bf219d67ba8c000032", "_id"=>{"$ne"=>"533695c0219d67ba8c000037"}, "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"=>"533695bf219d67ba8c000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6638ms) 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.4370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c000037", "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"=>"533695bf219d67ba8c000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.4349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000032", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000037"]}}, "$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"=>{"parent_id"=>"533695c0219d67ba8c000037"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c000038", "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=>"533695bf219d67ba8c000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695bf219d67ba8c000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4311ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695c0219d67ba8c000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695bf219d67ba8c000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c0219d67ba8c00003a", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC, "entries_custom_fields"=>[{"_id"=>"533695c0219d67ba8c00003a", "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"=>"533695c0219d67ba8c00003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000039"]}} 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_content_entries selector={"content_type_id"=>"533695c0219d67ba8c000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5510ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000039"]}}} (0.4539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c0219d67ba8c00003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c0219d67ba8c000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000039", "content_type_id"=>"533695c0219d67ba8c000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533695bf219d67ba8c000032", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000039", "original_id"=>"533695c0219d67ba8c00003b", "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"=>"533695c0219d67ba8c00003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533695bf219d67ba8c000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000039", "original_id"=>"533695c0219d67ba8c00003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2089ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:43: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.7248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7601ms) Rendered text template (0.0ms) Completed 200 OK in 10.7ms (Views: 4.0ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 10:43:28 +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.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "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.6058ms) 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"=>"533695bf219d67ba8c000020", "locale"=>"en"}} (0.5782ms) Rendered text template (0.0ms) Completed 200 OK in 8.2ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 10:43:28 +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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "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.8130ms) Rendered text template (0.0ms) Completed 200 OK in 74.6ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:43: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.5140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5929ms) Rendered text template (0.0ms) Completed 200 OK in 4.2ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-29 10:43:28 +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.5460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695bf219d67ba8c000020", "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.8101ms) 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"=>"533695bf219d67ba8c000020", "locale"=>"en"}} (0.5970ms) Rendered text template (0.0ms) Completed 200 OK in 8.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 (0.9370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.2111ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.0879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5121ms) 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.4940ms) 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.1049ms) 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.0851ms) 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.0989ms) 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.3450ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533695c0219d67ba8c00003d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f03454d6164a71b935eef0d7531adda887c22671", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"LqoVTVXZhrhHqwbLiXvh", "api_key"=>"00734318c975c0fe4614ee64e27e8fae2711a6f8", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.1569ms) 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.6852ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695c0219d67ba8c00003e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:43:24 UTC, "updated_at"=>2014-03-29 09:43:28 UTC, "memberships"=>[{"_id"=>"533695c0219d67ba8c00003f", "role"=>"admin", "account_id"=>"533695c0219d67ba8c00003d"}]}] flags=[] (0.1519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c0219d67ba8c00003e", "_id"=>{"$ne"=>"533695c0219d67ba8c000040"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c000040", "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"=>"533695c0219d67ba8c00003e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000040"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c000040"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000040", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c000041", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695c0219d67ba8c00003e", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000040", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c0219d67ba8c00003e", "_id"=>{"$ne"=>"533695c0219d67ba8c000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c0219d67ba8c00003e"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c000042", "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"=>"533695c0219d67ba8c00003e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000042"]}}, "$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"=>"533695c0219d67ba8c000042"}, "$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"=>["533695c0219d67ba8c000042"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c0219d67ba8c00003e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4938ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695c0219d67ba8c000043", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695c0219d67ba8c00003e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c0219d67ba8c000044", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC, "entries_custom_fields"=>[{"_id"=>"533695c0219d67ba8c000044", "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.3812ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695c0219d67ba8c000043"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533695c0219d67ba8c000045", "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", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}}} flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c0219d67ba8c000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695c0219d67ba8c000043", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6580ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}}} (0.4833ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c0219d67ba8c000046", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c0219d67ba8c000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "content_type_id"=>"533695c0219d67ba8c000043", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533695c0219d67ba8c00003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 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::ContentEntry533695c0219d67ba8c000043", "original_id"=>"533695c0219d67ba8c000046", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c000047", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533695c0219d67ba8c00003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "original_id"=>"533695c0219d67ba8c000046", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c0219d67ba8c000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695c0219d67ba8c000043", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}}} (0.4673ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}}} (0.3090ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c0219d67ba8c000048", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c0219d67ba8c000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "content_type_id"=>"533695c0219d67ba8c000043", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533695c0219d67ba8c00003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2682ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "original_id"=>"533695c0219d67ba8c000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4070ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c000049", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533695c0219d67ba8c00003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "original_id"=>"533695c0219d67ba8c000048", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1752ms) 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.5963ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e", "_id"=>{"$ne"=>"533695c0219d67ba8c00004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c0219d67ba8c000040"}]}]}, "$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"=>"533695c0219d67ba8c00004a", "parent_ids"=>["533695c0219d67ba8c000040"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2267ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c00004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c00004a"}, "$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"=>["533695c0219d67ba8c00004a"]}} 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"=>"533695c0219d67ba8c00004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c00004b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533695c0219d67ba8c00003e", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c00004a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2849ms) 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.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e", "_id"=>{"$ne"=>"533695c0219d67ba8c00004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c0219d67ba8c000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c00004c", "parent_ids"=>["533695c0219d67ba8c000040"], "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"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2899ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c00004c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c00004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4056ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c00004c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e", "_id"=>{"$ne"=>"533695c0219d67ba8c00004d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c0219d67ba8c000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5198ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c00004d", "parent_ids"=>["533695c0219d67ba8c000040"], "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"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c00004d"]}}, "$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"=>"533695c0219d67ba8c00004d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3898ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c00004d"]}} 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=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"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e", "_id"=>{"$ne"=>"533695c0219d67ba8c00004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.3289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000040", "site_id"=>"533695c0219d67ba8c00003e"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c0219d67ba8c000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c00004e", "parent_ids"=>["533695c0219d67ba8c000040"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533695c0219d67ba8c00003e", "parent_id"=>"533695c0219d67ba8c000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.4711ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c00004e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533695c0219d67ba8c00004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5758ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c00004e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c00004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c00004f", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533695c0219d67ba8c00003e", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c00004e", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533695c0219d67ba8c00003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3762ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533695c0219d67ba8c000040"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:43:28 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000040"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695c0219d67ba8c000041"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533695c0219d67ba8c00003e", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1583ms) 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.4702ms) 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.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695c0219d67ba8c000050", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:43:24 UTC, "updated_at"=>2014-03-29 09:43:28 UTC, "memberships"=>[{"_id"=>"533695c0219d67ba8c000051", "role"=>"admin", "account_id"=>"533695c0219d67ba8c00003d"}]}] flags=[] (0.1650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"533695c0219d67ba8c000050", "_id"=>{"$ne"=>"533695c0219d67ba8c000052"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c000052", "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"=>"533695c0219d67ba8c000050", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c000050", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000052"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000052"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5667ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c000052"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1206ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000052", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c000053", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695c0219d67ba8c000050", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000052", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c0219d67ba8c000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c0219d67ba8c000050", "_id"=>{"$ne"=>"533695c0219d67ba8c000054"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533695c0219d67ba8c000050"}, "$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"=>"533695c0219d67ba8c000054", "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"=>"533695c0219d67ba8c000050", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c000050", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000054"]}}, "$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"=>"533695c0219d67ba8c000054"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3648ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c0219d67ba8c000054"]}} 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"=>"533695c0219d67ba8c000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c0219d67ba8c000050", "_id"=>{"$ne"=>"533695c0219d67ba8c000055"}, "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"=>"533695c0219d67ba8c000050"}, "$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.2868ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c0219d67ba8c000055", "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"=>"533695c0219d67ba8c000050", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c000050", "template_dependencies.en"=>{"$in"=>["533695c0219d67ba8c000055"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c0219d67ba8c000055"}, "$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"=>["533695c0219d67ba8c000055"]}} 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"=>"533695c0219d67ba8c000055", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c000056", "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=>"533695c0219d67ba8c000050", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c0219d67ba8c000055", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c0219d67ba8c000050", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"533695c0219d67ba8c000057", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695c0219d67ba8c000050", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c0219d67ba8c000058", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 UTC, "entries_custom_fields"=>[{"_id"=>"533695c0219d67ba8c000058", "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"=>"533695c0219d67ba8c000059"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000057"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695c0219d67ba8c000057", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000057"]}}} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c0219d67ba8c000059", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c0219d67ba8c000057", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000057", "content_type_id"=>"533695c0219d67ba8c000057", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533695c0219d67ba8c000050", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:28 UTC, "created_at"=>2014-03-29 09:43:28 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::ContentEntry533695c0219d67ba8c000057", "original_id"=>"533695c0219d67ba8c000059", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c0219d67ba8c00005a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533695c0219d67ba8c000050", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000057", "original_id"=>"533695c0219d67ba8c000059", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c0219d67ba8c000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4764ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c0219d67ba8c000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695c0219d67ba8c000043"} update={"$set"=>{"updated_at"=>2014-03-29 09:43:28 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1011ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695c0219d67ba8c000043"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1421ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:43: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.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5341ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 10:43: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.5980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "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.7110ms) 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"=>"533695c0219d67ba8c00003e", "locale"=>"en"}} (0.5841ms) Rendered text template (0.0ms) Completed 200 OK in 6.3ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695c0219d67ba8c000043"} 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_content_entries selector={"content_type_id"=>"533695c0219d67ba8c000043", "updated_at"=>{"$lt"=>2014-03-29 09:43:28 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry533695c0219d67ba8c000043"]}} 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=locomotive_sites selector={"$query"=>{"_id"=>"533695c0219d67ba8c00003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4077ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533695c0219d67ba8c000043"}, "$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"=>"533695c0219d67ba8c000046"} update={"$set"=>{"updated_at"=>2014-03-29 09:43:28 UTC}} flags=[] (0.1369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "original_id"=>"533695c0219d67ba8c000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5538ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695c0219d67ba8c000047"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533695c0219d67ba8c00003e", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533695c0219d67ba8c00003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533695c0219d67ba8c000043"}, "$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_content_entries selector={"_id"=>"533695c0219d67ba8c000048"} update={"$set"=>{"updated_at"=>2014-03-29 09:43:28 UTC}} flags=[] (0.1333ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c0219d67ba8c000043", "original_id"=>"533695c0219d67ba8c000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695c0219d67ba8c000049"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533695c0219d67ba8c00003e", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1910ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:43: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.5920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5951ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 10:43: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.5579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c0219d67ba8c00003e", "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.6380ms) 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"=>"533695c0219d67ba8c00003e", "locale"=>"en"}} (0.5600ms) Rendered text template (0.0ms) Completed 200 OK in 7.4ms (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.7410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.4983ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4461ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4470ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4911ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.0281ms) 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.8430ms) 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.6421ms) 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.2420ms) 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.2830ms) 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.8039ms) 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.5581ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533695c6219d67e770000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"2810a6ec893ee3d2e7ebcbb6f07325c2f540f8c9", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"gNctaz6S4mccQqp39VhH", "api_key"=>"2083b2108a28ad9d940245e9252b632689ffb296", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2069ms) 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.0362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695c6219d67e770000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:43:34 UTC, "updated_at"=>2014-03-29 09:43:34 UTC, "memberships"=>[{"_id"=>"533695c6219d67e770000003", "role"=>"admin", "account_id"=>"533695c6219d67e770000001"}]}] flags=[] (0.3262ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7417ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c6219d67e770000002", "_id"=>{"$ne"=>"533695c6219d67e770000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5782ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c6219d67e770000004", "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"=>"533695c6219d67e770000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3490ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c6219d67e770000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000004", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e770000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695c6219d67e770000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c6219d67e770000002", "_id"=>{"$ne"=>"533695c6219d67e770000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6914ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c6219d67e770000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c6219d67e770000006", "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"=>"533695c6219d67e770000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000006"}, "$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"=>["533695c6219d67e770000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c6219d67e770000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695c6219d67e770000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695c6219d67e770000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c6219d67e770000008", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC, "entries_custom_fields"=>[{"_id"=>"533695c6219d67e770000008", "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.2480ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695c6219d67e770000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533695c6219d67e770000009", "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", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}}} flags=[] (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c6219d67e77000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e770000007"]}} 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_content_entries selector={"content_type_id"=>"533695c6219d67e770000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5801ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e770000007"]}}} (0.5150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c6219d67e77000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c6219d67e770000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c6219d67e770000007", "content_type_id"=>"533695c6219d67e770000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533695c6219d67e770000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c6219d67e770000007", "original_id"=>"533695c6219d67e77000000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6282ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e77000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533695c6219d67e770000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c6219d67e770000007", "original_id"=>"533695c6219d67e77000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2382ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c6219d67e77000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e770000007"]}} 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"=>"533695c6219d67e770000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5822ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e770000007"]}}} (0.7029ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e770000007"]}}} (0.5879ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e770000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.9763ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c6219d67e77000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c6219d67e770000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c6219d67e770000007", "content_type_id"=>"533695c6219d67e770000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533695c6219d67e770000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.3772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c6219d67e770000007", "original_id"=>"533695c6219d67e77000000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e77000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533695c6219d67e770000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c6219d67e770000007", "original_id"=>"533695c6219d67e77000000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2170ms) 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.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5445ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002", "_id"=>{"$ne"=>"533695c6219d67e77000000e"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c6219d67e770000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c6219d67e77000000e", "parent_ids"=>["533695c6219d67e770000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.3538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e77000000e"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"533695c6219d67e77000000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c6219d67e77000000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e77000000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e77000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533695c6219d67e770000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e77000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1791ms) 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.0471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002", "_id"=>{"$ne"=>"533695c6219d67e770000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c6219d67e770000004"}]}]}, "$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"=>"533695c6219d67e770000010", "parent_ids"=>["533695c6219d67e770000004"], "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"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.3829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000010"}, "$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"=>["533695c6219d67e770000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1783ms) 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"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002", "_id"=>{"$ne"=>"533695c6219d67e770000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002"}, "$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"=>"533695c6219d67e770000004"}]}]}, "$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"=>"533695c6219d67e770000011", "parent_ids"=>["533695c6219d67e770000004"], "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"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000011"]}}, "$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"=>"533695c6219d67e770000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c6219d67e770000011"]}} 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.6032ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002", "_id"=>{"$ne"=>"533695c6219d67e770000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c6219d67e770000004", "site_id"=>"533695c6219d67e770000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c6219d67e770000004"}]}]}, "$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"=>"533695c6219d67e770000012", "parent_ids"=>["533695c6219d67e770000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533695c6219d67e770000002", "parent_id"=>"533695c6219d67e770000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000012"]}}, "$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"=>"533695c6219d67e770000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3388ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c6219d67e770000012"]}} 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"=>"533695c6219d67e770000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e770000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533695c6219d67e770000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1791ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"533695c6219d67e770000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533695c6219d67e770000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:43:34 UTC}} flags=[] (0.1531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695c6219d67e770000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533695c6219d67e770000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1822ms) 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.5310ms) 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.3831ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695c6219d67e770000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:43:34 UTC, "updated_at"=>2014-03-29 09:43:34 UTC, "memberships"=>[{"_id"=>"533695c6219d67e770000015", "role"=>"admin", "account_id"=>"533695c6219d67e770000001"}]}] flags=[] (0.1497ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c6219d67e770000014", "_id"=>{"$ne"=>"533695c6219d67e770000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"533695c6219d67e770000016", "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"=>"533695c6219d67e770000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000014", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000016"]}}, "$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"=>"533695c6219d67e770000016"}, "$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"=>["533695c6219d67e770000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000016", "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"=>"533695c6219d67e770000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695c6219d67e770000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c6219d67e770000014", "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"=>"533695c6219d67e770000014", "_id"=>{"$ne"=>"533695c6219d67e770000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>nil, "site_id"=>"533695c6219d67e770000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c6219d67e770000018", "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"=>"533695c6219d67e770000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.3648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000014", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000018"]}}, "$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"=>"533695c6219d67e770000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c6219d67e770000018"]}} 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_pages selector={"site_id"=>"533695c6219d67e770000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c6219d67e770000014", "_id"=>{"$ne"=>"533695c6219d67e770000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1673ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c6219d67e770000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2770ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c6219d67e770000019", "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"=>"533695c6219d67e770000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000014", "template_dependencies.en"=>{"$in"=>["533695c6219d67e770000019"]}}, "$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"=>"533695c6219d67e770000019"}, "$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"=>["533695c6219d67e770000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e77000001a", "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=>"533695c6219d67e770000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c6219d67e770000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c6219d67e770000014", "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"=>"533695c6219d67e77000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695c6219d67e770000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c6219d67e77000001c", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 UTC, "entries_custom_fields"=>[{"_id"=>"533695c6219d67e77000001c", "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"=>"533695c6219d67e77000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e77000001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533695c6219d67e77000001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c6219d67e77000001b"]}}} (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c6219d67e77000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c6219d67e77000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c6219d67e77000001b", "content_type_id"=>"533695c6219d67e77000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533695c6219d67e770000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:34 UTC, "created_at"=>2014-03-29 09:43:34 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::ContentEntry533695c6219d67e77000001b", "original_id"=>"533695c6219d67e77000001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4182ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c6219d67e77000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533695c6219d67e770000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c6219d67e77000001b", "original_id"=>"533695c6219d67e77000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1750ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:43:36 +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.9229ms) 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.5510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695c6219d67e770000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.9ms) Completed 200 OK in 37.9ms (Views: 31.4ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:43:36 +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-03-29 10:43:36 +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-03-29 10:43:36 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:43:36 +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.7961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695c6219d67e770000001"]}}, "$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"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6521ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695c6219d67e770000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:43:36 UTC, "updated_at"=>2014-03-29 09:43:36 UTC}} flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695c6219d67e770000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:43:36 UTC, "current_sign_in_at"=>2014-03-29 09:43:36 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:43:36 UTC}} flags=[] (0.1509ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:43:36 +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.6089ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695c6219d67e770000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533695c6219d67e770000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002"}, "$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.5371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c6219d67e770000002"}, "$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.0371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c6219d67e770000002"}, "$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"=>"533695c6219d67e770000002"}, "$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.5112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695c6219d67e770000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8790ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (53.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695c6219d67e770000001", :role=>:admin}}}} (0.5608ms) Rendered locomotive/shared/_main_app_head.html.haml (1.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695c6219d67e770000001"}} (0.6201ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/global_actions/show.html.haml (2.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"533695c6219d67e770000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.6ms) Rendered locomotive/shared/_main_app_header.html.haml (6.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (33.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (5.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (2.2ms) Completed 200 OK in 151.7ms (Views: 132.7ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:43:36 +0100 Served asset /locomotive.js - 200 OK (113ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:43:36 +0100 Served asset /locomotive.css - 200 OK (37ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:43:36 +0100 Served asset /locomotive/search_bar.js - 200 OK (6ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:43:36 +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-03-29 10:43:37 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:43:37 +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-03-29 10:43:37 +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-03-29 10:43:37 +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.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695c6219d67e770000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533695c6219d67e770000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"533695c6219d67e770000002"}, "$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.1230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c6219d67e770000002"}, "$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.5631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c6219d67e770000002"}, "$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.5119ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695c6219d67e770000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8540ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c6219d67e770000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (2.5361ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (5.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/custom_fields/_select_templates.html.haml (5.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/custom_fields/_form.html.haml (66.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c6219d67e770000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0140ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_types/_form.html.haml (90.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (2.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (117.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695c6219d67e770000001", :role=>:admin}}}} (0.6254ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533695c6219d67e770000001"}} (0.4437ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695c6219d67e770000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5739ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (8.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 155.3ms (Views: 141.7ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-03-29 10:43:37 +0100 Served asset /locomotive/form/input-sep.png - 200 OK (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.6797ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (3.4542ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4410ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.2569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7670ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5519ms) 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.1109ms) 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.0899ms) 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.0362ms) 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.5219ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533695c9219d67e770000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"93631250bfa618648c99d3ce83179bfb67b2a2a5", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"b6A5WmakAx7N3kskAHxM", "api_key"=>"81fee520dcc3da6ddaab62777a1f74c294ab1414", "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.1740ms) 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.8578ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695c9219d67e770000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:43:34 UTC, "updated_at"=>2014-03-29 09:43:37 UTC, "memberships"=>[{"_id"=>"533695c9219d67e770000022", "role"=>"admin", "account_id"=>"533695c9219d67e770000020"}]}] flags=[] (0.2713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c9219d67e770000021", "_id"=>{"$ne"=>"533695c9219d67e770000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e770000023", "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"=>"533695c9219d67e770000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000023"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"533695c9219d67e770000023"}, "$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"=>["533695c9219d67e770000023"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c9219d67e770000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695c9219d67e770000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2103ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c9219d67e770000021", "_id"=>{"$ne"=>"533695c9219d67e770000025"}, "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"=>nil, "site_id"=>"533695c9219d67e770000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6123ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e770000025", "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"=>"533695c9219d67e770000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2007ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000025"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3698ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e770000025"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c9219d67e770000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5682ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695c9219d67e770000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695c9219d67e770000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c9219d67e770000027", "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC, "entries_custom_fields"=>[{"_id"=>"533695c9219d67e770000027", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533695c9219d67e770000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533695c9219d67e770000028", "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", "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}}} flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c9219d67e770000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e770000026"]}} 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"=>"533695c9219d67e770000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5429ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e770000026"]}}} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c9219d67e770000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c9219d67e770000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c9219d67e770000026", "content_type_id"=>"533695c9219d67e770000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533695c9219d67e770000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c9219d67e770000026", "original_id"=>"533695c9219d67e770000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c9219d67e77000002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533695c9219d67e770000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c9219d67e770000026", "original_id"=>"533695c9219d67e770000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695c9219d67e77000002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e770000026"]}} 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_content_entries selector={"content_type_id"=>"533695c9219d67e770000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3922ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e770000026"]}}} (0.3929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e770000026"]}}} (0.2861ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e770000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4759ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695c9219d67e77000002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c9219d67e770000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c9219d67e770000026", "content_type_id"=>"533695c9219d67e770000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533695c9219d67e770000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533695c9219d67e770000026", "original_id"=>"533695c9219d67e77000002b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c9219d67e77000002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533695c9219d67e770000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c9219d67e770000026", "original_id"=>"533695c9219d67e77000002b", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1411ms) 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.9849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021", "_id"=>{"$ne"=>"533695c9219d67e77000002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533695c9219d67e770000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e77000002d", "parent_ids"=>["533695c9219d67e770000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e77000002d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e77000002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e77000002d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e77000002d", "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"=>"533695c9219d67e77000002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533695c9219d67e770000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e77000002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2239ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021", "_id"=>{"$ne"=>"533695c9219d67e77000002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c9219d67e770000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e77000002f", "parent_ids"=>["533695c9219d67e770000023"], "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"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e77000002f"]}}, "$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"=>"533695c9219d67e77000002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e77000002f"]}} 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.6268ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021", "_id"=>{"$ne"=>"533695c9219d67e770000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533695c9219d67e770000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e770000030", "parent_ids"=>["533695c9219d67e770000023"], "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"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000030"]}}, "$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"=>"533695c9219d67e770000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4630ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e770000030"]}} 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_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"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021", "_id"=>{"$ne"=>"533695c9219d67e770000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000023", "site_id"=>"533695c9219d67e770000021"}, "$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"=>"533695c9219d67e770000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e770000031", "parent_ids"=>["533695c9219d67e770000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533695c9219d67e770000021", "parent_id"=>"533695c9219d67e770000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.3631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000031"]}}, "$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"=>"533695c9219d67e770000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e770000031"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000031", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3033ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c9219d67e770000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533695c9219d67e770000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "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_sites selector={"$query"=>{"_id"=>"533695c9219d67e770000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5572ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533695c9219d67e770000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:43:37 UTC}} flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000023"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533695c9219d67e770000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533695c9219d67e770000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1500ms) 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.5710ms) 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.3319ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533695c9219d67e770000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:43:34 UTC, "updated_at"=>2014-03-29 09:43:37 UTC, "memberships"=>[{"_id"=>"533695c9219d67e770000034", "role"=>"admin", "account_id"=>"533695c9219d67e770000020"}]}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7150ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c9219d67e770000033", "_id"=>{"$ne"=>"533695c9219d67e770000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533695c9219d67e770000035", "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"=>"533695c9219d67e770000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000033", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000035"]}}, "$orderby"=>{"position"=>1}} 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"=>{"parent_id"=>"533695c9219d67e770000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5808ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e770000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000035", "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"=>"533695c9219d67e770000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533695c9219d67e770000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000035", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"533695c9219d67e770000033", "_id"=>{"$ne"=>"533695c9219d67e770000037"}, "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"=>{"parent_id"=>nil, "site_id"=>"533695c9219d67e770000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533695c9219d67e770000037", "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"=>"533695c9219d67e770000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000033", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533695c9219d67e770000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5360ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533695c9219d67e770000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533695c9219d67e770000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"533695c9219d67e770000033", "_id"=>{"$ne"=>"533695c9219d67e770000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9458ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533695c9219d67e770000033"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$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"=>"533695c9219d67e770000038", "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"=>"533695c9219d67e770000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC}] flags=[] (0.3102ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000033", "template_dependencies.en"=>{"$in"=>["533695c9219d67e770000038"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533695c9219d67e770000038"}, "$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"=>["533695c9219d67e770000038"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000038", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695c9219d67e770000039", "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=>"533695c9219d67e770000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533695c9219d67e770000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c9219d67e770000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533695c9219d67e77000003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533695c9219d67e770000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533695c9219d67e77000003b", "updated_at"=>2014-03-29 09:43:37 UTC, "created_at"=>2014-03-29 09:43:37 UTC, "entries_custom_fields"=>[{"_id"=>"533695c9219d67e77000003b", "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.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533695ca219d67e77000003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e77000003a"]}} 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"=>"533695c9219d67e77000003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5267ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533695c9219d67e77000003a"]}}} (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533695ca219d67e77000003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533695c9219d67e77000003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533695c9219d67e77000003a", "content_type_id"=>"533695c9219d67e77000003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533695c9219d67e770000033", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:43:38 UTC, "created_at"=>2014-03-29 09:43:38 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::ContentEntry533695c9219d67e77000003a", "original_id"=>"533695ca219d67e77000003c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533695ca219d67e77000003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533695c9219d67e770000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533695c9219d67e77000003a", "original_id"=>"533695ca219d67e77000003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3479ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:43:38 +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.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695c9219d67e770000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7932ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (6.7ms) Completed 200 OK in 13.3ms (Views: 8.8ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:43:38 +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.6130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533695c9219d67e770000020"]}}, "$orderby"=>{:_id=>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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4413ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695c9219d67e770000020"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:43:38 UTC, "updated_at"=>2014-03-29 09:43:38 UTC}} flags=[] (0.1237ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533695c9219d67e770000020"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:43:38 UTC, "current_sign_in_at"=>2014-03-29 09:43:38 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:43:38 UTC}} flags=[] (0.1078ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 8.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:43:38 +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.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695c9219d67e770000020"}, "$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"=>["533695c9219d67e770000020"]}} 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_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.0099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.4740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695c9219d67e770000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7477ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (10.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (28.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695c9219d67e770000020", :role=>:admin}}}} (0.5770ms) Rendered locomotive/shared/_main_app_head.html.haml (1.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (7.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533695c9219d67e770000020"}} (0.6211ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695c9219d67e770000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5639ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 68.5ms (Views: 50.0ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-03-29 10:43:38 +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.6390ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533695c9219d67e770000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533695c9219d67e770000020"]}} 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"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.0269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533695c9219d67e770000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8729ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (15.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_assets/_picker.html.haml (8.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/theme_assets/_picker.html.haml (4.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_editable_elements.html.haml (6.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533695c9219d67e770000021"}, "$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.5020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533695c9219d67e770000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9379ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (6.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_form.html.haml (122.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (147.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"533695c9219d67e770000020", :role=>:admin}}}} (0.5722ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (5.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533695c9219d67e770000020"}} (0.4253ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"533695c9219d67e770000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5503ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (7.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 183.0ms (Views: 169.7ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-03-29 10:43:38 +0100 Served asset /locomotive/jquery/images/ui-icons_222222_256x240.png - 200 OK (15ms) 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.7880ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.9451ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6239ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.8750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.7911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6528ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.8020ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (14.3931ms) 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.7710ms) 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=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0550ms) 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.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369925219d677261000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d3a30ba05682cda5a4d4e59ec1fe93bc9fb518d7", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"sz3Bjs4toiyza3NzHAyG", "api_key"=>"fbee81bd5d78dc8a3294ee419c8cee7bf720e8d8", "updated_at"=>2014-03-29 09:57:57 UTC, "created_at"=>2014-03-29 09:57:57 UTC}] flags=[] (0.2911ms) 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} (15.5110ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369925219d677261000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:57:50 UTC, "updated_at"=>2014-03-29 09:57:57 UTC, "memberships"=>[{"_id"=>"53369925219d677261000003", "role"=>"admin", "account_id"=>"53369925219d677261000001"}]}] flags=[] (0.2522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369925219d677261000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.1141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369925219d677261000002", "_id"=>{"$ne"=>"53369926219d677261000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4332ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369926219d677261000004", "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"=>"53369925219d677261000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:57:58 UTC, "created_at"=>2014-03-29 09:57:58 UTC}] flags=[] (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369926219d677261000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369926219d677261000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369925219d677261000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.2820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369925219d677261000002", "_id"=>{"$ne"=>"53369926219d677261000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369925219d677261000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369926219d677261000005", "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"=>"53369925219d677261000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:57:58 UTC, "created_at"=>2014-03-29 09:57:58 UTC}] flags=[] (0.4809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369926219d677261000005"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53369926219d677261000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9699ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369926219d677261000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369925219d677261000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8142ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369926219d677261000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369925219d677261000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369927219d677261000007", "updated_at"=>2014-03-29 09:57:59 UTC, "created_at"=>2014-03-29 09:57:59 UTC, "entries_custom_fields"=>[{"_id"=>"53369927219d677261000007", "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.3541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369926219d677261000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369927219d677261000008", "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", "updated_at"=>2014-03-29 09:57:59 UTC, "created_at"=>2014-03-29 09:57:59 UTC}}} flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369927219d677261000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369926219d677261000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369926219d677261000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5031ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369926219d677261000006"]}}} (0.4461ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369927219d677261000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369926219d677261000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369926219d677261000006", "content_type_id"=>"53369926219d677261000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369925219d677261000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:57:59 UTC, "created_at"=>2014-03-29 09:57:59 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369927219d67726100000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369926219d677261000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53369926219d677261000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369926219d677261000006"]}}} (0.4349ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369926219d677261000006"]}}} (0.3250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369926219d677261000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5312ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369927219d67726100000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369926219d677261000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369926219d677261000006", "content_type_id"=>"53369926219d677261000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369925219d677261000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:00 UTC, "created_at"=>2014-03-29 09:58:00 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.7222ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002", "_id"=>{"$ne"=>"53369928219d67726100000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369926219d677261000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8318ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369928219d67726100000b", "parent_ids"=>["53369926219d677261000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:00 UTC, "created_at"=>2014-03-29 09:58:00 UTC}] flags=[] (0.2959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369928219d67726100000b"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369928219d67726100000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4530ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369928219d67726100000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002", "_id"=>{"$ne"=>"53369929219d67726100000c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002"}, "$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"=>"53369926219d677261000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369929219d67726100000c", "parent_ids"=>["53369926219d677261000004"], "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"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:01 UTC, "created_at"=>2014-03-29 09:58:01 UTC}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369929219d67726100000c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369929219d67726100000c"}, "$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"=>["53369929219d67726100000c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1488ms) 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.6001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002", "_id"=>{"$ne"=>"53369929219d67726100000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369926219d677261000004"}]}]}, "$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"=>"53369929219d67726100000d", "parent_ids"=>["53369926219d677261000004"], "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"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:01 UTC, "created_at"=>2014-03-29 09:58:01 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369929219d67726100000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369929219d67726100000d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3383ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369929219d67726100000d"]}} 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.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002", "_id"=>{"$ne"=>"53369929219d67726100000e"}, "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"=>"53369926219d677261000004", "site_id"=>"53369925219d677261000002"}, "$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"=>"53369926219d677261000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"53369929219d67726100000e", "parent_ids"=>["53369926219d677261000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369925219d677261000002", "parent_id"=>"53369926219d677261000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:01 UTC, "created_at"=>2014-03-29 09:58:01 UTC}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369929219d67726100000e"]}}, "$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"=>"53369929219d67726100000e"}, "$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"=>["53369929219d67726100000e"]}} 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"=>"53369925219d677261000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369925219d677261000002"}, "$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"=>"53369926219d677261000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:02 UTC}} flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002", "template_dependencies.en"=>{"$in"=>["53369926219d677261000004"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6659ms) 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.5870ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336992a219d67726100000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:57:50 UTC, "updated_at"=>2014-03-29 09:58:02 UTC, "memberships"=>[{"_id"=>"5336992a219d677261000010", "role"=>"admin", "account_id"=>"53369925219d677261000001"}]}] flags=[] (0.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336992a219d67726100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (8.3489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336992a219d67726100000f", "_id"=>{"$ne"=>"5336992a219d677261000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.6901ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336992a219d677261000011", "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"=>"5336992a219d67726100000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:03 UTC, "created_at"=>2014-03-29 09:58:03 UTC}] flags=[] (0.5488ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336992a219d67726100000f", "template_dependencies.en"=>{"$in"=>["5336992a219d677261000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"5336992a219d677261000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7858ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336992a219d677261000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336992a219d67726100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4787ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336992a219d67726100000f", "_id"=>{"$ne"=>"5336992b219d677261000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336992a219d67726100000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4528ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336992b219d677261000012", "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"=>"5336992a219d67726100000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:03 UTC, "created_at"=>2014-03-29 09:58:03 UTC}] flags=[] (0.1912ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336992a219d67726100000f", "template_dependencies.en"=>{"$in"=>["5336992b219d677261000012"]}}, "$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"=>"5336992b219d677261000012"}, "$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"=>["5336992b219d677261000012"]}} 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"=>"5336992a219d67726100000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336992a219d67726100000f", "_id"=>{"$ne"=>"5336992b219d677261000013"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336992a219d67726100000f"}, "$orderby"=>{"position"=>-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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4287ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336992b219d677261000013", "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"=>"5336992a219d67726100000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:03 UTC, "created_at"=>2014-03-29 09:58:03 UTC}] flags=[] (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336992a219d67726100000f", "template_dependencies.en"=>{"$in"=>["5336992b219d677261000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5782ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336992b219d677261000013"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["5336992b219d677261000013"]}} 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_content_types selector={"site_id"=>"5336992a219d67726100000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5157ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336992c219d677261000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336992a219d67726100000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336992c219d677261000015", "updated_at"=>2014-03-29 09:58:04 UTC, "created_at"=>2014-03-29 09:58:04 UTC, "entries_custom_fields"=>[{"_id"=>"5336992c219d677261000015", "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.5572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336992c219d677261000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336992c219d677261000014"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5863ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336992c219d677261000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336992c219d677261000014"]}}} (0.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336992c219d677261000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336992c219d677261000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336992c219d677261000014", "content_type_id"=>"5336992c219d677261000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336992a219d67726100000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:04 UTC, "created_at"=>2014-03-29 09:58:04 UTC}] flags=[] (0.2172ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:58: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 COMMAND database=admin command={:ismaster=>1} (6.9430ms) 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.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369925219d677261000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4599ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (19.9ms) Completed 200 OK in 49.4ms (Views: 37.1ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:58:07 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (14ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 10:58:07 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (19ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 10:58:07 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:58:07 +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.6859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369925219d677261000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369925219d677261000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:58:07 UTC, "updated_at"=>2014-03-29 09:58:07 UTC}} flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369925219d677261000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:58:07 UTC, "current_sign_in_at"=>2014-03-29 09:58:07 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:58:07 UTC}} flags=[] (0.1729ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 23.2ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:58:07 +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.6232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369925219d677261000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369925219d677261000001"]}} 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"=>"53369925219d677261000002"}, "$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.1001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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.7312ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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.8130ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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_entries selector={"$query"=>{"content_type_id"=>"53369926219d677261000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.1752ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (40.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (3.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (15.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (80.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369925219d677261000001", :role=>:admin}}}} (1.2379ms) Rendered locomotive/shared/_main_app_head.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (21.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369925219d677261000001"}} (1.4131ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369925219d677261000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1439ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (7.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (7.2ms) Rendered locomotive/shared/_main_app_header.html.haml (10.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (43.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (5.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (3.4ms) Completed 200 OK in 201.2ms (Views: 181.7ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:58:07 +0100 Served asset /locomotive.js - 200 OK (201ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:58:07 +0100 Served asset /locomotive.css - 200 OK (67ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:58:07 +0100 Served asset /locomotive/search_bar.js - 200 OK (16ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:58:07 +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-03-29 10:58:07 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 10:58:07 +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-03-29 10:58:07 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:58:07 +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.7939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369925219d677261000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["53369925219d677261000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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.4169ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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.3659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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.9940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369925219d677261000002"}, "$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.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369926219d677261000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (9.6042ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (33.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (6.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (12.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (52.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369925219d677261000001", :role=>:admin}}}} (1.2219ms) Rendered locomotive/shared/_main_app_head.html.haml (1.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (9.5ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369925219d677261000001"}} (0.6218ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369925219d677261000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7820ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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 (1.7ms) Rendered locomotive/shared/_main_app_header.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (18.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 105.5ms (Views: 86.3ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:58:08 +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.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369925219d677261000001"}, "$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"=>["53369925219d677261000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5002ms) Completed 200 OK in 980.6ms (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.8521ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3568ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.7447ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0149ms) 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.4277ms) 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.7830ms) 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.3710ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369932219d677261000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"de70546954b70ed2894a961a001bb5b431cfdb0b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"BXpcogadmyMnsXGJkbMo", "api_key"=>"48bd138f9510b03eb09adaf32f9b1791b3b1a0dd", "updated_at"=>2014-03-29 09:58:10 UTC, "created_at"=>2014-03-29 09:58:10 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.7911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369932219d677261000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:57:50 UTC, "updated_at"=>2014-03-29 09:58:10 UTC, "memberships"=>[{"_id"=>"53369932219d677261000019", "role"=>"admin", "account_id"=>"53369932219d677261000017"}]}] flags=[] (0.2830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369932219d677261000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369932219d677261000018", "_id"=>{"$ne"=>"53369932219d67726100001a"}, "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"=>"53369932219d67726100001a", "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"=>"53369932219d677261000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:10 UTC, "created_at"=>2014-03-29 09:58:10 UTC}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369932219d67726100001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4568ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369932219d67726100001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369932219d67726100001a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369932219d677261000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369932219d677261000018", "_id"=>{"$ne"=>"53369933219d67726100001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53369932219d677261000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369933219d67726100001b", "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"=>"53369932219d677261000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:11 UTC, "created_at"=>2014-03-29 09:58:11 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369933219d67726100001b"]}}, "$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"=>"53369933219d67726100001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369933219d67726100001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369932219d677261000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369933219d67726100001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369932219d677261000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369933219d67726100001d", "updated_at"=>2014-03-29 09:58:11 UTC, "created_at"=>2014-03-29 09:58:11 UTC, "entries_custom_fields"=>[{"_id"=>"53369933219d67726100001d", "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.3419ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369933219d67726100001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369933219d67726100001e", "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", "updated_at"=>2014-03-29 09:58:11 UTC, "created_at"=>2014-03-29 09:58:11 UTC}}} flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369933219d67726100001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369933219d67726100001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4799ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}}} (0.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369933219d67726100001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369933219d67726100001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369933219d67726100001c", "content_type_id"=>"53369933219d67726100001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369932219d677261000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:11 UTC, "created_at"=>2014-03-29 09:58:11 UTC}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369933219d677261000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369933219d67726100001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}}} (0.4330ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}}} (0.3219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369933219d677261000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369933219d67726100001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369933219d67726100001c", "content_type_id"=>"53369933219d67726100001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369932219d677261000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:11 UTC, "created_at"=>2014-03-29 09:58:11 UTC}] flags=[] (0.2887ms) 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.7608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018", "_id"=>{"$ne"=>"53369934219d677261000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369932219d67726100001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7539ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369934219d677261000021", "parent_ids"=>["53369932219d67726100001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:12 UTC, "created_at"=>2014-03-29 09:58:12 UTC}] flags=[] (0.2699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369934219d677261000021"]}}, "$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"=>"53369934219d677261000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5803ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369934219d677261000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1206ms) 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.7658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018", "_id"=>{"$ne"=>"53369935219d677261000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369932219d67726100001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"53369935219d677261000022", "parent_ids"=>["53369932219d67726100001a"], "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"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:13 UTC, "created_at"=>2014-03-29 09:58:13 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369935219d677261000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369935219d677261000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369935219d677261000022"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "$or"=>[{"slug.en"=>"seems-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"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018", "_id"=>{"$ne"=>"53369935219d677261000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7572ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369932219d67726100001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5858ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369935219d677261000023", "parent_ids"=>["53369932219d67726100001a"], "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"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:13 UTC, "created_at"=>2014-03-29 09:58:13 UTC}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369935219d677261000023"]}}, "$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"=>"53369935219d677261000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3440ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369935219d677261000023"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018", "_id"=>{"$ne"=>"53369935219d677261000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369932219d67726100001a", "site_id"=>"53369932219d677261000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369932219d67726100001a"}]}]}, "$orderby"=>{"depth"=>1}} 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=locomotive_pages documents=[{"_id"=>"53369935219d677261000024", "parent_ids"=>["53369932219d67726100001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369932219d677261000018", "parent_id"=>"53369932219d67726100001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:13 UTC, "created_at"=>2014-03-29 09:58:13 UTC}] flags=[] (0.3479ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369935219d677261000024"]}}, "$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"=>"53369935219d677261000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369935219d677261000024"]}} 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"=>{"site_id"=>"53369932219d677261000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369932219d677261000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369932219d67726100001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:14 UTC}} flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "template_dependencies.en"=>{"$in"=>["53369932219d67726100001a"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7629ms) 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.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369937219d677261000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:57:50 UTC, "updated_at"=>2014-03-29 09:58:15 UTC, "memberships"=>[{"_id"=>"53369937219d677261000026", "role"=>"admin", "account_id"=>"53369932219d677261000017"}]}] flags=[] (0.3891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369937219d677261000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369937219d677261000025", "_id"=>{"$ne"=>"53369937219d677261000027"}, "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"=>"53369937219d677261000027", "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"=>"53369937219d677261000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:15 UTC, "created_at"=>2014-03-29 09:58:15 UTC}] flags=[] (0.2391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369937219d677261000025", "template_dependencies.en"=>{"$in"=>["53369937219d677261000027"]}}, "$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"=>"53369937219d677261000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369937219d677261000027"]}} 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"=>"53369937219d677261000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369937219d677261000025", "_id"=>{"$ne"=>"53369937219d677261000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369937219d677261000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369937219d677261000028", "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"=>"53369937219d677261000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:15 UTC, "created_at"=>2014-03-29 09:58:15 UTC}] flags=[] (0.2861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369937219d677261000025", "template_dependencies.en"=>{"$in"=>["53369937219d677261000028"]}}, "$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"=>"53369937219d677261000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369937219d677261000028"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369937219d677261000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369937219d677261000025", "_id"=>{"$ne"=>"53369937219d677261000029"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0512ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369937219d677261000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6227ms) 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.3560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369937219d677261000029", "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"=>"53369937219d677261000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:15 UTC, "created_at"=>2014-03-29 09:58:15 UTC}] flags=[] (0.2720ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369937219d677261000025", "template_dependencies.en"=>{"$in"=>["53369937219d677261000029"]}}, "$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"=>"53369937219d677261000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369937219d677261000029"]}} 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"=>"53369937219d677261000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369938219d67726100002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369937219d677261000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369938219d67726100002b", "updated_at"=>2014-03-29 09:58:16 UTC, "created_at"=>2014-03-29 09:58:16 UTC, "entries_custom_fields"=>[{"_id"=>"53369938219d67726100002b", "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.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369938219d67726100002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369938219d67726100002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5393ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369938219d67726100002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4396ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369938219d67726100002a"]}}} (0.5817ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369938219d67726100002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369938219d67726100002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369938219d67726100002a", "content_type_id"=>"53369938219d67726100002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369937219d677261000025", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:16 UTC, "created_at"=>2014-03-29 09:58:16 UTC}] flags=[] (0.2623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369933219d67726100001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369933219d677261000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1578ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369933219d67726100001c"} update={"$set"=>{"updated_at"=>2014-03-29 09:58:17 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369933219d67726100001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1752ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) Rendered text template (0.0ms) Completed 200 OK in 11.0ms (Views: 4.7ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 10:58: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.7439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "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.7579ms) Rendered text template (0.0ms) Completed 200 OK in 641.3ms (Views: 0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369933219d67726100001c"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369933219d67726100001c", "updated_at"=>{"$lt"=>2014-03-29 09:58:17 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53369933219d67726100001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369932219d677261000018"}, "$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_content_types selector={"$query"=>{"_id"=>"53369933219d67726100001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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={"_id"=>"53369933219d67726100001f"} update={"$set"=>{"updated_at"=>2014-03-29 09:58:18 UTC}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369932219d677261000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"53369933219d67726100001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4720ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53369933219d677261000020"} update={"$set"=>{"updated_at"=>2014-03-29 09:58:18 UTC}} flags=[] (0.3688ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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.6220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7589ms) Rendered text template (0.0ms) Completed 200 OK in 6.5ms (Views: 0.6ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 10:58: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.8767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369932219d677261000018", "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.6549ms) Rendered text template (0.0ms) Completed 200 OK in 568.1ms (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.6080ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3778ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3540ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2071ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8399ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.9043ms) 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.4408ms) 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.9699ms) 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.3588ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336993c219d67726100002d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"22dbb3e547469eaed000c70c3a61bed1c1e15af2", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"iTgxxXLqXuybmwm83q5m", "api_key"=>"22d65f10ac21d9da78a82c58fd54830ce2b91f5b", "updated_at"=>2014-03-29 09:58:20 UTC, "created_at"=>2014-03-29 09:58:20 UTC}] flags=[] (0.1442ms) 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.0481ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336993c219d67726100002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:57:50 UTC, "updated_at"=>2014-03-29 09:58:20 UTC, "memberships"=>[{"_id"=>"5336993c219d67726100002f", "role"=>"admin", "account_id"=>"5336993c219d67726100002d"}]}] flags=[] (0.4098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336993c219d67726100002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336993c219d67726100002e", "_id"=>{"$ne"=>"5336993c219d677261000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6371ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336993c219d677261000030", "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"=>"5336993c219d67726100002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:20 UTC, "created_at"=>2014-03-29 09:58:20 UTC}] flags=[] (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993c219d677261000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336993c219d677261000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5708ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336993c219d677261000030"]}} 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=locomotive_pages selector={"site_id"=>"5336993c219d67726100002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336993c219d67726100002e", "_id"=>{"$ne"=>"5336993d219d677261000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336993c219d67726100002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7498ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336993d219d677261000031", "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"=>"5336993c219d67726100002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:21 UTC, "created_at"=>2014-03-29 09:58:21 UTC}] flags=[] (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993d219d677261000031"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336993d219d677261000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4351ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336993d219d677261000031"]}} 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_content_types selector={"site_id"=>"5336993c219d67726100002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9880ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336993d219d677261000032", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336993c219d67726100002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336993d219d677261000033", "updated_at"=>2014-03-29 09:58:21 UTC, "created_at"=>2014-03-29 09:58:21 UTC, "entries_custom_fields"=>[{"_id"=>"5336993d219d677261000033", "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.3150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336993d219d677261000032"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336993d219d677261000034", "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", "updated_at"=>2014-03-29 09:58:21 UTC, "created_at"=>2014-03-29 09:58:21 UTC}}} flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336993d219d677261000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336993d219d677261000032"]}} 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"=>"5336993d219d677261000032", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7241ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336993d219d677261000032"]}}} (0.5190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336993d219d677261000035", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336993d219d677261000032", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336993d219d677261000032", "content_type_id"=>"5336993d219d677261000032", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336993c219d67726100002e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:21 UTC, "created_at"=>2014-03-29 09:58:21 UTC}] flags=[] (0.2036ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336993e219d677261000036"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336993d219d677261000032"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336993d219d677261000032", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5360ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336993d219d677261000032"]}}} (0.4458ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336993d219d677261000032"]}}} (0.3078ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336993d219d677261000032"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336993e219d677261000036", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336993d219d677261000032", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336993d219d677261000032", "content_type_id"=>"5336993d219d677261000032", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336993c219d67726100002e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:22 UTC, "created_at"=>2014-03-29 09:58:22 UTC}] flags=[] (0.2260ms) 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.7434ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "$or"=>[{"slug.en"=>"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"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e", "_id"=>{"$ne"=>"5336993e219d677261000037"}, "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"=>{"$and"=>[{"$or"=>[{"_id"=>"5336993c219d677261000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6351ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336993e219d677261000037", "parent_ids"=>["5336993c219d677261000030"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:22 UTC, "created_at"=>2014-03-29 09:58:22 UTC}] flags=[] (0.2761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993e219d677261000037"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3893ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336993e219d677261000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5882ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336993e219d677261000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.7660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e", "_id"=>{"$ne"=>"5336993f219d677261000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336993c219d677261000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6912ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336993f219d677261000038", "parent_ids"=>["5336993c219d677261000030"], "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"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:23 UTC, "created_at"=>2014-03-29 09:58:23 UTC}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993f219d677261000038"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5336993f219d677261000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4737ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336993f219d677261000038"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1209ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e", "_id"=>{"$ne"=>"5336993f219d677261000039"}, "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"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336993c219d677261000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7150ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336993f219d677261000039", "parent_ids"=>["5336993c219d677261000030"], "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"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:23 UTC, "created_at"=>2014-03-29 09:58:23 UTC}] flags=[] (0.2167ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993f219d677261000039"]}}, "$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"=>"5336993f219d677261000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3848ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336993f219d677261000039"]}} 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"=>{"slug.en"=>"index"}, "$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={"site_id"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e", "_id"=>{"$ne"=>"5336993f219d67726100003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336993c219d677261000030", "site_id"=>"5336993c219d67726100002e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336993c219d677261000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336993f219d67726100003a", "parent_ids"=>["5336993c219d677261000030"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336993c219d67726100002e", "parent_id"=>"5336993c219d677261000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:23 UTC, "created_at"=>2014-03-29 09:58:23 UTC}] flags=[] (0.3803ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993f219d67726100003a"]}}, "$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"=>"5336993f219d67726100003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336993f219d67726100003a"]}} 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"=>{"site_id"=>"5336993c219d67726100002e", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"5336993c219d67726100002e"}, "$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"=>"5336993c219d677261000030"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:24 UTC}} flags=[] (0.1931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "template_dependencies.en"=>{"$in"=>["5336993c219d677261000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3951ms) 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_sites selector={"subdomain"=>"test2"} 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_sites documents=[{"_id"=>"53369941219d67726100003b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:57:50 UTC, "updated_at"=>2014-03-29 09:58:25 UTC, "memberships"=>[{"_id"=>"53369941219d67726100003c", "role"=>"admin", "account_id"=>"5336993c219d67726100002d"}]}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369941219d67726100003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"53369941219d67726100003b", "_id"=>{"$ne"=>"53369941219d67726100003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369941219d67726100003d", "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"=>"53369941219d67726100003b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:25 UTC, "created_at"=>2014-03-29 09:58:25 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369941219d67726100003b", "template_dependencies.en"=>{"$in"=>["53369941219d67726100003d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369941219d67726100003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369941219d67726100003d"]}} 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"=>"53369941219d67726100003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369941219d67726100003b", "_id"=>{"$ne"=>"53369942219d67726100003e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369941219d67726100003b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369942219d67726100003e", "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"=>"53369941219d67726100003b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:26 UTC, "created_at"=>2014-03-29 09:58:26 UTC}] flags=[] (0.2542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369941219d67726100003b", "template_dependencies.en"=>{"$in"=>["53369942219d67726100003e"]}}, "$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"=>"53369942219d67726100003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4501ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369942219d67726100003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1371ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369941219d67726100003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369941219d67726100003b", "_id"=>{"$ne"=>"53369942219d67726100003f"}, "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"=>nil, "site_id"=>"53369941219d67726100003b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5944ms) 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.4332ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369942219d67726100003f", "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"=>"53369941219d67726100003b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:26 UTC, "created_at"=>2014-03-29 09:58:26 UTC}] flags=[] (0.4122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369941219d67726100003b", "template_dependencies.en"=>{"$in"=>["53369942219d67726100003f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369942219d67726100003f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3948ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369942219d67726100003f"]}} 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_content_types selector={"site_id"=>"53369941219d67726100003b", "slug"=>"examples"} 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"=>"53369942219d677261000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369941219d67726100003b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369942219d677261000041", "updated_at"=>2014-03-29 09:58:26 UTC, "created_at"=>2014-03-29 09:58:26 UTC, "entries_custom_fields"=>[{"_id"=>"53369942219d677261000041", "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.3819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369942219d677261000042"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369942219d677261000040"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5472ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369942219d677261000040", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4671ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369942219d677261000040"]}}} (0.4003ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369942219d677261000042", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369942219d677261000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369942219d677261000040", "content_type_id"=>"53369942219d677261000040", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369941219d67726100003b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:26 UTC, "created_at"=>2014-03-29 09:58:26 UTC}] flags=[] (0.1669ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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.6511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6406ms) Rendered text template (0.0ms) Completed 200 OK in 5.8ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 10:58:27 +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.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "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.6208ms) Rendered text template (0.0ms) Completed 200 OK in 570.2ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 10:58:28 +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.5960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "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.6559ms) Rendered text template (0.0ms) Completed 200 OK in 5.1ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) Rendered text template (0.0ms) Completed 200 OK in 4.9ms (Views: 0.5ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-29 10:58:28 +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.7291ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336993c219d67726100002e", "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.6237ms) Rendered text template (0.0ms) Completed 200 OK in 557.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.6630ms) 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.3390ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8929ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0228ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8452ms) 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.5770ms) 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.1130ms) 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.1228ms) 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 (6.3879ms) 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.5560ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"5336994c219d67df98000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"bf7355aff780045bae466c1b8ff2f7459df1dd9f", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"3sNz4yp7qJEFLWnQuQtn", "api_key"=>"0191e548717438bc26666c7fd7112d773119e121", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 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.9210ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336994c219d67df98000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:58:35 UTC, "updated_at"=>2014-03-29 09:58:36 UTC, "memberships"=>[{"_id"=>"5336994c219d67df98000003", "role"=>"admin", "account_id"=>"5336994c219d67df98000001"}]}] flags=[] (0.2170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994c219d67df98000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994c219d67df98000002", "_id"=>{"$ne"=>"5336994c219d67df98000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994c219d67df98000004", "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"=>"5336994c219d67df98000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.4129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994c219d67df98000004"}, "$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"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994c219d67df98000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7591ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df98000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336994c219d67df98000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.4859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994c219d67df98000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994c219d67df98000002", "_id"=>{"$ne"=>"5336994c219d67df98000006"}, "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"=>"5336994c219d67df98000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4458ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994c219d67df98000006", "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"=>"5336994c219d67df98000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000006"]}}, "$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"=>"5336994c219d67df98000006"}, "$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"=>["5336994c219d67df98000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336994c219d67df98000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336994c219d67df98000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336994c219d67df98000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336994c219d67df98000008", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC, "entries_custom_fields"=>[{"_id"=>"5336994c219d67df98000008", "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.2370ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336994c219d67df98000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336994c219d67df98000009", "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", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}}} flags=[] (0.2201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336994c219d67df9800000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df98000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336994c219d67df98000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5522ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df98000007"]}}} (0.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336994c219d67df9800000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336994c219d67df98000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336994c219d67df98000007", "content_type_id"=>"5336994c219d67df98000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336994c219d67df98000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.2999ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336994c219d67df98000007", "original_id"=>"5336994c219d67df9800000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df9800000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5336994c219d67df98000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336994c219d67df98000007", "original_id"=>"5336994c219d67df9800000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336994c219d67df9800000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df98000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336994c219d67df98000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3841ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df98000007"]}}} (0.4017ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df98000007"]}}} (0.2990ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df98000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336994c219d67df9800000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336994c219d67df98000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336994c219d67df98000007", "content_type_id"=>"5336994c219d67df98000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336994c219d67df98000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 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::ContentEntry5336994c219d67df98000007", "original_id"=>"5336994c219d67df9800000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df9800000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5336994c219d67df98000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336994c219d67df98000007", "original_id"=>"5336994c219d67df9800000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1979ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002", "_id"=>{"$ne"=>"5336994c219d67df9800000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994c219d67df98000004"}]}]}, "$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"=>"5336994c219d67df9800000e", "parent_ids"=>["5336994c219d67df98000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df9800000e"]}}, "$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"=>"5336994c219d67df9800000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994c219d67df9800000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df9800000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df9800000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5336994c219d67df98000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df9800000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2079ms) 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"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002", "_id"=>{"$ne"=>"5336994c219d67df98000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002"}, "$orderby"=>{"position"=>-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"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994c219d67df98000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7544ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994c219d67df98000010", "parent_ids"=>["5336994c219d67df98000004"], "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"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000010"]}}, "$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"=>"5336994c219d67df98000010"}, "$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"=>["5336994c219d67df98000010"]}} 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.5910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002", "_id"=>{"$ne"=>"5336994c219d67df98000011"}, "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"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994c219d67df98000004"}]}]}, "$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"=>"5336994c219d67df98000011", "parent_ids"=>["5336994c219d67df98000004"], "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"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000011"]}}, "$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"=>"5336994c219d67df98000011"}, "$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"=>["5336994c219d67df98000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2000ms) 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"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002", "_id"=>{"$ne"=>"5336994c219d67df98000012"}, "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"=>"5336994c219d67df98000004", "site_id"=>"5336994c219d67df98000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994c219d67df98000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994c219d67df98000012", "parent_ids"=>["5336994c219d67df98000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336994c219d67df98000002", "parent_id"=>"5336994c219d67df98000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000012"]}}, "$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"=>"5336994c219d67df98000012"}, "$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"=>["5336994c219d67df98000012"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3822ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df98000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5336994c219d67df98000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5434ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"5336994c219d67df98000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3519ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336994c219d67df98000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:36 UTC}} flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000004"]}}, "$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"=>"5336994c219d67df98000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336994c219d67df98000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5336994c219d67df98000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1690ms) 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.5498ms) 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.3669ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336994c219d67df98000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:58:35 UTC, "updated_at"=>2014-03-29 09:58:36 UTC, "memberships"=>[{"_id"=>"5336994c219d67df98000015", "role"=>"admin", "account_id"=>"5336994c219d67df98000001"}]}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994c219d67df98000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994c219d67df98000014", "_id"=>{"$ne"=>"5336994c219d67df98000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4582ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994c219d67df98000016", "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"=>"5336994c219d67df98000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000014", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000016"]}}, "$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"=>"5336994c219d67df98000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4411ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994c219d67df98000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000016", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df98000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336994c219d67df98000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000016", "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"=>"5336994c219d67df98000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5336994c219d67df98000014", "_id"=>{"$ne"=>"5336994c219d67df98000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"5336994c219d67df98000014"}, "$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"=>"5336994c219d67df98000018", "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"=>"5336994c219d67df98000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000014", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994c219d67df98000018"}, "$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"=>["5336994c219d67df98000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2530ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994c219d67df98000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994c219d67df98000014", "_id"=>{"$ne"=>"5336994c219d67df98000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7763ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994c219d67df98000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994c219d67df98000019", "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"=>"5336994c219d67df98000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC}] flags=[] (0.1848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000014", "template_dependencies.en"=>{"$in"=>["5336994c219d67df98000019"]}}, "$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"=>"5336994c219d67df98000019"}, "$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"=>["5336994c219d67df98000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994c219d67df9800001a", "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=>"5336994c219d67df98000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994c219d67df98000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336994c219d67df98000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5679ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336994c219d67df9800001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336994c219d67df98000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336994c219d67df9800001c", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 UTC, "entries_custom_fields"=>[{"_id"=>"5336994c219d67df9800001c", "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.2513ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336994c219d67df9800001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df9800001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5901ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336994c219d67df9800001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5519ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994c219d67df9800001b"]}}} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336994c219d67df9800001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336994c219d67df9800001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336994c219d67df9800001b", "content_type_id"=>"5336994c219d67df9800001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336994c219d67df98000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:36 UTC, "created_at"=>2014-03-29 09:58:36 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::ContentEntry5336994c219d67df9800001b", "original_id"=>"5336994c219d67df9800001d", "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"=>"5336994c219d67df9800001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5336994c219d67df98000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336994c219d67df9800001b", "original_id"=>"5336994c219d67df9800001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1960ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:58:38 +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.8411ms) 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.6418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336994c219d67df98000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4261ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.9ms) Completed 200 OK in 39.1ms (Views: 32.7ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:58:38 +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-03-29 10:58:38 +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-03-29 10:58:38 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:58:38 +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.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["5336994c219d67df98000001"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336994c219d67df98000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:58:38 UTC, "updated_at"=>2014-03-29 09:58:38 UTC}} flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"5336994c219d67df98000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:58:38 UTC, "current_sign_in_at"=>2014-03-29 09:58:38 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:58:38 UTC}} flags=[] (0.1948ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:58:38 +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.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336994c219d67df98000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336994c219d67df98000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5043ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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} (5.7199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.4110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.7219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336994c219d67df98000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7892ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (11.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336994c219d67df98000001", :role=>:admin}}}} (0.7360ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"5336994c219d67df98000001"}} (0.5250ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336994c219d67df98000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7720ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (4.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (5.4ms) Rendered locomotive/shared/_main_app_header.html.haml (7.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (31.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 140.6ms (Views: 116.0ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:58:38 +0100 Served asset /locomotive.css - 200 OK (38ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:58:38 +0100 Served asset /locomotive.js - 200 OK (143ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:58:38 +0100 Served asset /locomotive/search_bar.css - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:58:38 +0100 Served asset /locomotive/search_bar.js - 200 OK (8ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 10:58:38 +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-03-29 10:58:38 +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-03-29 10:58:38 +0100 Served asset /locomotive/nocoffee.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:58:38 +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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336994c219d67df98000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336994c219d67df98000001"]}} 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_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.7309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.2670ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.5281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"5336994c219d67df98000002"}, "$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.4292ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"5336994c219d67df98000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7260ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (14.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (4.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (7.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"5336994c219d67df98000001", :role=>:admin}}}} (0.5622ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336994c219d67df98000001"}} (0.5238ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"5336994c219d67df98000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0259ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (3.1ms) 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.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (11.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 66.1ms (Views: 49.2ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 10:58:39 +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.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"5336994c219d67df98000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["5336994c219d67df98000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) 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"=>"5336994c219d67df98000002", "locale"=>"en"}} (0.6220ms) Completed 200 OK in 18.1ms (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.1151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (4.0650ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.0268ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.5271ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8142ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6163ms) 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.4833ms) 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.1049ms) 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.0892ms) 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.0500ms) 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"=>"5336994f219d67df9800001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"1331dd41b9dfb37078fcee5d72405ecda70e00c2", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"1jENbSZXoyWwhpE3zLYh", "api_key"=>"ef5ef6ef54db495f7f66a60a8f3de7fa69d620d5", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.1678ms) 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.7029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336994f219d67df98000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:58:35 UTC, "updated_at"=>2014-03-29 09:58:39 UTC, "memberships"=>[{"_id"=>"5336994f219d67df98000021", "role"=>"admin", "account_id"=>"5336994f219d67df9800001f"}]}] flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994f219d67df98000020", "_id"=>{"$ne"=>"5336994f219d67df98000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df98000022", "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"=>"5336994f219d67df98000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3660ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994f219d67df98000022"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4301ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994f219d67df98000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336994f219d67df98000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1812ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"5336994f219d67df98000020", "_id"=>{"$ne"=>"5336994f219d67df98000024"}, "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"=>"5336994f219d67df98000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df98000024", "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"=>"5336994f219d67df98000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.2918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000024"}, "$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"=>["5336994f219d67df98000024"]}} 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_content_types selector={"site_id"=>"5336994f219d67df98000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4752ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336994f219d67df98000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336994f219d67df98000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336994f219d67df98000026", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC, "entries_custom_fields"=>[{"_id"=>"5336994f219d67df98000026", "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.2239ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"5336994f219d67df98000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"5336994f219d67df98000027", "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", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}}} flags=[] (0.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336994f219d67df98000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"5336994f219d67df98000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000025"]}}} (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336994f219d67df98000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336994f219d67df98000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336994f219d67df98000025", "content_type_id"=>"5336994f219d67df98000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"5336994f219d67df98000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.3409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336994f219d67df98000025", "original_id"=>"5336994f219d67df98000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994f219d67df98000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"5336994f219d67df98000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336994f219d67df98000025", "original_id"=>"5336994f219d67df98000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336994f219d67df9800002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000025"]}} 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_content_entries selector={"content_type_id"=>"5336994f219d67df98000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000025"]}}} (0.4292ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000025"]}}} (0.2940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4482ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336994f219d67df9800002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry5336994f219d67df98000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336994f219d67df98000025", "content_type_id"=>"5336994f219d67df98000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"5336994f219d67df98000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry5336994f219d67df98000025", "original_id"=>"5336994f219d67df9800002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994f219d67df9800002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"5336994f219d67df98000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336994f219d67df98000025", "original_id"=>"5336994f219d67df9800002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1440ms) 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.6537ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020", "_id"=>{"$ne"=>"5336994f219d67df9800002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994f219d67df98000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7854ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df9800002c", "parent_ids"=>["5336994f219d67df98000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.3679ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df9800002c"]}}, "$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"=>"5336994f219d67df9800002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994f219d67df9800002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df9800002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994f219d67df9800002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"5336994f219d67df98000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df9800002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2558ms) 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.6340ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020", "_id"=>{"$ne"=>"5336994f219d67df9800002e"}, "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"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020"}, "$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"=>"5336994f219d67df98000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5407ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df9800002e", "parent_ids"=>["5336994f219d67df98000022"], "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"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df9800002e"]}}, "$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"=>"5336994f219d67df9800002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994f219d67df9800002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6402ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020", "_id"=>{"$ne"=>"5336994f219d67df9800002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994f219d67df98000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6499ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df9800002f", "parent_ids"=>["5336994f219d67df98000022"], "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"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.4489ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df9800002f"]}}, "$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"=>{"parent_id"=>"5336994f219d67df9800002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5200ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994f219d67df9800002f"]}} 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.6573ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020", "_id"=>{"$ne"=>"5336994f219d67df98000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000022", "site_id"=>"5336994f219d67df98000020"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"5336994f219d67df98000022"}]}]}, "$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"=>"5336994f219d67df98000030", "parent_ids"=>["5336994f219d67df98000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"5336994f219d67df98000020", "parent_id"=>"5336994f219d67df98000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000030"]}}, "$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"=>"5336994f219d67df98000030"}, "$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"=>["5336994f219d67df98000030"]}} 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"=>"5336994f219d67df98000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3209ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994f219d67df98000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"5336994f219d67df98000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2868ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "slug.en"=>"index"}, "$orderby"=>{"position"=>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"=>"5336994f219d67df98000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3369ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"5336994f219d67df98000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:39 UTC}} flags=[] (0.1800ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000022"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5789ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"5336994f219d67df98000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"5336994f219d67df98000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1471ms) 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.5701ms) 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.3729ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"5336994f219d67df98000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:58:35 UTC, "updated_at"=>2014-03-29 09:58:39 UTC, "memberships"=>[{"_id"=>"5336994f219d67df98000033", "role"=>"admin", "account_id"=>"5336994f219d67df9800001f"}]}] flags=[] (0.2949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994f219d67df98000032", "_id"=>{"$ne"=>"5336994f219d67df98000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6270ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df98000034", "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"=>"5336994f219d67df98000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000032", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000034"]}}, "$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"=>"5336994f219d67df98000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3867ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994f219d67df98000034"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000034", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4139ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"5336994f219d67df98000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"5336994f219d67df98000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994f219d67df98000032", "_id"=>{"$ne"=>"5336994f219d67df98000036"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"5336994f219d67df98000032"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"5336994f219d67df98000036", "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"=>"5336994f219d67df98000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.2689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000032", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000036"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"5336994f219d67df98000036"}, "$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"=>["5336994f219d67df98000036"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"5336994f219d67df98000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"5336994f219d67df98000032", "_id"=>{"$ne"=>"5336994f219d67df98000037"}, "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"=>"5336994f219d67df98000032"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3164ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"5336994f219d67df98000037", "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"=>"5336994f219d67df98000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000032", "template_dependencies.en"=>{"$in"=>["5336994f219d67df98000037"]}}, "$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"=>"5336994f219d67df98000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5150ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["5336994f219d67df98000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1252ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000037", "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"=>"5336994f219d67df98000038", "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=>"5336994f219d67df98000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"5336994f219d67df98000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"5336994f219d67df98000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4668ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"5336994f219d67df98000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"5336994f219d67df98000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"5336994f219d67df9800003a", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 UTC, "entries_custom_fields"=>[{"_id"=>"5336994f219d67df9800003a", "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.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"5336994f219d67df9800003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000039"]}} 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_content_entries selector={"content_type_id"=>"5336994f219d67df98000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4833ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry5336994f219d67df98000039"]}}} (0.4869ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"5336994f219d67df9800003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry5336994f219d67df98000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry5336994f219d67df98000039", "content_type_id"=>"5336994f219d67df98000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"5336994f219d67df98000032", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:39 UTC, "created_at"=>2014-03-29 09:58:39 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::ContentEntry5336994f219d67df98000039", "original_id"=>"5336994f219d67df9800003b", "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"=>"5336994f219d67df9800003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"5336994f219d67df98000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry5336994f219d67df98000039", "original_id"=>"5336994f219d67df9800003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3529ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58:39 +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.5717ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7701ms) Rendered text template (0.0ms) Completed 200 OK in 10.0ms (Views: 2.9ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 10:58:40 +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.6123ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "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) 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"=>"5336994f219d67df98000020", "locale"=>"en"}} (0.6030ms) Rendered text template (0.0ms) Completed 200 OK in 7.7ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 10:58:40 +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.5798ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "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.5901ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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.6418ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5860ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-29 10:58:40 +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.5128ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"5336994f219d67df98000020", "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.5810ms) 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"=>"5336994f219d67df98000020", "locale"=>"en"}} (0.3912ms) Rendered text template (0.1ms) Completed 200 OK in 5.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.6421ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5472ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5193ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4370ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4709ms) 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.3779ms) 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.1187ms) 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.3879ms) 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.3281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369950219d67df9800003d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"82da1f6728185349df62d30213038f798b1ea64a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"KprHccrh72grsPCFqg4D", "api_key"=>"ea65fd873b1f2c507fa4a098091e34287d33f522", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.1054ms) 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.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369950219d67df9800003e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:58:35 UTC, "updated_at"=>2014-03-29 09:58:40 UTC, "memberships"=>[{"_id"=>"53369950219d67df9800003f", "role"=>"admin", "account_id"=>"53369950219d67df9800003d"}]}] flags=[] (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df9800003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df9800003e", "_id"=>{"$ne"=>"53369950219d67df98000040"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df98000040", "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"=>"53369950219d67df9800003e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df98000040"]}}, "$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"=>"53369950219d67df98000040"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4418ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df98000040"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df98000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5701ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369950219d67df98000041", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369950219d67df9800003e", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df98000040", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df9800003e", "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"=>"53369950219d67df9800003e", "_id"=>{"$ne"=>"53369950219d67df98000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df9800003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4957ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df98000042", "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"=>"53369950219d67df9800003e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.2749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df98000042"]}}, "$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"=>"53369950219d67df98000042"}, "$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"=>["53369950219d67df98000042"]}} 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"=>"53369950219d67df9800003e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369950219d67df98000043", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369950219d67df9800003e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369950219d67df98000044", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC, "entries_custom_fields"=>[{"_id"=>"53369950219d67df98000044", "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.2069ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369950219d67df98000043"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369950219d67df98000045", "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", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}}} flags=[] (0.1860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369950219d67df98000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}} 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"=>"53369950219d67df98000043", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}}} (0.3800ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369950219d67df98000046", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369950219d67df98000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "content_type_id"=>"53369950219d67df98000043", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369950219d67df9800003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "original_id"=>"53369950219d67df98000046", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53369950219d67df98000047", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369950219d67df9800003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "original_id"=>"53369950219d67df98000046", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369950219d67df98000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}} 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"=>"53369950219d67df98000043", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5729ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}}} (0.4358ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}}} (0.3150ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369950219d67df98000048", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369950219d67df98000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "content_type_id"=>"53369950219d67df98000043", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369950219d67df9800003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.1948ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "original_id"=>"53369950219d67df98000048", "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"=>"53369950219d67df98000049", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369950219d67df9800003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "original_id"=>"53369950219d67df98000048", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1469ms) 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"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e", "_id"=>{"$ne"=>"53369950219d67df9800004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369950219d67df98000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5720ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df9800004a", "parent_ids"=>["53369950219d67df98000040"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.3211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df9800004a"]}}, "$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"=>"53369950219d67df9800004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4270ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df9800004a"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df9800004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369950219d67df9800004b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369950219d67df9800003e", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df9800004a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1822ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5257ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e", "_id"=>{"$ne"=>"53369950219d67df9800004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9522ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e"}, "$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"=>"53369950219d67df98000040"}]}]}, "$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"=>"53369950219d67df9800004c", "parent_ids"=>["53369950219d67df98000040"], "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"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df9800004c"]}}, "$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"=>"53369950219d67df9800004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df9800004c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "$or"=>[{"slug.en"=>"seems-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"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e", "_id"=>{"$ne"=>"53369950219d67df9800004d"}, "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"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e"}, "$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"=>"53369950219d67df98000040"}]}]}, "$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"=>"53369950219d67df9800004d", "parent_ids"=>["53369950219d67df98000040"], "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"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df9800004d"]}}, "$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"=>"53369950219d67df9800004d"}, "$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"=>["53369950219d67df9800004d"]}} 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.5248ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e", "_id"=>{"$ne"=>"53369950219d67df9800004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369950219d67df98000040", "site_id"=>"53369950219d67df9800003e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369950219d67df98000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5543ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df9800004e", "parent_ids"=>["53369950219d67df98000040"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369950219d67df9800003e", "parent_id"=>"53369950219d67df98000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df9800004e"]}}, "$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"=>"53369950219d67df9800004e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4561ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df9800004e"]}} 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"=>"53369950219d67df9800004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369950219d67df9800004f", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369950219d67df9800003e", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df9800004e", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.3178ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369950219d67df9800003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3390ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369950219d67df98000040"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:40 UTC}} flags=[] (0.1769ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "template_dependencies.en"=>{"$in"=>["53369950219d67df98000040"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df98000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8767ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369950219d67df98000041"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369950219d67df9800003e", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1631ms) 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.5412ms) 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"=>"53369950219d67df98000050", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:58:35 UTC, "updated_at"=>2014-03-29 09:58:40 UTC, "memberships"=>[{"_id"=>"53369950219d67df98000051", "role"=>"admin", "account_id"=>"53369950219d67df9800003d"}]}] flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df98000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df98000050", "_id"=>{"$ne"=>"53369950219d67df98000052"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df98000052", "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"=>"53369950219d67df98000050", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df98000050", "template_dependencies.en"=>{"$in"=>["53369950219d67df98000052"]}}, "$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"=>"53369950219d67df98000052"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3703ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df98000052"]}} 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"=>"53369950219d67df98000052", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369950219d67df98000053", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369950219d67df98000050", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df98000052", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.3352ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df98000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df98000050", "_id"=>{"$ne"=>"53369950219d67df98000054"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df98000050"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6871ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df98000054", "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"=>"53369950219d67df98000050", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.5059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df98000050", "template_dependencies.en"=>{"$in"=>["53369950219d67df98000054"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369950219d67df98000054"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df98000054"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369950219d67df98000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df98000050", "_id"=>{"$ne"=>"53369950219d67df98000055"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9553ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369950219d67df98000050"}, "$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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369950219d67df98000055", "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"=>"53369950219d67df98000050", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.3910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df98000050", "template_dependencies.en"=>{"$in"=>["53369950219d67df98000055"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"53369950219d67df98000055"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5372ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369950219d67df98000055"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df98000055", "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"=>"53369950219d67df98000056", "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=>"53369950219d67df98000050", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369950219d67df98000055", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.5879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369950219d67df98000050", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5941ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369950219d67df98000057", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369950219d67df98000050", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369950219d67df98000058", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC, "entries_custom_fields"=>[{"_id"=>"53369950219d67df98000058", "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.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369950219d67df98000059"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000057"]}} 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_content_entries selector={"content_type_id"=>"53369950219d67df98000057", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000057"]}}} (1.0087ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369950219d67df98000059", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369950219d67df98000057", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369950219d67df98000057", "content_type_id"=>"53369950219d67df98000057", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369950219d67df98000050", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:40 UTC, "created_at"=>2014-03-29 09:58:40 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369950219d67df98000057", "original_id"=>"53369950219d67df98000059", "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"=>"53369950219d67df9800005a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369950219d67df98000050", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369950219d67df98000057", "original_id"=>"53369950219d67df98000059", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369950219d67df98000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369950219d67df98000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1569ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369950219d67df98000043"} update={"$set"=>{"updated_at"=>2014-03-29 09:58:40 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1030ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369950219d67df98000043"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1659ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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 (1.0350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6800ms) Rendered text template (0.0ms) Completed 200 OK in 6.9ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 10:58: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 (1.0550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "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.6328ms) 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"=>"53369950219d67df9800003e", "locale"=>"en"}} (0.6559ms) Rendered text template (0.0ms) Completed 200 OK in 7.4ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369950219d67df98000043"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369950219d67df98000043", "updated_at"=>{"$lt"=>2014-03-29 09:58:40 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53369950219d67df98000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369950219d67df9800003e"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"53369950219d67df98000043"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6611ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53369950219d67df98000046"} update={"$set"=>{"updated_at"=>2014-03-29 09:58:40 UTC}} flags=[] (0.1428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "original_id"=>"53369950219d67df98000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6671ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369950219d67df98000047"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369950219d67df9800003e", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.1438ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369950219d67df9800003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"53369950219d67df98000043"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4470ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53369950219d67df98000048"} update={"$set"=>{"updated_at"=>2014-03-29 09:58:40 UTC}} flags=[] (0.1380ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369950219d67df98000043", "original_id"=>"53369950219d67df98000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5503ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369950219d67df98000049"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369950219d67df9800003e", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1380ms) Started GET "/" for 127.0.0.1 at 2014-03-29 10:58: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.5550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6001ms) 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-03-29 10:58: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.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369950219d67df9800003e", "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.6189ms) 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"=>"53369950219d67df9800003e", "locale"=>"en"}} (0.5112ms) Rendered text template (0.0ms) Completed 200 OK in 6.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.6280ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8640ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.6478ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.7899ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.5920ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5679ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7148ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8829ms) 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.6220ms) 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.5651ms) 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.1128ms) 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.0992ms) 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.8671ms) 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.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369956219d67ed3e000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"acf08e9d2194470f1726f162ed10361c1a4e35b1", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"y7zhpvpCyqTbHuQAsUyy", "api_key"=>"065fa50ae5bb72d94708bf0a38c43c4cdaced4c8", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2871ms) 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.9973ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369956219d67ed3e000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:58:46 UTC, "updated_at"=>2014-03-29 09:58:46 UTC, "memberships"=>[{"_id"=>"53369956219d67ed3e000003", "role"=>"admin", "account_id"=>"53369956219d67ed3e000001"}]}] flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000002", "_id"=>{"$ne"=>"53369956219d67ed3e000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369956219d67ed3e000004", "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"=>"53369956219d67ed3e000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000004"]}}, "$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"=>["53369956219d67ed3e000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369956219d67ed3e000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369956219d67ed3e000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000002", "_id"=>{"$ne"=>"53369956219d67ed3e000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369956219d67ed3e000006", "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"=>"53369956219d67ed3e000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000006"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3989ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369956219d67ed3e000006"]}} 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"=>"53369956219d67ed3e000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369956219d67ed3e000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369956219d67ed3e000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369956219d67ed3e000008", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC, "entries_custom_fields"=>[{"_id"=>"53369956219d67ed3e000008", "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.2232ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369956219d67ed3e000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369956219d67ed3e000009", "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", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}}} flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369956219d67ed3e00000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369956219d67ed3e000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e000007"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369956219d67ed3e00000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369956219d67ed3e000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369956219d67ed3e000007", "content_type_id"=>"53369956219d67ed3e000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369956219d67ed3e000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369956219d67ed3e000007", "original_id"=>"53369956219d67ed3e00000a", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53369956219d67ed3e00000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369956219d67ed3e000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369956219d67ed3e000007", "original_id"=>"53369956219d67ed3e00000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369956219d67ed3e00000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5388ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369956219d67ed3e000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3941ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e000007"]}}} (0.4120ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e000007"]}}} (0.2911ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4683ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369956219d67ed3e00000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369956219d67ed3e000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369956219d67ed3e000007", "content_type_id"=>"53369956219d67ed3e000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369956219d67ed3e000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369956219d67ed3e000007", "original_id"=>"53369956219d67ed3e00000c", "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"=>"53369956219d67ed3e00000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369956219d67ed3e000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369956219d67ed3e000007", "original_id"=>"53369956219d67ed3e00000c", "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.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002", "_id"=>{"$ne"=>"53369956219d67ed3e00000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369956219d67ed3e000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369956219d67ed3e00000e", "parent_ids"=>["53369956219d67ed3e000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2623ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e00000e"]}}, "$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"=>"53369956219d67ed3e00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369956219d67ed3e00000e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1197ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e00000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369956219d67ed3e00000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369956219d67ed3e000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e00000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1931ms) 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.6251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4928ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002", "_id"=>{"$ne"=>"53369956219d67ed3e000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369956219d67ed3e000004"}]}]}, "$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"=>"53369956219d67ed3e000010", "parent_ids"=>["53369956219d67ed3e000004"], "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"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2193ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000010"]}}, "$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"=>"53369956219d67ed3e000010"}, "$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"=>["53369956219d67ed3e000010"]}} 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.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002", "_id"=>{"$ne"=>"53369956219d67ed3e000011"}, "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"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369956219d67ed3e000004"}]}]}, "$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"=>"53369956219d67ed3e000011", "parent_ids"=>["53369956219d67ed3e000004"], "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"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000011"]}}, "$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"=>"53369956219d67ed3e000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3858ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369956219d67ed3e000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) 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.8929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002", "_id"=>{"$ne"=>"53369956219d67ed3e000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1814ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000004", "site_id"=>"53369956219d67ed3e000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369956219d67ed3e000004"}]}]}, "$orderby"=>{"depth"=>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=locomotive_pages documents=[{"_id"=>"53369956219d67ed3e000012", "parent_ids"=>["53369956219d67ed3e000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369956219d67ed3e000002", "parent_id"=>"53369956219d67ed3e000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2480ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000012"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3657ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369956219d67ed3e000012"]}} 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"=>"53369956219d67ed3e000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369956219d67ed3e000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369956219d67ed3e000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "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_sites selector={"$query"=>{"_id"=>"53369956219d67ed3e000002"}, "$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"=>"53369956219d67ed3e000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:46 UTC}} flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000004"]}}, "$orderby"=>{"position"=>1}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7222ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369956219d67ed3e000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369956219d67ed3e000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} 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 (0.6809ms) 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.3529ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369956219d67ed3e000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:58:46 UTC, "updated_at"=>2014-03-29 09:58:46 UTC, "memberships"=>[{"_id"=>"53369956219d67ed3e000015", "role"=>"admin", "account_id"=>"53369956219d67ed3e000001"}]}] flags=[] (0.1748ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000014", "_id"=>{"$ne"=>"53369956219d67ed3e000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369956219d67ed3e000016", "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"=>"53369956219d67ed3e000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.3960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000014", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000016"]}}, "$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"=>"53369956219d67ed3e000016"}, "$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"=>["53369956219d67ed3e000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"53369956219d67ed3e000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369956219d67ed3e000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369956219d67ed3e000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5698ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000014", "_id"=>{"$ne"=>"53369956219d67ed3e000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369956219d67ed3e000018", "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"=>"53369956219d67ed3e000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2148ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000014", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000018"]}}, "$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"=>"53369956219d67ed3e000018"}, "$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"=>["53369956219d67ed3e000018"]}} 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"=>"53369956219d67ed3e000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"53369956219d67ed3e000014", "_id"=>{"$ne"=>"53369956219d67ed3e000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369956219d67ed3e000014"}, "$orderby"=>{"position"=>-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_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"=>"53369956219d67ed3e000019", "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"=>"53369956219d67ed3e000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000014", "template_dependencies.en"=>{"$in"=>["53369956219d67ed3e000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3536ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369956219d67ed3e000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369956219d67ed3e000019"]}} 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"=>"53369956219d67ed3e000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369956219d67ed3e00001a", "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=>"53369956219d67ed3e000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369956219d67ed3e000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369956219d67ed3e000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6001ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369956219d67ed3e00001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369956219d67ed3e000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369956219d67ed3e00001c", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC, "entries_custom_fields"=>[{"_id"=>"53369956219d67ed3e00001c", "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.3412ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369956219d67ed3e00001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e00001b"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53369956219d67ed3e00001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5481ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369956219d67ed3e00001b"]}}} (0.6132ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369956219d67ed3e00001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369956219d67ed3e00001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369956219d67ed3e00001b", "content_type_id"=>"53369956219d67ed3e00001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369956219d67ed3e000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:46 UTC, "created_at"=>2014-03-29 09:58:46 UTC}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369956219d67ed3e00001b", "original_id"=>"53369956219d67ed3e00001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4747ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369956219d67ed3e00001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369956219d67ed3e000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369956219d67ed3e00001b", "original_id"=>"53369956219d67ed3e00001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.3030ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:58: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} (1.0641ms) 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_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369956219d67ed3e000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4721ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.1ms) Completed 200 OK in 34.1ms (Views: 27.9ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 10:58:47 +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-03-29 10:58: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-03-29 10:58:47 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:58: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.7331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369956219d67ed3e000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6299ms) 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.6042ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369956219d67ed3e000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:58:48 UTC, "updated_at"=>2014-03-29 09:58:48 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369956219d67ed3e000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:58:48 UTC, "current_sign_in_at"=>2014-03-29 09:58: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-03-29 09:58:48 UTC}} flags=[] (0.1650ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:58: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.5691ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369956219d67ed3e000001"}, "$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"=>["53369956219d67ed3e000001"]}} flags=[:slave_ok] limit=0 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"=>"53369956219d67ed3e000002"}, "$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.0960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002"}, "$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.4589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002"}, "$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.5808ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002"}, "$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.3810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369956219d67ed3e000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7479ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (25.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (19.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (56.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (1.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"53369956219d67ed3e000001", :role=>:admin}}}} (0.5341ms) Rendered locomotive/shared/_main_app_head.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369956219d67ed3e000001"}} (0.4706ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369956219d67ed3e000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6149ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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.2ms) Rendered locomotive/shared/_main_app_header.html.haml (6.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (28.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (3.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (1.8ms) Completed 200 OK in 148.0ms (Views: 130.1ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 10:58:48 +0100 Served asset /locomotive.js - 200 OK (113ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 10:58:48 +0100 Served asset /locomotive.css - 200 OK (36ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 10:58:48 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 10:58: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-03-29 10:58:48 +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-03-29 10:58:48 +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-03-29 10:58:48 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/content_types/new" for 127.0.0.1 at 2014-03-29 10:58:48 +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.6702ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369956219d67ed3e000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4308ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369956219d67ed3e000001"]}} flags=[:slave_ok] limit=0 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"=>"53369956219d67ed3e000002"}, "$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.1210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002"}, "$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.4768ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369956219d67ed3e000002"}, "$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.3719ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369956219d67ed3e000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7000ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369956219d67ed3e000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6309ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (5.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/custom_fields/_select_templates.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/custom_fields/_form.html.haml (67.3ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369956219d67ed3e000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4680ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_types/_form.html.haml (87.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (112.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369956219d67ed3e000001", :role=>:admin}}}} (0.5181ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369956219d67ed3e000001"}} (0.4587ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369956219d67ed3e000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (8.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 150.7ms (Views: 135.5ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-03-29 10:58:48 +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 (0.8321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.7993ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.3440ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3740ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7050ms) 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.4532ms) 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.1271ms) 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.1578ms) 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.0049ms) 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.3958ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369959219d67ed3e000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"a434a8fa7cf41b05b65f6a852962f78c785aef7c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"AZ88vNMt9p9bMKPGwBp4", "api_key"=>"143ddf63c64fd7a561d412fd9fdf28e4e1bb7420", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.1590ms) 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.6909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369959219d67ed3e000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 09:58:46 UTC, "updated_at"=>2014-03-29 09:58:49 UTC, "memberships"=>[{"_id"=>"53369959219d67ed3e000022", "role"=>"admin", "account_id"=>"53369959219d67ed3e000020"}]}] flags=[] (0.1481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369959219d67ed3e000021", "_id"=>{"$ne"=>"53369959219d67ed3e000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e000023", "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"=>"53369959219d67ed3e000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000023"]}}, "$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"=>"53369959219d67ed3e000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3881ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e000023"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369959219d67ed3e000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369959219d67ed3e000021", "_id"=>{"$ne"=>"53369959219d67ed3e000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369959219d67ed3e000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6528ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e000025", "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"=>"53369959219d67ed3e000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000025"]}}, "$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"=>"53369959219d67ed3e000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e000025"]}} 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"=>"53369959219d67ed3e000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369959219d67ed3e000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369959219d67ed3e000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369959219d67ed3e000027", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC, "entries_custom_fields"=>[{"_id"=>"53369959219d67ed3e000027", "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.2527ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369959219d67ed3e000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369959219d67ed3e000028", "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", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}}} flags=[] (0.2980ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369959219d67ed3e000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e000026"]}} 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"=>"53369959219d67ed3e000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e000026"]}}} (0.7112ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369959219d67ed3e000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369959219d67ed3e000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369959219d67ed3e000026", "content_type_id"=>"53369959219d67ed3e000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369959219d67ed3e000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369959219d67ed3e000026", "original_id"=>"53369959219d67ed3e000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6137ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e00002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369959219d67ed3e000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369959219d67ed3e000026", "original_id"=>"53369959219d67ed3e000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369959219d67ed3e00002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e000026"]}} 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_content_entries selector={"content_type_id"=>"53369959219d67ed3e000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4151ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e000026"]}}} (0.4098ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e000026"]}}} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6442ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369959219d67ed3e00002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369959219d67ed3e000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369959219d67ed3e000026", "content_type_id"=>"53369959219d67ed3e000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369959219d67ed3e000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.2661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369959219d67ed3e000026", "original_id"=>"53369959219d67ed3e00002b", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e00002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369959219d67ed3e000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369959219d67ed3e000026", "original_id"=>"53369959219d67ed3e00002b", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1481ms) 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"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021", "_id"=>{"$ne"=>"53369959219d67ed3e00002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5832ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369959219d67ed3e000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e00002d", "parent_ids"=>["53369959219d67ed3e000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.3238ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e00002d"]}}, "$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"=>"53369959219d67ed3e00002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e00002d"]}} 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"=>"53369959219d67ed3e00002d", "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"=>"53369959219d67ed3e00002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369959219d67ed3e000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e00002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1812ms) 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.8450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021", "_id"=>{"$ne"=>"53369959219d67ed3e00002f"}, "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"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021"}, "$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"=>"53369959219d67ed3e000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7000ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e00002f", "parent_ids"=>["53369959219d67ed3e000023"], "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"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.2601ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e00002f"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e00002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e00002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.6571ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021", "_id"=>{"$ne"=>"53369959219d67ed3e000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369959219d67ed3e000023"}]}]}, "$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"=>"53369959219d67ed3e000030", "parent_ids"=>["53369959219d67ed3e000023"], "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"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.2351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000030"]}}, "$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"=>"53369959219d67ed3e000030"}, "$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"=>["53369959219d67ed3e000030"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (74.2650ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021", "_id"=>{"$ne"=>"53369959219d67ed3e000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000023", "site_id"=>"53369959219d67ed3e000021"}, "$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"=>"53369959219d67ed3e000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6642ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e000031", "parent_ids"=>["53369959219d67ed3e000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369959219d67ed3e000021", "parent_id"=>"53369959219d67ed3e000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.3271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000031"]}}, "$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"=>{"parent_id"=>"53369959219d67ed3e000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e000031"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000031", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369959219d67ed3e000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2072ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "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_sites selector={"$query"=>{"_id"=>"53369959219d67ed3e000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3812ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369959219d67ed3e000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 09:58:49 UTC}} flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000023"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6170ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369959219d67ed3e000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369959219d67ed3e000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1612ms) 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.6223ms) 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.3631ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369959219d67ed3e000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 09:58:46 UTC, "updated_at"=>2014-03-29 09:58:49 UTC, "memberships"=>[{"_id"=>"53369959219d67ed3e000034", "role"=>"admin", "account_id"=>"53369959219d67ed3e000020"}]}] flags=[] (0.2122ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"53369959219d67ed3e000033", "_id"=>{"$ne"=>"53369959219d67ed3e000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4716ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e000035", "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"=>"53369959219d67ed3e000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.2861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000033", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000035"]}}, "$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"=>"53369959219d67ed3e000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e000035"]}} 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"=>"53369959219d67ed3e000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369959219d67ed3e000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000035", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1619ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369959219d67ed3e000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369959219d67ed3e000033", "_id"=>{"$ne"=>"53369959219d67ed3e000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369959219d67ed3e000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369959219d67ed3e000037", "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"=>"53369959219d67ed3e000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.4988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000033", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000037"]}}, "$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"=>"53369959219d67ed3e000037"}, "$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"=>["53369959219d67ed3e000037"]}} 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"=>"53369959219d67ed3e000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369959219d67ed3e000033", "_id"=>{"$ne"=>"53369959219d67ed3e000038"}, "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"=>nil, "site_id"=>"53369959219d67ed3e000033"}, "$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"=>{"_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"=>"53369959219d67ed3e000038", "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"=>"53369959219d67ed3e000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.2449ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000033", "template_dependencies.en"=>{"$in"=>["53369959219d67ed3e000038"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3202ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369959219d67ed3e000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4327ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369959219d67ed3e000038"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e000039", "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=>"53369959219d67ed3e000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369959219d67ed3e000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2527ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369959219d67ed3e000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4551ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369959219d67ed3e00003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369959219d67ed3e000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369959219d67ed3e00003b", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC, "entries_custom_fields"=>[{"_id"=>"53369959219d67ed3e00003b", "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"=>"53369959219d67ed3e00003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e00003a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369959219d67ed3e00003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4671ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369959219d67ed3e00003a"]}}} (0.4709ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369959219d67ed3e00003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369959219d67ed3e00003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369959219d67ed3e00003a", "content_type_id"=>"53369959219d67ed3e00003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369959219d67ed3e000033", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 09:58:49 UTC, "created_at"=>2014-03-29 09:58:49 UTC}] flags=[] (0.1767ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369959219d67ed3e00003a", "original_id"=>"53369959219d67ed3e00003c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3910ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369959219d67ed3e00003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369959219d67ed3e000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369959219d67ed3e00003a", "original_id"=>"53369959219d67ed3e00003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2382ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 10:58:49 +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.6452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369959219d67ed3e000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4861ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (4.2ms) Completed 200 OK in 9.5ms (Views: 6.1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 10:58:49 +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.8392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369959219d67ed3e000020"]}}, "$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_accounts selector={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369959219d67ed3e000020"} update={"$set"=>{"remember_created_at"=>2014-03-29 09:58:49 UTC, "updated_at"=>2014-03-29 09:58:49 UTC}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369959219d67ed3e000020"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 09:58:49 UTC, "current_sign_in_at"=>2014-03-29 09:58:49 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 09:58:49 UTC}} flags=[] (0.1349ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 10.4ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 10:58: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.6871ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369959219d67ed3e000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369959219d67ed3e000020"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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.2927ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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.2822ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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.7138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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.5493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369959219d67ed3e000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7222ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (16.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (5.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_page.html.haml (8.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (26.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369959219d67ed3e000020", :role=>:admin}}}} (0.5550ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369959219d67ed3e000020"}} (0.5312ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369959219d67ed3e000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (9.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 61.5ms (Views: 45.2ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-03-29 10:58:49 +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.6170ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369959219d67ed3e000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369959219d67ed3e000020"]}} 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_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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.0631ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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"=>"53369959219d67ed3e000021"}, "$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.3862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369959219d67ed3e000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6328ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/menu/_contents.html.haml (12.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/content_assets/_picker.html.haml (7.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/theme_assets/_picker.html.haml (5.4ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_editable_elements.html.haml (6.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369959219d67ed3e000021"}, "$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.0550ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369959219d67ed3e000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9229ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (2.9ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/_form.html.haml (101.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_form_actions.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (124.3ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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=>"53369959219d67ed3e000020", :role=>:admin}}}} (0.6263ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369959219d67ed3e000020"}} (0.4387ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/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"=>"53369959219d67ed3e000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6638ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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.1ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_header.html.haml (8.0ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/Documents/LocomotiveCMS/engine/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 161.2ms (Views: 148.1ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-03-29 10:58:50 +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.6459ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8619ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5240ms) 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.4590ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4537ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4311ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8090ms) 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.4749ms) 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.9508ms) 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.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e3c219d67c0dd000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"d5e8b486ac763aac924a0c8e144c844db40cd9ff", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"86Hn7zjTFAibKMFhYnwc", "api_key"=>"7ed5243fe2efc1a898b37555f86223b70dedb88b", "updated_at"=>2014-03-29 10:19:40 UTC, "created_at"=>2014-03-29 10:19:40 UTC}] flags=[] (0.1931ms) 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.8891ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e3c219d67c0dd000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:19:39 UTC, "updated_at"=>2014-03-29 10:19:40 UTC, "memberships"=>[{"_id"=>"53369e3c219d67c0dd000003", "role"=>"admin", "account_id"=>"53369e3c219d67c0dd000001"}]}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e3c219d67c0dd000002", "_id"=>{"$ne"=>"53369e3c219d67c0dd000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5879ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e3c219d67c0dd000004", "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"=>"53369e3c219d67c0dd000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:40 UTC, "created_at"=>2014-03-29 10:19:40 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e3c219d67c0dd000004"}, "$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"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3c219d67c0dd000004"]}}, "$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"=>["53369e3c219d67c0dd000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1347ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e3c219d67c0dd000002", "_id"=>{"$ne"=>"53369e3d219d67c0dd000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53369e3c219d67c0dd000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e3d219d67c0dd000005", "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"=>"53369e3c219d67c0dd000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:41 UTC, "created_at"=>2014-03-29 10:19:41 UTC}] flags=[] (0.2680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3d219d67c0dd000005"]}}, "$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"=>"53369e3d219d67c0dd000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e3d219d67c0dd000005"]}} 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_content_types selector={"site_id"=>"53369e3c219d67c0dd000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e3d219d67c0dd000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e3c219d67c0dd000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e3d219d67c0dd000007", "updated_at"=>2014-03-29 10:19:41 UTC, "created_at"=>2014-03-29 10:19:41 UTC, "entries_custom_fields"=>[{"_id"=>"53369e3d219d67c0dd000007", "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.2544ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e3d219d67c0dd000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e3d219d67c0dd000008", "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", "updated_at"=>2014-03-29 10:19:41 UTC, "created_at"=>2014-03-29 10:19:41 UTC}}} flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e3d219d67c0dd000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e3d219d67c0dd000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9212ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e3d219d67c0dd000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5739ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e3d219d67c0dd000006"]}}} (0.3822ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e3d219d67c0dd000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e3d219d67c0dd000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e3d219d67c0dd000006", "content_type_id"=>"53369e3d219d67c0dd000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e3c219d67c0dd000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:19:41 UTC, "created_at"=>2014-03-29 10:19:41 UTC}] flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e3e219d67c0dd00000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e3d219d67c0dd000006"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53369e3d219d67c0dd000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4840ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e3d219d67c0dd000006"]}}} (0.4060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e3d219d67c0dd000006"]}}} (0.3207ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e3d219d67c0dd000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e3e219d67c0dd00000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e3d219d67c0dd000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e3d219d67c0dd000006", "content_type_id"=>"53369e3d219d67c0dd000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e3c219d67c0dd000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:19:42 UTC, "created_at"=>2014-03-29 10:19:42 UTC}] flags=[] (0.2019ms) 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.8562ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002", "_id"=>{"$ne"=>"53369e3f219d67c0dd00000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53369e3c219d67c0dd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6919ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e3f219d67c0dd00000b", "parent_ids"=>["53369e3c219d67c0dd000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:43 UTC, "created_at"=>2014-03-29 10:19:43 UTC}] flags=[] (0.2561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3f219d67c0dd00000b"]}}, "$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"=>"53369e3f219d67c0dd00000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3917ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e3f219d67c0dd00000b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1178ms) 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.7591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002", "_id"=>{"$ne"=>"53369e3f219d67c0dd00000c"}, "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"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002"}, "$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"=>"53369e3c219d67c0dd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5758ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e3f219d67c0dd00000c", "parent_ids"=>["53369e3c219d67c0dd000004"], "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"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:43 UTC, "created_at"=>2014-03-29 10:19:43 UTC}] flags=[] (0.2639ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3f219d67c0dd00000c"]}}, "$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"=>"53369e3f219d67c0dd00000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3986ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e3f219d67c0dd00000c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002", "_id"=>{"$ne"=>"53369e3f219d67c0dd00000d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e3c219d67c0dd000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5240ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e3f219d67c0dd00000d", "parent_ids"=>["53369e3c219d67c0dd000004"], "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"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:43 UTC, "created_at"=>2014-03-29 10:19:43 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3f219d67c0dd00000d"]}}, "$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"=>"53369e3f219d67c0dd00000d"}, "$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"=>["53369e3f219d67c0dd00000d"]}} 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=locomotive_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002", "_id"=>{"$ne"=>"53369e3f219d67c0dd00000e"}, "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"=>"53369e3c219d67c0dd000004", "site_id"=>"53369e3c219d67c0dd000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e3c219d67c0dd000004"}]}]}, "$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"=>"53369e3f219d67c0dd00000e", "parent_ids"=>["53369e3c219d67c0dd000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e3c219d67c0dd000002", "parent_id"=>"53369e3c219d67c0dd000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:43 UTC, "created_at"=>2014-03-29 10:19:43 UTC}] flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3f219d67c0dd00000e"]}}, "$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"=>"53369e3f219d67c0dd00000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e3f219d67c0dd00000e"]}} 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"=>{"site_id"=>"53369e3c219d67c0dd000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e3c219d67c0dd000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e3c219d67c0dd000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:19:44 UTC}} flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002", "template_dependencies.en"=>{"$in"=>["53369e3c219d67c0dd000004"]}}, "$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.6928ms) 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.4652ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e41219d67c0dd00000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:19:39 UTC, "updated_at"=>2014-03-29 10:19:45 UTC, "memberships"=>[{"_id"=>"53369e41219d67c0dd000010", "role"=>"admin", "account_id"=>"53369e3c219d67c0dd000001"}]}] flags=[] (0.2062ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e41219d67c0dd00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e41219d67c0dd00000f", "_id"=>{"$ne"=>"53369e41219d67c0dd000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e41219d67c0dd000011", "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"=>"53369e41219d67c0dd00000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:45 UTC, "created_at"=>2014-03-29 10:19:45 UTC}] flags=[] (0.2909ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e41219d67c0dd00000f", "template_dependencies.en"=>{"$in"=>["53369e41219d67c0dd000011"]}}, "$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"=>"53369e41219d67c0dd000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e41219d67c0dd000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e41219d67c0dd00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5860ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e41219d67c0dd00000f", "_id"=>{"$ne"=>"53369e42219d67c0dd000012"}, "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"=>"53369e41219d67c0dd00000f"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e42219d67c0dd000012", "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"=>"53369e41219d67c0dd00000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:46 UTC, "created_at"=>2014-03-29 10:19:46 UTC}] flags=[] (0.2499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e41219d67c0dd00000f", "template_dependencies.en"=>{"$in"=>["53369e42219d67c0dd000012"]}}, "$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"=>"53369e42219d67c0dd000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3872ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e42219d67c0dd000012"]}} 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"=>"53369e41219d67c0dd00000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"53369e41219d67c0dd00000f", "_id"=>{"$ne"=>"53369e42219d67c0dd000013"}, "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"=>nil, "site_id"=>"53369e41219d67c0dd00000f"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2639ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e42219d67c0dd000013", "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"=>"53369e41219d67c0dd00000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:19:46 UTC, "created_at"=>2014-03-29 10:19:46 UTC}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e41219d67c0dd00000f", "template_dependencies.en"=>{"$in"=>["53369e42219d67c0dd000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3121ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e42219d67c0dd000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e42219d67c0dd000013"]}} 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=locomotive_content_types selector={"site_id"=>"53369e41219d67c0dd00000f", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e42219d67c0dd000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e41219d67c0dd00000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e42219d67c0dd000015", "updated_at"=>2014-03-29 10:19:46 UTC, "created_at"=>2014-03-29 10:19:46 UTC, "entries_custom_fields"=>[{"_id"=>"53369e42219d67c0dd000015", "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.2947ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e42219d67c0dd000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e42219d67c0dd000014"]}} 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"=>"53369e42219d67c0dd000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4148ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e42219d67c0dd000014"]}}} (0.4511ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e42219d67c0dd000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e42219d67c0dd000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e42219d67c0dd000014", "content_type_id"=>"53369e42219d67c0dd000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e41219d67c0dd00000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:19:46 UTC, "created_at"=>2014-03-29 10:19:46 UTC}] flags=[] (0.1702ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 11:19: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.7322ms) 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.5434ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e3c219d67c0dd000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4873ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (20.8ms) Completed 200 OK in 39.4ms (Views: 33.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 11:19:48 +0100 Compiled locomotive/not_logged_in.js (111ms) (pid 20639) Served asset /locomotive/not_logged_in.js - 200 OK (121ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 11:19:48 +0100 Compiled locomotive/blueprint/screen.css (0ms) (pid 20639) Compiled locomotive/font-awesome.css (179ms) (pid 20639) Compiled locomotive/not_logged_in/installation.css (912ms) (pid 20639) Compiled locomotive/not_logged_in/layout.css (918ms) (pid 20639) Compiled locomotive/not_logged_in.css (2104ms) (pid 20639) Served asset /locomotive/not_logged_in.css - 200 OK (2115ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 11:19:51 +0100 Served asset /locomotive/background/body.png - 200 OK (3ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 11:19:51 +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.6850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e3c219d67c0dd000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4241ms) 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.5701ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e3c219d67c0dd000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 10:19:51 UTC, "updated_at"=>2014-03-29 10:19:51 UTC}} flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e3c219d67c0dd000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 10:19:51 UTC, "current_sign_in_at"=>2014-03-29 10:19:51 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 10:19:51 UTC}} flags=[] (0.1738ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 21.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 11:19:51 +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.6499ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e3c219d67c0dd000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e3c219d67c0dd000001"]}} 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"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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} (0.9608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.0829ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.3519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e3d219d67c0dd000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6931ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (23.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (3.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (9.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (45.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e3c219d67c0dd000001", :role=>:admin}}}} (0.5779ms) Rendered locomotive/shared/_main_app_head.html.haml (1.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (13.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e3c219d67c0dd000001"}} (0.5999ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/global_actions/show.html.haml (2.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"53369e3c219d67c0dd000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6249ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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.3ms) Rendered locomotive/shared/_main_app_header.html.haml (4.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (28.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (2.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 125.8ms (Views: 110.3ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 11:19:51 +0100 Compiled select2/select2.js (2ms) (pid 20639) Compiled locomotive/ICanHandlebarz.js (0ms) (pid 20639) Compiled locomotive/backbone.modelbinding.js (0ms) (pid 20639) Compiled locomotive/backbone.sync.js (0ms) (pid 20639) Compiled locomotive/cmd.js (0ms) (pid 20639) Compiled locomotive/cookies.js (0ms) (pid 20639) Compiled locomotive/datepicker_i18n.js (12ms) (pid 20639) Compiled locomotive/editable_field.js (0ms) (pid 20639) Compiled locomotive/form_submit_notification.js (0ms) (pid 20639) Compiled locomotive/growl.js (0ms) (pid 20639) Compiled locomotive/handlebars.js (1ms) (pid 20639) Compiled locomotive/jquery-ui-timepicker-addon.js (2ms) (pid 20639) Compiled locomotive/liquid_mode.js (0ms) (pid 20639) Compiled locomotive/menu_toggler.js (0ms) (pid 20639) Compiled locomotive/resize.js (0ms) (pid 20639) Compiled locomotive/slugify.js (0ms) (pid 20639) Compiled locomotive/smartupdater.js (0ms) (pid 20639) Compiled locomotive/subscribe.js (0ms) (pid 20639) Compiled locomotive/tag-it.min.js (0ms) (pid 20639) Compiled locomotive/toggle.js (0ms) (pid 20639) Compiled locomotive/vendor.js (113ms) (pid 20639) Compiled locomotive/utils/aloha_settings.js (94ms) (pid 20639) Compiled locomotive/utils/core_ext.js (0ms) (pid 20639) Compiled locomotive/utils/growl.js (0ms) (pid 20639) Compiled locomotive/utils/handlebar_helpers.js (74ms) (pid 20639) Compiled locomotive/utils/tinymce_settings.js (81ms) (pid 20639) Compiled locomotive/models/account.js (75ms) (pid 20639) Compiled locomotive/models/content_asset.js (86ms) (pid 20639) Compiled locomotive/models/content_entry.js (138ms) (pid 20639) Compiled locomotive/models/content_type.js (97ms) (pid 20639) Compiled locomotive/models/custom_field.js (103ms) (pid 20639) Compiled locomotive/models/custom_field_select_option.js (91ms) (pid 20639) Compiled locomotive/models/domain.js (72ms) (pid 20639) Compiled locomotive/models/editable_element.js (109ms) (pid 20639) Compiled locomotive/models/membership.js (84ms) (pid 20639) Compiled locomotive/models/page.js (101ms) (pid 20639) Compiled locomotive/models/site.js (104ms) (pid 20639) Compiled locomotive/models/snippet.js (77ms) (pid 20639) Compiled locomotive/models/theme_asset.js (83ms) (pid 20639) Compiled locomotive/models/translation.js (73ms) (pid 20639) Compiled locomotive/views/application_view.js (147ms) (pid 20639) Compiled locomotive/views/content_assets/picker_item_view.js (101ms) (pid 20639) Compiled locomotive/views/shared/asset_picker_view.js (136ms) (pid 20639) Compiled locomotive/views/content_assets/picker_view.js (378ms) (pid 20639) Compiled locomotive/views/shared/form_view.js (181ms) (pid 20639) Compiled locomotive/views/content_entries/_form_view.js (416ms) (pid 20639) Compiled locomotive/views/content_entries/_popup_form_view.js (140ms) (pid 20639) Compiled locomotive/views/content_entries/edit_view.js (79ms) (pid 20639) Compiled locomotive/views/content_entries/index_view.js (95ms) (pid 20639) Compiled locomotive/views/content_entries/new_view.js (76ms) (pid 20639) Compiled locomotive/views/content_types/_form_view.js (128ms) (pid 20639) Compiled locomotive/views/content_types/custom_field_entry_view.js (148ms) (pid 20639) Compiled locomotive/views/content_types/custom_fields_view.js (131ms) (pid 20639) Compiled locomotive/views/content_types/edit_view.js (82ms) (pid 20639) Compiled locomotive/views/content_types/new_view.js (83ms) (pid 20639) Compiled locomotive/views/content_types/select_options_view.js (122ms) (pid 20639) Compiled locomotive/views/sites/domains_view.js (118ms) (pid 20639) Compiled locomotive/views/current_site/edit_view.js (241ms) (pid 20639) Compiled locomotive/views/editable_elements/control_view.js (78ms) (pid 20639) Compiled locomotive/views/editable_elements/edit_all_view.js (124ms) (pid 20639) Compiled locomotive/views/editable_elements/file_view.js (121ms) (pid 20639) Compiled locomotive/views/editable_elements/text_view.js (104ms) (pid 20639) Compiled locomotive/views/inline_editor/application_view.js (151ms) (pid 20639) Compiled locomotive/views/inline_editor/toolbar_view.js (165ms) (pid 20639) Compiled locomotive/views/my_account/edit_view.js (96ms) (pid 20639) Compiled locomotive/views/pages/_form_view.js (193ms) (pid 20639) Compiled locomotive/views/pages/edit_view.js (95ms) (pid 20639) Compiled locomotive/views/pages/index_view.js (74ms) (pid 20639) Compiled locomotive/views/pages/list_view.js (102ms) (pid 20639) Compiled locomotive/views/pages/new_view.js (81ms) (pid 20639) Compiled locomotive/views/shared/fields/_relationship_view.js (111ms) (pid 20639) Compiled locomotive/views/shared/fields/belongs_to_view.js (89ms) (pid 20639) Compiled locomotive/views/shared/fields/file_view.js (143ms) (pid 20639) Compiled locomotive/views/shared/fields/has_many_view.js (163ms) (pid 20639) Compiled locomotive/views/shared/fields/many_to_many_view.js (179ms) (pid 20639) Compiled locomotive/views/shared/fields/select_view.js (146ms) (pid 20639) Compiled locomotive/views/shared/list_item_view.js (96ms) (pid 20639) Compiled locomotive/views/shared/list_view.js (118ms) (pid 20639) Compiled locomotive/views/sites/domain_entry_view.js (110ms) (pid 20639) Compiled locomotive/views/sites/membership_entry_view.js (109ms) (pid 20639) Compiled locomotive/views/sites/memberships_view.js (101ms) (pid 20639) Compiled locomotive/views/sites/new_view.js (115ms) (pid 20639) Compiled locomotive/views/snippets/_form_view.js (128ms) (pid 20639) Compiled locomotive/views/snippets/edit_view.js (87ms) (pid 20639) Compiled locomotive/views/snippets/list_item_view.js (87ms) (pid 20639) Compiled locomotive/views/snippets/list_view.js (93ms) (pid 20639) Compiled locomotive/views/snippets/new_view.js (92ms) (pid 20639) Compiled locomotive/views/theme_assets/_form_view.js (152ms) (pid 20639) Compiled locomotive/views/theme_assets/edit_view.js (96ms) (pid 20639) Compiled locomotive/views/theme_assets/image_picker_view.js (112ms) (pid 20639) Compiled locomotive/views/theme_assets/index_view.js (254ms) (pid 20639) Compiled locomotive/views/theme_assets/list_item_view.js (134ms) (pid 20639) Compiled locomotive/views/theme_assets/list_view.js (122ms) (pid 20639) Compiled locomotive/views/theme_assets/new_view.js (88ms) (pid 20639) Compiled locomotive/views/translations/_form_view.js (90ms) (pid 20639) Compiled locomotive/views/translations/edit_view.js (84ms) (pid 20639) Compiled locomotive/views/translations/new_view.js (87ms) (pid 20639) Compiled locomotive/application.js (8905ms) (pid 20639) Compiled locomotive.js (9078ms) (pid 20639) Served asset /locomotive.js - 200 OK (9111ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 11:20:00 +0100 Compiled locomotive/jquery/ui.css (321ms) (pid 20639) Compiled locomotive/jquery.tagit.css (0ms) (pid 20639) Compiled select2/select2.css (244ms) (pid 20639) Compiled locomotive/toggle.css (332ms) (pid 20639) Compiled locomotive/liquid_mode.css (0ms) (pid 20639) Compiled locomotive/shared/_helpers.css (418ms) (pid 20639) Compiled locomotive/shared/_picker.css (835ms) (pid 20639) Compiled locomotive/shared/common.css (618ms) (pid 20639) Compiled locomotive/shared/content_locale_picker.css (806ms) (pid 20639) Compiled locomotive/shared/growl.css (94ms) (pid 20639) Compiled locomotive/backoffice/_box.css (1493ms) (pid 20639) Compiled locomotive/backoffice/_buttons.css (506ms) (pid 20639) Compiled locomotive/backoffice/application.css (2810ms) (pid 20639) Compiled locomotive/backoffice/codemirror_changes.css (401ms) (pid 20639) Compiled locomotive/backoffice/content_assets.css (1502ms) (pid 20639) Compiled locomotive/backoffice/datepicker.css (477ms) (pid 20639) Compiled locomotive/backoffice/dialog_changes.css (1339ms) (pid 20639) Compiled locomotive/backoffice/editable_elements.css (2447ms) (pid 20639) Compiled locomotive/backoffice/formtastic_changes.css (1591ms) (pid 20639) Compiled locomotive/backoffice/layout.css (1522ms) (pid 20639) Compiled locomotive/backoffice/menu/sub.css (326ms) (pid 20639) WARNING: This version of the transform module has been deprecated and will be removed. on line 3 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-0.12.4/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss from line 5 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss Compiled locomotive/backoffice/menu/main.css (227ms) (pid 20639) Compiled locomotive/backoffice/menu/default.css (196ms) (pid 20639) Compiled locomotive/backoffice/menu.css (761ms) (pid 20639) Compiled locomotive/backoffice/menu/_colors.css (170ms) (pid 20639) Compiled locomotive/backoffice/menu/_helpers.css (3ms) (pid 20639) Compiled locomotive/backoffice/pagination.css (982ms) (pid 20639) Compiled locomotive/backoffice/sites_picker.css (795ms) (pid 20639) Compiled locomotive/backoffice/tagit_changes.css (480ms) (pid 20639) Compiled locomotive.css (21097ms) (pid 20639) Served asset /locomotive.css - 200 OK (21114ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 11:20:21 +0100 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 11:20:21 +0100 Served asset /locomotive/search_bar.js - 200 OK (4ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 11:20:21 +0100 Served asset /locomotive/background/body.png - 304 Not Modified (0ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 11:20:21 +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-03-29 11:20:21 +0100 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (3ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-03-29 11:20:21 +0100 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 11:20: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.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e3c219d67c0dd000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e3c219d67c0dd000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4327ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.2138ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.3452ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e3c219d67c0dd000002"}, "$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.4108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e3d219d67c0dd000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6778ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (13.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (3.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (5.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (21.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e3c219d67c0dd000001", :role=>:admin}}}} (0.6063ms) Rendered locomotive/shared/_main_app_head.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (5.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e3c219d67c0dd000001"}} (0.4830ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e3c219d67c0dd000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6628ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_site_picker.html.haml (2.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (1.2ms) Rendered locomotive/shared/_main_app_header.html.haml (1.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (11.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 63.1ms (Views: 44.0ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 11:20:21 +0100 Served asset /locomotive.js - 304 Not Modified (1ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 11:20:21 +0100 Served asset /locomotive/background/body.png - 304 Not Modified (0ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 11:20:22 +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.6020ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e3c219d67c0dd000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e3c219d67c0dd000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4601ms) Completed 200 OK in 600.3ms (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.8831ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.5550ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.7142ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.9300ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.3049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.5690ms) 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.6149ms) 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.9148ms) 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.5031ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e68219d67c0dd000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"09a1e39034111f70cd2e21314f94024a98ad70bd", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"RHS8ZqLqSjNdMyUbycg5", "api_key"=>"a56becb817a470fbd5e704320c1a22b768fd027f", "updated_at"=>2014-03-29 10:20:24 UTC, "created_at"=>2014-03-29 10:20:24 UTC}] flags=[] (0.1516ms) 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.7641ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e68219d67c0dd000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:19:39 UTC, "updated_at"=>2014-03-29 10:20:24 UTC, "memberships"=>[{"_id"=>"53369e68219d67c0dd000019", "role"=>"admin", "account_id"=>"53369e68219d67c0dd000017"}]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e68219d67c0dd000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9780ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e68219d67c0dd000018", "_id"=>{"$ne"=>"53369e68219d67c0dd00001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53369e68219d67c0dd00001a", "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"=>"53369e68219d67c0dd000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:24 UTC, "created_at"=>2014-03-29 10:20:24 UTC}] flags=[] (0.2539ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e68219d67c0dd00001a"]}}, "$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"=>{"parent_id"=>"53369e68219d67c0dd00001a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e68219d67c0dd00001a"]}} 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={"site_id"=>"53369e68219d67c0dd000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53369e68219d67c0dd000018", "_id"=>{"$ne"=>"53369e68219d67c0dd00001b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e68219d67c0dd000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e68219d67c0dd00001b", "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"=>"53369e68219d67c0dd000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:24 UTC, "created_at"=>2014-03-29 10:20:24 UTC}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e68219d67c0dd00001b"]}}, "$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"=>"53369e68219d67c0dd00001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4013ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e68219d67c0dd00001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1507ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e68219d67c0dd000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e68219d67c0dd00001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e68219d67c0dd000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e68219d67c0dd00001d", "updated_at"=>2014-03-29 10:20:24 UTC, "created_at"=>2014-03-29 10:20:24 UTC, "entries_custom_fields"=>[{"_id"=>"53369e68219d67c0dd00001d", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e68219d67c0dd00001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e68219d67c0dd00001e", "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", "updated_at"=>2014-03-29 10:20:24 UTC, "created_at"=>2014-03-29 10:20:24 UTC}}} flags=[] (0.1850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e68219d67c0dd00001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e68219d67c0dd00001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4807ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e68219d67c0dd00001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e68219d67c0dd00001c"]}}} (0.4392ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e68219d67c0dd00001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e68219d67c0dd00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e68219d67c0dd00001c", "content_type_id"=>"53369e68219d67c0dd00001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e68219d67c0dd000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:24 UTC, "created_at"=>2014-03-29 10:20:24 UTC}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e69219d67c0dd000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e68219d67c0dd00001c"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53369e68219d67c0dd00001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e68219d67c0dd00001c"]}}} (0.4380ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e68219d67c0dd00001c"]}}} (0.3378ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e68219d67c0dd00001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5431ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e69219d67c0dd000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e68219d67c0dd00001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e68219d67c0dd00001c", "content_type_id"=>"53369e68219d67c0dd00001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e68219d67c0dd000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:25 UTC, "created_at"=>2014-03-29 10:20:25 UTC}] flags=[] (0.2739ms) 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.7319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5534ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018", "_id"=>{"$ne"=>"53369e6a219d67c0dd000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e68219d67c0dd00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6473ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e6a219d67c0dd000021", "parent_ids"=>["53369e68219d67c0dd00001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:26 UTC, "created_at"=>2014-03-29 10:20:26 UTC}] flags=[] (0.2668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e6a219d67c0dd000021"]}}, "$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"=>"53369e6a219d67c0dd000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6a219d67c0dd000021"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (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.7510ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018", "_id"=>{"$ne"=>"53369e6b219d67c0dd000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018"}, "$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"=>"53369e68219d67c0dd00001a"}]}]}, "$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"=>"53369e6b219d67c0dd000022", "parent_ids"=>["53369e68219d67c0dd00001a"], "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"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:27 UTC, "created_at"=>2014-03-29 10:20:27 UTC}] flags=[] (0.2549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e6b219d67c0dd000022"]}}, "$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"=>"53369e6b219d67c0dd000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4127ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6b219d67c0dd000022"]}} 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.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018", "_id"=>{"$ne"=>"53369e6b219d67c0dd000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4847ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e68219d67c0dd00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e6b219d67c0dd000023", "parent_ids"=>["53369e68219d67c0dd00001a"], "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"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:27 UTC, "created_at"=>2014-03-29 10:20:27 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e6b219d67c0dd000023"]}}, "$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"=>"53369e6b219d67c0dd000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6b219d67c0dd000023"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4907ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018", "_id"=>{"$ne"=>"53369e6b219d67c0dd000024"}, "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"=>"53369e68219d67c0dd00001a", "site_id"=>"53369e68219d67c0dd000018"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e68219d67c0dd00001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e6b219d67c0dd000024", "parent_ids"=>["53369e68219d67c0dd00001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e68219d67c0dd000018", "parent_id"=>"53369e68219d67c0dd00001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:27 UTC, "created_at"=>2014-03-29 10:20:27 UTC}] flags=[] (0.4251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e6b219d67c0dd000024"]}}, "$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"=>"53369e6b219d67c0dd000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5507ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6b219d67c0dd000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7942ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e68219d67c0dd000018"}, "$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=locomotive_pages selector={"_id"=>"53369e68219d67c0dd00001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:20:27 UTC}} flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "template_dependencies.en"=>{"$in"=>["53369e68219d67c0dd00001a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4442ms) 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.8552ms) 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.4292ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e6c219d67c0dd000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:19:39 UTC, "updated_at"=>2014-03-29 10:20:28 UTC, "memberships"=>[{"_id"=>"53369e6c219d67c0dd000026", "role"=>"admin", "account_id"=>"53369e68219d67c0dd000017"}]}] flags=[] (0.2131ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e6c219d67c0dd000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5591ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e6c219d67c0dd000025", "_id"=>{"$ne"=>"53369e6c219d67c0dd000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e6c219d67c0dd000027", "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"=>"53369e6c219d67c0dd000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:28 UTC, "created_at"=>2014-03-29 10:20:28 UTC}] flags=[] (0.2310ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e6c219d67c0dd000025", "template_dependencies.en"=>{"$in"=>["53369e6c219d67c0dd000027"]}}, "$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"=>"53369e6c219d67c0dd000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6c219d67c0dd000027"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e6c219d67c0dd000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e6c219d67c0dd000025", "_id"=>{"$ne"=>"53369e6d219d67c0dd000028"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"53369e6c219d67c0dd000025"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e6d219d67c0dd000028", "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"=>"53369e6c219d67c0dd000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:29 UTC, "created_at"=>2014-03-29 10:20:29 UTC}] flags=[] (0.2320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e6c219d67c0dd000025", "template_dependencies.en"=>{"$in"=>["53369e6d219d67c0dd000028"]}}, "$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"=>"53369e6d219d67c0dd000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3943ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6d219d67c0dd000028"]}} 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"=>"53369e6c219d67c0dd000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"53369e6c219d67c0dd000025", "_id"=>{"$ne"=>"53369e6d219d67c0dd000029"}, "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"=>"53369e6c219d67c0dd000025"}, "$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_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"=>"53369e6d219d67c0dd000029", "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"=>"53369e6c219d67c0dd000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:29 UTC, "created_at"=>2014-03-29 10:20:29 UTC}] flags=[] (0.3331ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e6c219d67c0dd000025", "template_dependencies.en"=>{"$in"=>["53369e6d219d67c0dd000029"]}}, "$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"=>"53369e6d219d67c0dd000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4261ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e6d219d67c0dd000029"]}} 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"=>"53369e6c219d67c0dd000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5050ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e6e219d67c0dd00002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e6c219d67c0dd000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e6e219d67c0dd00002b", "updated_at"=>2014-03-29 10:20:30 UTC, "created_at"=>2014-03-29 10:20:30 UTC, "entries_custom_fields"=>[{"_id"=>"53369e6e219d67c0dd00002b", "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.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e6e219d67c0dd00002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e6e219d67c0dd00002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6063ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e6e219d67c0dd00002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e6e219d67c0dd00002a"]}}} (0.4249ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e6e219d67c0dd00002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e6e219d67c0dd00002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e6e219d67c0dd00002a", "content_type_id"=>"53369e6e219d67c0dd00002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e6c219d67c0dd000025", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:30 UTC, "created_at"=>2014-03-29 10:20:30 UTC}] flags=[] (0.1709ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20: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.6881ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6468ms) Rendered text template (0.0ms) Completed 200 OK in 8.7ms (Views: 2.3ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 11:20: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.5941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "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.5939ms) Rendered text template (0.0ms) Completed 200 OK in 557.8ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 11:20:31 +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.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "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.5631ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.3ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20: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.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5369ms) Rendered text template (0.0ms) Completed 200 OK in 3.8ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-29 11:20:31 +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.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e68219d67c0dd000018", "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.5760ms) Rendered text template (0.0ms) Completed 200 OK in 557.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.7560ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6131ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3978ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (1.0011ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0319ms) 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=locomotive_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8390ms) 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"=>"53369e70219d67c0dd00002d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"09d7fd6c272d3961a44de5aee060a8c7d7177d55", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"4kZqWKyhXhdeQeDHcHzZ", "api_key"=>"6e4fed0656c0e23a6e6ff0ff155571f090e1ade6", "updated_at"=>2014-03-29 10:20:32 UTC, "created_at"=>2014-03-29 10:20:32 UTC}] flags=[] (0.1380ms) 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.7718ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e70219d67c0dd00002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:19:39 UTC, "updated_at"=>2014-03-29 10:20:32 UTC, "memberships"=>[{"_id"=>"53369e70219d67c0dd00002f", "role"=>"admin", "account_id"=>"53369e70219d67c0dd00002d"}]}] flags=[] (0.2012ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e70219d67c0dd00002e", "_id"=>{"$ne"=>"53369e70219d67c0dd000030"}, "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"=>"53369e70219d67c0dd000030", "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"=>"53369e70219d67c0dd00002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:32 UTC, "created_at"=>2014-03-29 10:20:32 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e70219d67c0dd000030"]}}, "$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"=>"53369e70219d67c0dd000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3841ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e70219d67c0dd000030"]}} 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={"site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e70219d67c0dd00002e", "_id"=>{"$ne"=>"53369e71219d67c0dd000031"}, "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"=>"53369e70219d67c0dd00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5062ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e71219d67c0dd000031", "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"=>"53369e70219d67c0dd00002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:33 UTC, "created_at"=>2014-03-29 10:20:33 UTC}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e71219d67c0dd000031"]}}, "$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"=>"53369e71219d67c0dd000031"}, "$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"=>["53369e71219d67c0dd000031"]}} 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_content_types selector={"site_id"=>"53369e70219d67c0dd00002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e71219d67c0dd000032", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e70219d67c0dd00002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e71219d67c0dd000033", "updated_at"=>2014-03-29 10:20:33 UTC, "created_at"=>2014-03-29 10:20:33 UTC, "entries_custom_fields"=>[{"_id"=>"53369e71219d67c0dd000033", "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.2918ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e71219d67c0dd000032"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e71219d67c0dd000034", "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", "updated_at"=>2014-03-29 10:20:33 UTC, "created_at"=>2014-03-29 10:20:33 UTC}}} flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e71219d67c0dd000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e71219d67c0dd000032", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}}} (0.3970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e71219d67c0dd000035", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e71219d67c0dd000032", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e71219d67c0dd000032", "content_type_id"=>"53369e71219d67c0dd000032", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e70219d67c0dd00002e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:33 UTC, "created_at"=>2014-03-29 10:20:33 UTC}] flags=[] (0.2010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e72219d67c0dd000036"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53369e71219d67c0dd000032", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4702ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}}} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5589ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e72219d67c0dd000036", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e71219d67c0dd000032", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e71219d67c0dd000032", "content_type_id"=>"53369e71219d67c0dd000032", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e70219d67c0dd00002e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:34 UTC, "created_at"=>2014-03-29 10:20:34 UTC}] flags=[] (0.2277ms) 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.7079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e", "_id"=>{"$ne"=>"53369e73219d67c0dd000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e70219d67c0dd000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e73219d67c0dd000037", "parent_ids"=>["53369e70219d67c0dd000030"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:35 UTC, "created_at"=>2014-03-29 10:20:35 UTC}] flags=[] (0.2692ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e73219d67c0dd000037"]}}, "$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"=>"53369e73219d67c0dd000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3688ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e73219d67c0dd000037"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7772ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e", "_id"=>{"$ne"=>"53369e73219d67c0dd000038"}, "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"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e70219d67c0dd000030"}]}]}, "$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"=>"53369e73219d67c0dd000038", "parent_ids"=>["53369e70219d67c0dd000030"], "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"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:35 UTC, "created_at"=>2014-03-29 10:20:35 UTC}] flags=[] (0.2608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e73219d67c0dd000038"]}}, "$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"=>"53369e73219d67c0dd000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3908ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e73219d67c0dd000038"]}} 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.5991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "$or"=>[{"slug.en"=>"seems-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"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e", "_id"=>{"$ne"=>"53369e73219d67c0dd000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7277ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e70219d67c0dd000030"}]}]}, "$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"=>"53369e73219d67c0dd000039", "parent_ids"=>["53369e70219d67c0dd000030"], "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"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:35 UTC, "created_at"=>2014-03-29 10:20:35 UTC}] flags=[] (0.2468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e73219d67c0dd000039"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3140ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e73219d67c0dd000039"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4029ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e73219d67c0dd000039"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e", "_id"=>{"$ne"=>"53369e73219d67c0dd00003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.4298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e70219d67c0dd000030", "site_id"=>"53369e70219d67c0dd00002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e70219d67c0dd000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6747ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e73219d67c0dd00003a", "parent_ids"=>["53369e70219d67c0dd000030"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e70219d67c0dd00002e", "parent_id"=>"53369e70219d67c0dd000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:35 UTC, "created_at"=>2014-03-29 10:20:35 UTC}] flags=[] (0.2742ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e73219d67c0dd00003a"]}}, "$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"=>"53369e73219d67c0dd00003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4709ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e73219d67c0dd00003a"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1519ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e70219d67c0dd00002e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4601ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e70219d67c0dd000030"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:20:37 UTC}} flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "template_dependencies.en"=>{"$in"=>["53369e70219d67c0dd000030"]}}, "$orderby"=>{"position"=>1}} 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_accounts selector={"$query"=>{"name"=>"Admin"}, "$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_sites selector={"subdomain"=>"test2"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e76219d67c0dd00003b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:19:39 UTC, "updated_at"=>2014-03-29 10:20:38 UTC, "memberships"=>[{"_id"=>"53369e76219d67c0dd00003c", "role"=>"admin", "account_id"=>"53369e70219d67c0dd00002d"}]}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e76219d67c0dd00003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5610ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e76219d67c0dd00003b", "_id"=>{"$ne"=>"53369e76219d67c0dd00003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53369e76219d67c0dd00003d", "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"=>"53369e76219d67c0dd00003b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:38 UTC, "created_at"=>2014-03-29 10:20:38 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e76219d67c0dd00003b", "template_dependencies.en"=>{"$in"=>["53369e76219d67c0dd00003d"]}}, "$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"=>"53369e76219d67c0dd00003d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e76219d67c0dd00003d"]}} 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={"site_id"=>"53369e76219d67c0dd00003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e76219d67c0dd00003b", "_id"=>{"$ne"=>"53369e77219d67c0dd00003e"}, "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"=>"53369e76219d67c0dd00003b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e77219d67c0dd00003e", "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"=>"53369e76219d67c0dd00003b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:39 UTC, "created_at"=>2014-03-29 10:20:39 UTC}] flags=[] (0.2272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e76219d67c0dd00003b", "template_dependencies.en"=>{"$in"=>["53369e77219d67c0dd00003e"]}}, "$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"=>"53369e77219d67c0dd00003e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e77219d67c0dd00003e"]}} 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={"site_id"=>"53369e76219d67c0dd00003b", "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"=>"53369e76219d67c0dd00003b", "_id"=>{"$ne"=>"53369e77219d67c0dd00003f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e76219d67c0dd00003b"}, "$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.2687ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e77219d67c0dd00003f", "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"=>"53369e76219d67c0dd00003b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:39 UTC, "created_at"=>2014-03-29 10:20:39 UTC}] flags=[] (0.2067ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e76219d67c0dd00003b", "template_dependencies.en"=>{"$in"=>["53369e77219d67c0dd00003f"]}}, "$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"=>"53369e77219d67c0dd00003f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3977ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e77219d67c0dd00003f"]}} 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_content_types selector={"site_id"=>"53369e76219d67c0dd00003b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5310ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e77219d67c0dd000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e76219d67c0dd00003b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e77219d67c0dd000041", "updated_at"=>2014-03-29 10:20:39 UTC, "created_at"=>2014-03-29 10:20:39 UTC, "entries_custom_fields"=>[{"_id"=>"53369e77219d67c0dd000041", "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.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e77219d67c0dd000042"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e77219d67c0dd000040"]}} 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=locomotive_content_entries selector={"content_type_id"=>"53369e77219d67c0dd000040", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4430ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e77219d67c0dd000040"]}}} (0.4401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e77219d67c0dd000042", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e77219d67c0dd000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e77219d67c0dd000040", "content_type_id"=>"53369e77219d67c0dd000040", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e76219d67c0dd00003b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:39 UTC, "created_at"=>2014-03-29 10:20:39 UTC}] flags=[] (0.1700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e71219d67c0dd000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}} 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={"_id"=>{"$ne"=>"53369e72219d67c0dd000036"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5279ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1750ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e71219d67c0dd000032"} update={"$set"=>{"updated_at"=>2014-03-29 10:20:40 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1051ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e71219d67c0dd000032"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1259ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20: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.6180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "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 5.5ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 11:20: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.5279ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "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.5612ms) Rendered text template (0.0ms) Completed 200 OK in 556.5ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e71219d67c0dd000032"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5813ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e71219d67c0dd000032", "updated_at"=>{"$lt"=>2014-03-29 10:20:40 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53369e71219d67c0dd000032"]}} 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_sites selector={"$query"=>{"_id"=>"53369e70219d67c0dd00002e"}, "$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_content_types selector={"$query"=>{"_id"=>"53369e71219d67c0dd000032"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53369e71219d67c0dd000035"} update={"$set"=>{"updated_at"=>2014-03-29 10:20:41 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e70219d67c0dd00002e"}, "$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_content_types selector={"$query"=>{"_id"=>"53369e71219d67c0dd000032"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8547ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53369e72219d67c0dd000036"} update={"$set"=>{"updated_at"=>2014-03-29 10:20:41 UTC}} flags=[] (0.1621ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20: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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6588ms) Rendered text template (0.0ms) Completed 200 OK in 5.6ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 11:20:42 +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.5558ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e70219d67c0dd00002e", "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.6061ms) Rendered text template (0.0ms) Completed 200 OK in 554.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.7060ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.6992ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.3471ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3030ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8378ms) 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} (1.0700ms) 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.6561ms) 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.5410ms) 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.1290ms) 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.1223ms) 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 (3.2489ms) 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.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e80219d676477000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"908120df33c50445f2c6112b849074bfb51e223c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"fXdqxwufkyZKpBQpXpyf", "api_key"=>"e40be77b35d24a9e255afd412a741c698818df39", "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.1779ms) 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.9918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e80219d676477000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:20:48 UTC, "updated_at"=>2014-03-29 10:20:48 UTC, "memberships"=>[{"_id"=>"53369e80219d676477000003", "role"=>"admin", "account_id"=>"53369e80219d676477000001"}]}] flags=[] (0.2732ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e80219d676477000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7958ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e80219d676477000002", "_id"=>{"$ne"=>"53369e80219d676477000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e80219d676477000004", "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"=>"53369e80219d676477000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.2570ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e80219d676477000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e80219d676477000004"]}}, "$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"=>["53369e80219d676477000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e80219d676477000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e80219d676477000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e80219d676477000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e80219d676477000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e80219d676477000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e80219d676477000002", "_id"=>{"$ne"=>"53369e80219d676477000006"}, "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"=>"53369e80219d676477000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e80219d676477000006", "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"=>"53369e80219d676477000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.1910ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e80219d676477000006"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2959ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e80219d676477000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3808ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e80219d676477000006"]}} 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"=>"53369e80219d676477000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5500ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e80219d676477000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e80219d676477000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e80219d676477000008", "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC, "entries_custom_fields"=>[{"_id"=>"53369e80219d676477000008", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e80219d676477000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e80219d676477000009", "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", "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e80219d67647700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e80219d676477000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e80219d676477000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5322ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e80219d676477000007"]}}} (0.4280ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e80219d67647700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e80219d676477000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e80219d676477000007", "content_type_id"=>"53369e80219d676477000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e80219d676477000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.2503ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e80219d676477000007", "original_id"=>"53369e80219d67647700000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4449ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e80219d67647700000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369e80219d676477000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e80219d676477000007", "original_id"=>"53369e80219d67647700000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1726ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e80219d67647700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e80219d676477000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e80219d676477000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4170ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e80219d676477000007"]}}} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e80219d676477000007"]}}} (0.3099ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e80219d676477000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5109ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e80219d67647700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e80219d676477000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e80219d676477000007", "content_type_id"=>"53369e80219d676477000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e80219d676477000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e80219d676477000007", "original_id"=>"53369e80219d67647700000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4101ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e80219d67647700000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369e80219d676477000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e80219d676477000007", "original_id"=>"53369e80219d67647700000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2170ms) 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.6478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "$or"=>[{"slug.en"=>"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"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002", "_id"=>{"$ne"=>"53369e80219d67647700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e80219d676477000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7102ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e80219d67647700000e", "parent_ids"=>["53369e80219d676477000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e80219d67647700000e"]}}, "$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"=>"53369e80219d67647700000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5786ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e80219d67647700000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e80219d67647700000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e80219d67647700000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369e80219d676477000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e80219d67647700000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2892ms) 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.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "$or"=>[{"slug.en"=>"unpublished-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"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002", "_id"=>{"$ne"=>"53369e80219d676477000010"}, "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"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002"}, "$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"=>"53369e80219d676477000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e80219d676477000010", "parent_ids"=>["53369e80219d676477000004"], "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"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:48 UTC, "created_at"=>2014-03-29 10:20:48 UTC}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e80219d676477000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3278ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e80219d676477000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e80219d676477000010"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1278ms) 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"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "$or"=>[{"slug.en"=>"seems-findable"}]} 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"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002", "_id"=>{"$ne"=>"53369e81219d676477000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002"}, "$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"=>"53369e80219d676477000004"}]}]}, "$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"=>"53369e81219d676477000011", "parent_ids"=>["53369e80219d676477000004"], "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"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e81219d676477000011"]}}, "$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"=>"53369e81219d676477000011"}, "$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"=>["53369e81219d676477000011"]}} 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.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002", "_id"=>{"$ne"=>"53369e81219d676477000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0369ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e80219d676477000004", "site_id"=>"53369e80219d676477000002"}, "$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"=>"53369e80219d676477000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e81219d676477000012", "parent_ids"=>["53369e80219d676477000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e80219d676477000002", "parent_id"=>"53369e80219d676477000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC}] flags=[] (0.2322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e81219d676477000012"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4668ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e81219d676477000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5031ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e81219d676477000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e81219d676477000012", "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"=>"53369e81219d676477000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369e80219d676477000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e81219d676477000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e80219d676477000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e80219d676477000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:20:49 UTC}} flags=[] (0.1600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002", "template_dependencies.en"=>{"$in"=>["53369e80219d676477000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e80219d676477000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6301ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369e80219d676477000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369e80219d676477000002", :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 (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.3510ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e81219d676477000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:20:48 UTC, "updated_at"=>2014-03-29 10:20:49 UTC, "memberships"=>[{"_id"=>"53369e81219d676477000015", "role"=>"admin", "account_id"=>"53369e80219d676477000001"}]}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e81219d676477000014", "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"=>"53369e81219d676477000014", "_id"=>{"$ne"=>"53369e81219d676477000016"}, "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"=>"53369e81219d676477000016", "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"=>"53369e81219d676477000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC}] flags=[] (0.1988ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e81219d676477000014", "template_dependencies.en"=>{"$in"=>["53369e81219d676477000016"]}}, "$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"=>"53369e81219d676477000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e81219d676477000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e81219d676477000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3331ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e81219d676477000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e81219d676477000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e81219d676477000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e81219d676477000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e81219d676477000014", "_id"=>{"$ne"=>"53369e81219d676477000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8552ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e81219d676477000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7029ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e81219d676477000018", "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"=>"53369e81219d676477000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC}] flags=[] (0.2618ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e81219d676477000014", "template_dependencies.en"=>{"$in"=>["53369e81219d676477000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e81219d676477000018"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53369e81219d676477000018"]}} 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"=>"53369e81219d676477000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5963ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e81219d676477000014", "_id"=>{"$ne"=>"53369e81219d676477000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9332ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e81219d676477000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5851ms) 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.3147ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e81219d676477000019", "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"=>"53369e81219d676477000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e81219d676477000014", "template_dependencies.en"=>{"$in"=>["53369e81219d676477000019"]}}, "$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"=>"53369e81219d676477000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e81219d676477000019"]}} 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"=>"53369e81219d676477000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4017ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e81219d67647700001a", "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=>"53369e81219d676477000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e81219d676477000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2341ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e81219d676477000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4258ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e81219d67647700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e81219d676477000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e81219d67647700001c", "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC, "entries_custom_fields"=>[{"_id"=>"53369e81219d67647700001c", "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.3521ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e81219d67647700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e81219d67647700001b"]}} 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_content_entries selector={"content_type_id"=>"53369e81219d67647700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5381ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e81219d67647700001b"]}}} (0.4659ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e81219d67647700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e81219d67647700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e81219d67647700001b", "content_type_id"=>"53369e81219d67647700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e81219d676477000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:49 UTC, "created_at"=>2014-03-29 10:20:49 UTC}] flags=[] (0.2060ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e81219d67647700001b", "original_id"=>"53369e81219d67647700001d", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e81219d67647700001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369e81219d676477000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e81219d67647700001b", "original_id"=>"53369e81219d67647700001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2320ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 11:20:50 +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.0540ms) 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.7343ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e80219d676477000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4480ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (18.2ms) Completed 200 OK in 38.0ms (Views: 30.8ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 11:20:50 +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-03-29 11:20:50 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (13ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 11:20:50 +0100 Served asset /locomotive/background/body.png - 200 OK (2ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 11:20:50 +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.9532ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e80219d676477000001"]}}, "$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"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6812ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e80219d676477000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 10:20:50 UTC, "updated_at"=>2014-03-29 10:20:50 UTC}} flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e80219d676477000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 10:20:50 UTC, "current_sign_in_at"=>2014-03-29 10:20:50 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 10:20:50 UTC}} flags=[] (0.1900ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 23.3ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 11:20:50 +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.6862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e80219d676477000001"}, "$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_accounts selector={"_id"=>{"$in"=>["53369e80219d676477000001"]}} 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"=>{"site_id"=>"53369e80219d676477000002"}, "$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.1430ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002"}, "$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.4179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e80219d676477000002"}, "$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"=>"53369e80219d676477000002"}, "$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"=>"53369e80219d676477000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7360ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (25.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (2.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (11.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e80219d676477000001", :role=>:admin}}}} (0.6027ms) Rendered locomotive/shared/_main_app_head.html.haml (1.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (13.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e80219d676477000001"}} (0.4768ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e80219d676477000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6437ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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.4ms) Rendered locomotive/shared/_main_app_header.html.haml (7.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (31.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (1.1ms) Completed 200 OK in 216.9ms (Views: 116.5ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 11:20:50 +0100 Served asset /locomotive.js - 200 OK (119ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 11:20:50 +0100 Served asset /locomotive.css - 200 OK (39ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 11:20:50 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 11:20:50 +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-03-29 11:20:51 +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-03-29 11:20:51 +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-03-29 11:20:51 +0100 Served asset /locomotive/nocoffee.png - 200 OK (1ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 11:20:51 +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.6273ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e80219d676477000001"}, "$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_accounts selector={"_id"=>{"$in"=>["53369e80219d676477000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002"}, "$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.1473ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e80219d676477000002"}, "$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.5819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e80219d676477000002"}, "$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.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e80219d676477000002"}, "$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.4468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e80219d676477000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7539ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (19.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (5.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (28.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e80219d676477000001", :role=>:admin}}}} (0.5953ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (5.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e80219d676477000001"}} (0.4480ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e80219d676477000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6437ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (10.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 63.6ms (Views: 48.6ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-03-29 11:20:51 +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.6311ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e80219d676477000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e80219d676477000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4458ms) 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"=>"53369e80219d676477000002", "locale"=>"en"}} (0.6378ms) Completed 200 OK in 19.3ms (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.8063ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.5318ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4231ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2832ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8419ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.6649ms) 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.4113ms) 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.1101ms) 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.1800ms) 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.0362ms) 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.3793ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e83219d67647700001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"8818e8f0474cc88b0cca49b918228ef0194e350c", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"6zNwPCiCU594duoBjAi2", "api_key"=>"4b183c37d77b4bc5a6975ff63dafd979670f3487", "updated_at"=>2014-03-29 10:20:51 UTC, "created_at"=>2014-03-29 10:20:51 UTC}] flags=[] (0.1218ms) 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.6638ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e83219d676477000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:20:48 UTC, "updated_at"=>2014-03-29 10:20:51 UTC, "memberships"=>[{"_id"=>"53369e83219d676477000021", "role"=>"admin", "account_id"=>"53369e83219d67647700001f"}]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e83219d676477000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e83219d676477000020", "_id"=>{"$ne"=>"53369e83219d676477000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53369e83219d676477000022", "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"=>"53369e83219d676477000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:51 UTC, "created_at"=>2014-03-29 10:20:51 UTC}] flags=[] (0.2398ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e83219d676477000022"]}}, "$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"=>"53369e83219d676477000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e83219d676477000022"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e83219d676477000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5367ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e83219d676477000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e83219d676477000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e83219d676477000022", "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"=>"53369e83219d676477000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>"53369e83219d676477000020", "_id"=>{"$ne"=>"53369e83219d676477000024"}, "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"=>nil, "site_id"=>"53369e83219d676477000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e83219d676477000024", "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"=>"53369e83219d676477000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:51 UTC, "created_at"=>2014-03-29 10:20:51 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e83219d676477000024"]}}, "$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"=>"53369e83219d676477000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e83219d676477000024"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e83219d676477000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4532ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e84219d676477000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e83219d676477000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e84219d676477000026", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC, "entries_custom_fields"=>[{"_id"=>"53369e84219d676477000026", "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.2062ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e84219d676477000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e84219d676477000027", "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", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}}} flags=[] (0.2370ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d676477000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e84219d676477000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5291ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}}} (0.5348ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e84219d676477000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e84219d676477000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "content_type_id"=>"53369e84219d676477000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e83219d676477000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "original_id"=>"53369e84219d676477000028", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369e83219d676477000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "original_id"=>"53369e84219d676477000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d67647700002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6640ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e84219d676477000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5059ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}}} (0.5019ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}}} (0.3593ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7839ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e84219d67647700002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e84219d676477000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "content_type_id"=>"53369e84219d676477000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e83219d676477000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "original_id"=>"53369e84219d67647700002a", "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"=>"53369e84219d67647700002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369e83219d676477000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "original_id"=>"53369e84219d67647700002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.6478ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020", "_id"=>{"$ne"=>"53369e84219d67647700002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e83219d676477000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d67647700002c", "parent_ids"=>["53369e83219d676477000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700002c"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d67647700002c"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53369e84219d67647700002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d67647700002c", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d67647700002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369e83219d676477000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d67647700002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1922ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "$or"=>[{"slug.en"=>"unpublished-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"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020", "_id"=>{"$ne"=>"53369e84219d67647700002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6349ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e83219d676477000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8340ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d67647700002e", "parent_ids"=>["53369e83219d676477000022"], "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"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2699ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700002e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"53369e84219d67647700002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d67647700002e"]}} 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.6621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020", "_id"=>{"$ne"=>"53369e84219d67647700002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e83219d676477000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6583ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d67647700002f", "parent_ids"=>["53369e83219d676477000022"], "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"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700002f"]}}, "$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"=>"53369e84219d67647700002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3810ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d67647700002f"]}} 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_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"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020", "_id"=>{"$ne"=>"53369e84219d676477000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e83219d676477000022", "site_id"=>"53369e83219d676477000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e83219d676477000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d676477000030", "parent_ids"=>["53369e83219d676477000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e83219d676477000020", "parent_id"=>"53369e83219d676477000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000030"]}}, "$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"=>"53369e84219d676477000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4072ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d676477000030"]}} 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"=>"53369e84219d676477000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369e83219d676477000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2298ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "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_sites selector={"$query"=>{"_id"=>"53369e83219d676477000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5102ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e83219d676477000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:20:52 UTC}} flags=[] (0.1919ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "template_dependencies.en"=>{"$in"=>["53369e83219d676477000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e83219d676477000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9739ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369e83219d676477000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369e83219d676477000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3910ms) 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.5429ms) 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.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e84219d676477000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:20:48 UTC, "updated_at"=>2014-03-29 10:20:52 UTC, "memberships"=>[{"_id"=>"53369e84219d676477000033", "role"=>"admin", "account_id"=>"53369e83219d67647700001f"}]}] flags=[] (0.3421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d676477000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d676477000032", "_id"=>{"$ne"=>"53369e84219d676477000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53369e84219d676477000034", "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"=>"53369e84219d676477000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.4141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d676477000032", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000034"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4117ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d676477000034"]}} 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"=>"53369e84219d676477000034", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e84219d676477000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d676477000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"53369e84219d676477000032", "_id"=>{"$ne"=>"53369e84219d676477000036"}, "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"=>"53369e84219d676477000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5271ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d676477000036", "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"=>"53369e84219d676477000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d676477000032", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000036"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000036"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4280ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d676477000036"]}} 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={"site_id"=>"53369e84219d676477000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d676477000032", "_id"=>{"$ne"=>"53369e84219d676477000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d676477000032"}, "$orderby"=>{"position"=>-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"=>{"_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"=>"53369e84219d676477000037", "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"=>"53369e84219d676477000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d676477000032", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000037"]}}, "$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"=>"53369e84219d676477000037"}, "$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"=>["53369e84219d676477000037"]}} 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"=>"53369e84219d676477000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3099ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000038", "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=>"53369e84219d676477000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e84219d676477000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4492ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e84219d676477000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e84219d676477000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e84219d67647700003a", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC, "entries_custom_fields"=>[{"_id"=>"53369e84219d67647700003a", "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.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d67647700003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000039"]}} 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"=>"53369e84219d676477000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5660ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000039"]}}} (0.7501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e84219d67647700003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e84219d676477000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e84219d676477000039", "content_type_id"=>"53369e84219d676477000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e84219d676477000032", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000039", "original_id"=>"53369e84219d67647700003b", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4320ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d67647700003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369e84219d676477000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e84219d676477000039", "original_id"=>"53369e84219d67647700003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d676477000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d67647700002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1562ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e84219d676477000025"} update={"$set"=>{"updated_at"=>2014-03-29 10:20:52 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e84219d676477000025"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.2749ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20:52 +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.6740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7999ms) Rendered text template (0.0ms) Completed 200 OK in 8.8ms (Views: 2.3ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 11:20:52 +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.6549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "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.6032ms) 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"=>"53369e83219d676477000020", "locale"=>"en"}} (0.4911ms) Rendered text template (0.0ms) Completed 200 OK in 6.4ms (Views: 0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e84219d676477000025"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e84219d676477000025", "updated_at"=>{"$lt"=>2014-03-29 10:20:52 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000025"]}} 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_sites selector={"$query"=>{"_id"=>"53369e83219d676477000020"}, "$orderby"=>{:_id=>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_content_types selector={"$query"=>{"_id"=>"53369e84219d676477000025"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6032ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"53369e84219d676477000028"} update={"$set"=>{"updated_at"=>2014-03-29 10:20:52 UTC}} flags=[] (0.2112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "original_id"=>"53369e84219d676477000028", "locale"=>"en"}, "$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=active_search_mongoid_indices selector={"_id"=>"53369e84219d676477000029"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369e83219d676477000020", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e83219d676477000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"53369e84219d676477000025"}, "$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=locomotive_content_entries selector={"_id"=>"53369e84219d67647700002a"} update={"$set"=>{"updated_at"=>2014-03-29 10:20:52 UTC}} flags=[] (0.1431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000025", "original_id"=>"53369e84219d67647700002a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369e84219d67647700002b"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369e83219d676477000020", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1869ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20:52 +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.7858ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7999ms) Rendered text template (0.0ms) Completed 200 OK in 6.6ms (Views: 0.8ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-03-29 11:20:52 +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.5531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e83219d676477000020", "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.6020ms) 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"=>"53369e83219d676477000020", "locale"=>"en"}} (0.4947ms) Rendered text template (0.0ms) Completed 200 OK in 7.3ms (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.9921ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.7150ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5422ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.6001ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4871ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5100ms) 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.4120ms) 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.1070ms) 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.1481ms) 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.3767ms) 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.4239ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e84219d67647700003d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"0e6b876da8f9c34bbadc7d60c6ab310947687688", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"WkEMNED4yopmuZJqoQuX", "api_key"=>"54dd68ea91ca0d9d7debedfc7858c7e69016df52", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.1199ms) 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.3469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e84219d67647700003e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:20:48 UTC, "updated_at"=>2014-03-29 10:20:52 UTC, "memberships"=>[{"_id"=>"53369e84219d67647700003f", "role"=>"admin", "account_id"=>"53369e84219d67647700003d"}]}] flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d67647700003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5350ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d67647700003e", "_id"=>{"$ne"=>"53369e84219d676477000040"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"53369e84219d676477000040", "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"=>"53369e84219d67647700003e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.3080ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000040"]}}, "$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"=>"53369e84219d676477000040"}, "$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"=>["53369e84219d676477000040"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1118ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000040", "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"=>"53369e84219d676477000041", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e84219d67647700003e", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000040", "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"=>"53369e84219d67647700003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d67647700003e", "_id"=>{"$ne"=>"53369e84219d676477000042"}, "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"=>"53369e84219d67647700003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d676477000042", "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"=>"53369e84219d67647700003e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000042"]}}, "$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"=>"53369e84219d676477000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3700ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d676477000042"]}} 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"=>"53369e84219d67647700003e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4261ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e84219d676477000043", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e84219d67647700003e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e84219d676477000044", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC, "entries_custom_fields"=>[{"_id"=>"53369e84219d676477000044", "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.2391ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e84219d676477000043"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e84219d676477000045", "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", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}}} flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d676477000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e84219d676477000043", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4518ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000043"]}}} (0.4783ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e84219d676477000046", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e84219d676477000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e84219d676477000043", "content_type_id"=>"53369e84219d676477000043", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e84219d67647700003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000043", "original_id"=>"53369e84219d676477000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5009ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000047", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369e84219d67647700003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e84219d676477000043", "original_id"=>"53369e84219d676477000046", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1559ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d676477000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7317ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e84219d676477000043", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4139ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000043"]}}} (0.4101ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000043"]}}} (0.2718ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000043"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5100ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e84219d676477000048", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e84219d676477000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e84219d676477000043", "content_type_id"=>"53369e84219d676477000043", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e84219d67647700003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.1819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e84219d676477000043", "original_id"=>"53369e84219d676477000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3872ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000049", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369e84219d67647700003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e84219d676477000043", "original_id"=>"53369e84219d676477000048", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1721ms) 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.5949ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4778ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e", "_id"=>{"$ne"=>"53369e84219d67647700004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e84219d676477000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5817ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d67647700004a", "parent_ids"=>["53369e84219d676477000040"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700004a"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369e84219d67647700004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4961ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d67647700004a"]}} 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"=>"53369e84219d67647700004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d67647700004b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369e84219d67647700003e", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d67647700004a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] 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.6990ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5839ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e", "_id"=>{"$ne"=>"53369e84219d67647700004c"}, "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"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e84219d676477000040"}]}]}, "$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"=>"53369e84219d67647700004c", "parent_ids"=>["53369e84219d676477000040"], "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"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700004c"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369e84219d67647700004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3710ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d67647700004c"]}} 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.5641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5982ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e", "_id"=>{"$ne"=>"53369e84219d67647700004d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7608ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e84219d676477000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d67647700004d", "parent_ids"=>["53369e84219d676477000040"], "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"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700004d"]}}, "$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"=>"53369e84219d67647700004d"}, "$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"=>["53369e84219d67647700004d"]}} 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_pages selector={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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={"site_id"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5081ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e", "_id"=>{"$ne"=>"53369e84219d67647700004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8368ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000040", "site_id"=>"53369e84219d67647700003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e84219d676477000040"}]}]}, "$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"=>"53369e84219d67647700004e", "parent_ids"=>["53369e84219d676477000040"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e84219d67647700003e", "parent_id"=>"53369e84219d676477000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.3099ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d67647700004e"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53369e84219d67647700004e"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53369e84219d67647700004e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d67647700004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4241ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d67647700004f", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369e84219d67647700003e", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d67647700004e", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"53369e84219d67647700003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5221ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e84219d676477000040"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:20:52 UTC}} flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000040"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369e84219d676477000041"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369e84219d67647700003e", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1593ms) 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.6080ms) 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.3700ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e84219d676477000050", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:20:48 UTC, "updated_at"=>2014-03-29 10:20:52 UTC, "memberships"=>[{"_id"=>"53369e84219d676477000051", "role"=>"admin", "account_id"=>"53369e84219d67647700003d"}]}] flags=[] (0.1721ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d676477000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"53369e84219d676477000050", "_id"=>{"$ne"=>"53369e84219d676477000052"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6690ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d676477000052", "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"=>"53369e84219d676477000050", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d676477000050", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000052"]}}, "$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"=>{"parent_id"=>"53369e84219d676477000052"}, "$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"=>["53369e84219d676477000052"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000052", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d676477000053", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e84219d676477000050", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000052", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e84219d676477000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d676477000050", "_id"=>{"$ne"=>"53369e84219d676477000054"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d676477000050"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d676477000054", "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"=>"53369e84219d676477000050", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2859ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d676477000050", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000054"]}}, "$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"=>"53369e84219d676477000054"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3769ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e84219d676477000054"]}} 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={"site_id"=>"53369e84219d676477000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"53369e84219d676477000050", "_id"=>{"$ne"=>"53369e84219d676477000055"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e84219d676477000050"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6871ms) 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.4418ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e84219d676477000055", "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"=>"53369e84219d676477000050", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d676477000050", "template_dependencies.en"=>{"$in"=>["53369e84219d676477000055"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"53369e84219d676477000055"}, "$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"=>["53369e84219d676477000055"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000055", "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"=>"53369e84219d676477000056", "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=>"53369e84219d676477000050", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e84219d676477000055", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e84219d676477000050", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4630ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e84219d676477000057", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e84219d676477000050", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e84219d676477000058", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 UTC, "entries_custom_fields"=>[{"_id"=>"53369e84219d676477000058", "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.3231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e84219d676477000059"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000057"]}} 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"=>"53369e84219d676477000057", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4821ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e84219d676477000057"]}}} (0.4680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e84219d676477000059", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e84219d676477000057", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e84219d676477000057", "content_type_id"=>"53369e84219d676477000057", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e84219d676477000050", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:52 UTC, "created_at"=>2014-03-29 10:20:52 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::ContentEntry53369e84219d676477000057", "original_id"=>"53369e84219d676477000059", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5069ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e84219d67647700005a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369e84219d676477000050", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e84219d676477000057", "original_id"=>"53369e84219d676477000059", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1450ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20:52 +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.5260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5779ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-03-29 11:20:52 +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.7339ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "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.7861ms) 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"=>"53369e84219d67647700003e", "locale"=>"en"}} (0.5298ms) Rendered text template (0.0ms) Completed 200 OK in 7.9ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-03-29 11:20:52 +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.5713ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "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.6132ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2014-03-29 11:20:52 +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.5093ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5481ms) Rendered text template (0.0ms) Completed 200 OK in 4.1ms (Views: 0.3ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-03-29 11:20:52 +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.6022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e84219d67647700003e", "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.5877ms) 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"=>"53369e84219d67647700003e", "locale"=>"en"}} (0.4442ms) Rendered text template (0.0ms) Completed 200 OK in 5.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.6053ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7639ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5169ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4771ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4621ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8049ms) 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.6380ms) 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.6011ms) 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.1438ms) 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.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.8452ms) 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.5119ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e89219d67b567000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"745e1a269bbe6a8825b32dad2070309cdfc52596", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"WDg5nA2cciRsWYMDbYBW", "api_key"=>"f97b1caf64c40e0b8e72e295a6634175e2ba26cd", "updated_at"=>2014-03-29 10:20:57 UTC, "created_at"=>2014-03-29 10:20:57 UTC}] flags=[] (0.2041ms) 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.8628ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e89219d67b567000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:20:57 UTC, "updated_at"=>2014-03-29 10:20:57 UTC, "memberships"=>[{"_id"=>"53369e89219d67b567000003", "role"=>"admin", "account_id"=>"53369e89219d67b567000001"}]}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e89219d67b567000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e89219d67b567000002", "_id"=>{"$ne"=>"53369e8a219d67b567000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4399ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8a219d67b567000004", "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"=>"53369e89219d67b567000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000004"]}}, "$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"=>["53369e8a219d67b567000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000004", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b567000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e89219d67b567000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e89219d67b567000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e89219d67b567000002", "_id"=>{"$ne"=>"53369e8a219d67b567000006"}, "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"=>"53369e89219d67b567000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e8a219d67b567000006", "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"=>"53369e89219d67b567000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000006"]}}, "$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"=>"53369e8a219d67b567000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3598ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e89219d67b567000002", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"53369e8a219d67b567000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e89219d67b567000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e8a219d67b567000008", "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC, "entries_custom_fields"=>[{"_id"=>"53369e8a219d67b567000008", "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.2460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e8a219d67b567000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e8a219d67b567000009", "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", "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}}} flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e8a219d67b56700000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b567000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e8a219d67b567000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5512ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b567000007"]}}} (0.4599ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e8a219d67b56700000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e8a219d67b567000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e8a219d67b567000007", "content_type_id"=>"53369e8a219d67b567000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e89219d67b567000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 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::ContentEntry53369e8a219d67b567000007", "original_id"=>"53369e8a219d67b56700000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4983ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b56700000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369e89219d67b567000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e8a219d67b567000007", "original_id"=>"53369e8a219d67b56700000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1762ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e8a219d67b56700000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b567000007"]}} 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"=>"53369e8a219d67b567000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4320ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b567000007"]}}} (0.4399ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b567000007"]}}} (0.3052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b567000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4768ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e8a219d67b56700000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e8a219d67b567000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e8a219d67b567000007", "content_type_id"=>"53369e8a219d67b567000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e89219d67b567000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.1922ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e8a219d67b567000007", "original_id"=>"53369e8a219d67b56700000c", "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"=>"53369e8a219d67b56700000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369e89219d67b567000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e8a219d67b567000007", "original_id"=>"53369e8a219d67b56700000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2213ms) 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"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002", "_id"=>{"$ne"=>"53369e8a219d67b56700000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e8a219d67b567000004"}]}]}, "$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"=>"53369e8a219d67b56700000e", "parent_ids"=>["53369e8a219d67b567000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2849ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b56700000e"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3963ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b56700000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4108ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b56700000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b56700000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2971ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b56700000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369e89219d67b567000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b56700000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This 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.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002", "_id"=>{"$ne"=>"53369e8a219d67b567000010"}, "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"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e8a219d67b567000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5352ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8a219d67b567000010", "parent_ids"=>["53369e8a219d67b567000004"], "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"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2360ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3610ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000010"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5567ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002", "_id"=>{"$ne"=>"53369e8a219d67b567000011"}, "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"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002"}, "$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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e8a219d67b567000004"}]}]}, "$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"=>"53369e8a219d67b567000011", "parent_ids"=>["53369e8a219d67b567000004"], "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"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000011"]}}, "$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"=>"53369e8a219d67b567000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5057ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1562ms) 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.9029ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002", "_id"=>{"$ne"=>"53369e8a219d67b567000012"}, "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"=>"53369e8a219d67b567000004", "site_id"=>"53369e89219d67b567000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e8a219d67b567000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8a219d67b567000012", "parent_ids"=>["53369e8a219d67b567000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e89219d67b567000002", "parent_id"=>"53369e8a219d67b567000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2239ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000012"]}}, "$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"=>"53369e8a219d67b567000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4802ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000012"]}} 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"=>"53369e8a219d67b567000012", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b567000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369e89219d67b567000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1900ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"53369e89219d67b567000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3300ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e8a219d67b567000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:20:58 UTC}} flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6180ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369e8a219d67b567000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369e89219d67b567000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1578ms) 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.3691ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e8a219d67b567000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:20:57 UTC, "updated_at"=>2014-03-29 10:20:58 UTC, "memberships"=>[{"_id"=>"53369e8a219d67b567000015", "role"=>"admin", "account_id"=>"53369e89219d67b567000001"}]}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8a219d67b567000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"53369e8a219d67b567000014", "_id"=>{"$ne"=>"53369e8a219d67b567000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4809ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8a219d67b567000016", "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"=>"53369e8a219d67b567000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.1993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8a219d67b567000014", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000016"]}}, "$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"=>"53369e8a219d67b567000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4060ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000016"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b567000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e8a219d67b567000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8a219d67b567000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5760ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8a219d67b567000014", "_id"=>{"$ne"=>"53369e8a219d67b567000018"}, "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"=>nil, "site_id"=>"53369e8a219d67b567000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6158ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8a219d67b567000018", "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"=>"53369e8a219d67b567000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8a219d67b567000014", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000018"]}}, "$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"=>"53369e8a219d67b567000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4799ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8a219d67b567000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>nil, "site_id"=>"53369e8a219d67b567000014", "_id"=>{"$ne"=>"53369e8a219d67b567000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7753ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8a219d67b567000014"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2849ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8a219d67b567000019", "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"=>"53369e8a219d67b567000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8a219d67b567000014", "template_dependencies.en"=>{"$in"=>["53369e8a219d67b567000019"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3259ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8a219d67b567000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4058ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8a219d67b567000019"]}} 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"=>"53369e8a219d67b567000019", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b56700001a", "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=>"53369e8a219d67b567000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8a219d67b567000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e8a219d67b567000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e8a219d67b56700001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e8a219d67b567000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e8a219d67b56700001c", "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 UTC, "entries_custom_fields"=>[{"_id"=>"53369e8a219d67b56700001c", "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.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e8a219d67b56700001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b56700001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7010ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e8a219d67b56700001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6039ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8a219d67b56700001b"]}}} (0.6640ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e8a219d67b56700001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e8a219d67b56700001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e8a219d67b56700001b", "content_type_id"=>"53369e8a219d67b56700001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e8a219d67b567000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:20:58 UTC, "created_at"=>2014-03-29 10:20:58 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::ContentEntry53369e8a219d67b56700001b", "original_id"=>"53369e8a219d67b56700001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5181ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8a219d67b56700001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369e8a219d67b567000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e8a219d67b56700001b", "original_id"=>"53369e8a219d67b56700001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1767ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 11:20:59 +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.9708ms) 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"=>{"$in"=>["53369e89219d67b567000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6490ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (16.7ms) Completed 200 OK in 37.3ms (Views: 30.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-03-29 11:20:59 +0100 Served asset /locomotive/not_logged_in.js - 200 OK (10ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-03-29 11:20:59 +0100 Served asset /locomotive/not_logged_in.css - 200 OK (83ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-03-29 11:20:59 +0100 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 11:20:59 +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.6230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e89219d67b567000001"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5229ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e89219d67b567000001"} update={"$set"=>{"remember_created_at"=>2014-03-29 10:20:59 UTC, "updated_at"=>2014-03-29 10:20:59 UTC}} flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e89219d67b567000001"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 10:20:59 UTC, "current_sign_in_at"=>2014-03-29 10:20:59 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 10:20:59 UTC}} flags=[] (0.1678ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.9ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 11:20:59 +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"=>"53369e89219d67b567000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3030ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e89219d67b567000001"]}} 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_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.2600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.0328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.4549ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e8a219d67b567000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8631ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (25.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (2.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (3.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (10.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (46.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e89219d67b567000001", :role=>:admin}}}} (0.6139ms) Rendered locomotive/shared/_main_app_head.html.haml (2.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (15.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e89219d67b567000001"}} (0.4909ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e89219d67b567000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8287ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_site_picker.html.haml (5.2ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (4.1ms) Rendered locomotive/shared/_main_app_header.html.haml (6.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (31.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (1.3ms) Completed 200 OK in 135.1ms (Views: 118.6ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-03-29 11:20:59 +0100 Served asset /locomotive.js - 200 OK (109ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-03-29 11:20:59 +0100 Served asset /locomotive.css - 200 OK (40ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-03-29 11:21:00 +0100 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-03-29 11:21:00 +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-03-29 11:21:00 +0100 Served asset /locomotive/list/item-left.png - 200 OK (2ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-03-29 11:21:00 +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-03-29 11:21:00 +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-03-29 11:21:00 +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.6542ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e89219d67b567000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3483ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e89219d67b567000001"]}} 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"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.2109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.6700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e89219d67b567000002"}, "$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.5031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e8a219d67b567000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.9191ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (16.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (0.8ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e89219d67b567000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6971ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/custom_fields/_select_templates.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/custom_fields/_form.html.haml (66.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e89219d67b567000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4768ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/content_types/_form.html.haml (89.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_form_actions.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (119.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e89219d67b567000001", :role=>:admin}}}} (0.8090ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (8.2ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e89219d67b567000001"}} (0.4911ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e89219d67b567000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5319ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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 (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (9.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 158.6ms (Views: 144.3ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-03-29 11:21:00 +0100 Served asset /locomotive/form/input-sep.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.6683ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.3372ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.2972ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.2867ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2012ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7789ms) 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.4139ms) 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.1070ms) 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.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 (1.0629ms) 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.4349ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"53369e8c219d67b567000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"6ce84c512e5b7391423bb6f63c7f41d745459190", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"yConro68stiXN8faFsMG", "api_key"=>"223f8a05c4dd3c53cc7017c83995d61895c7509f", "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.1130ms) 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.7122ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e8c219d67b567000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-03-29 10:20:57 UTC, "updated_at"=>2014-03-29 10:21:00 UTC, "memberships"=>[{"_id"=>"53369e8c219d67b567000022", "role"=>"admin", "account_id"=>"53369e8c219d67b567000020"}]}] flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8c219d67b567000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8600ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8c219d67b567000021", "_id"=>{"$ne"=>"53369e8c219d67b567000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5322ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8c219d67b567000023", "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"=>"53369e8c219d67b567000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000023"}, "$orderby"=>{"position"=>1}} 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_pages selector={"parent_ids"=>{"$in"=>["53369e8c219d67b567000023"]}} 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"=>"53369e8c219d67b567000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8c219d67b567000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e8c219d67b567000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b567000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8c219d67b567000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5603ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8c219d67b567000021", "_id"=>{"$ne"=>"53369e8c219d67b567000025"}, "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"=>"53369e8c219d67b567000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8c219d67b567000025", "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"=>"53369e8c219d67b567000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000025"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000025"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8c219d67b567000025"]}} 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_content_types selector={"site_id"=>"53369e8c219d67b567000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4559ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e8c219d67b567000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e8c219d67b567000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e8c219d67b567000027", "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC, "entries_custom_fields"=>[{"_id"=>"53369e8c219d67b567000027", "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 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"53369e8c219d67b567000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"53369e8c219d67b567000028", "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", "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}}} flags=[] (0.3071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e8c219d67b567000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b567000026"]}} 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_content_entries selector={"content_type_id"=>"53369e8c219d67b567000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6521ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b567000026"]}}} (0.5131ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e8c219d67b567000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e8c219d67b567000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e8c219d67b567000026", "content_type_id"=>"53369e8c219d67b567000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"53369e8c219d67b567000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.3941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e8c219d67b567000026", "original_id"=>"53369e8c219d67b567000029", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5970ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8c219d67b56700002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"53369e8c219d67b567000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e8c219d67b567000026", "original_id"=>"53369e8c219d67b567000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e8c219d67b56700002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b567000026"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"53369e8c219d67b567000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6189ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b567000026"]}}} (0.4959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b567000026"]}}} (0.4289ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b567000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e8c219d67b56700002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e8c219d67b567000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e8c219d67b567000026", "content_type_id"=>"53369e8c219d67b567000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"53369e8c219d67b567000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e8c219d67b567000026", "original_id"=>"53369e8c219d67b56700002b", "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"=>"53369e8c219d67b56700002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"53369e8c219d67b567000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e8c219d67b567000026", "original_id"=>"53369e8c219d67b56700002b", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1547ms) 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"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021", "_id"=>{"$ne"=>"53369e8c219d67b56700002d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e8c219d67b567000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5314ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8c219d67b56700002d", "parent_ids"=>["53369e8c219d67b567000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2589ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b56700002d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3188ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b56700002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3600ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8c219d67b56700002d"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b56700002d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3152ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8c219d67b56700002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"53369e8c219d67b567000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b56700002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1910ms) 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"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021", "_id"=>{"$ne"=>"53369e8c219d67b56700002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e8c219d67b567000023"}]}]}, "$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"=>"53369e8c219d67b56700002f", "parent_ids"=>["53369e8c219d67b567000023"], "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"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b56700002f"]}}, "$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"=>"53369e8c219d67b56700002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8c219d67b56700002f"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021", "_id"=>{"$ne"=>"53369e8c219d67b567000030"}, "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"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8078ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"53369e8c219d67b567000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8490ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8c219d67b567000030", "parent_ids"=>["53369e8c219d67b567000023"], "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"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.3593ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000030"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5281ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8c219d67b567000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1652ms) 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.6883ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "$or"=>[{"slug.en"=>"search"}]} 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"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021", "_id"=>{"$ne"=>"53369e8c219d67b567000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"53369e8c219d67b567000023", "site_id"=>"53369e8c219d67b567000021"}, "$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"=>"53369e8c219d67b567000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8032ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8c219d67b567000031", "parent_ids"=>["53369e8c219d67b567000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"53369e8c219d67b567000021", "parent_id"=>"53369e8c219d67b567000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.4930ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000031"]}}, "$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"=>"53369e8c219d67b567000031"}, "$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"=>["53369e8c219d67b567000031"]}} 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"=>"53369e8c219d67b567000031", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3541ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8c219d67b567000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"53369e8c219d67b567000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b567000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"53369e8c219d67b567000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4420ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"53369e8c219d67b567000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-03-29 10:21:00 UTC}} flags=[] (0.1669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b567000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7770ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"53369e8c219d67b567000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"53369e8c219d67b567000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.2220ms) 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.5860ms) 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.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"53369e8c219d67b567000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-03-29 10:20:57 UTC, "updated_at"=>2014-03-29 10:21:00 UTC, "memberships"=>[{"_id"=>"53369e8c219d67b567000034", "role"=>"admin", "account_id"=>"53369e8c219d67b567000020"}]}] flags=[] (0.2379ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8c219d67b567000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6580ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8c219d67b567000033", "_id"=>{"$ne"=>"53369e8c219d67b567000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"53369e8c219d67b567000035", "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"=>"53369e8c219d67b567000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2933ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000033", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000035"]}}, "$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"=>"53369e8c219d67b567000035"}, "$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"=>["53369e8c219d67b567000035"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2842ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b567000035", "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"=>"53369e8c219d67b567000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"53369e8c219d67b567000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b567000035", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"53369e8c219d67b567000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6661ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8c219d67b567000033", "_id"=>{"$ne"=>"53369e8c219d67b567000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8c219d67b567000033"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"53369e8c219d67b567000037", "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"=>"53369e8c219d67b567000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2100ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000033", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000037"]}}, "$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"=>"53369e8c219d67b567000037"}, "$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"=>["53369e8c219d67b567000037"]}} 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={"site_id"=>"53369e8c219d67b567000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"53369e8c219d67b567000033", "_id"=>{"$ne"=>"53369e8c219d67b567000038"}, "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"=>"53369e8c219d67b567000033"}, "$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.3731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"53369e8c219d67b567000038", "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"=>"53369e8c219d67b567000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC}] flags=[] (0.2003ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000033", "template_dependencies.en"=>{"$in"=>["53369e8c219d67b567000038"]}}, "$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"=>"53369e8c219d67b567000038"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4930ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["53369e8c219d67b567000038"]}} 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"=>"53369e8c219d67b567000038", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3471ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"53369e8c219d67b567000039", "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=>"53369e8c219d67b567000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"53369e8c219d67b567000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3309ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"53369e8c219d67b567000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6993ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"53369e8c219d67b56700003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"53369e8c219d67b567000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"53369e8c219d67b56700003b", "updated_at"=>2014-03-29 10:21:00 UTC, "created_at"=>2014-03-29 10:21:00 UTC, "entries_custom_fields"=>[{"_id"=>"53369e8c219d67b56700003b", "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.4172ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"53369e8d219d67b56700003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b56700003a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"53369e8c219d67b56700003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4859ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry53369e8c219d67b56700003a"]}}} (0.5329ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"53369e8d219d67b56700003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry53369e8c219d67b56700003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry53369e8c219d67b56700003a", "content_type_id"=>"53369e8c219d67b56700003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"53369e8c219d67b567000033", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-03-29 10:21:01 UTC, "created_at"=>2014-03-29 10:21:01 UTC}] flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry53369e8c219d67b56700003a", "original_id"=>"53369e8d219d67b56700003c", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"53369e8d219d67b56700003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"53369e8c219d67b567000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry53369e8c219d67b56700003a", "original_id"=>"53369e8d219d67b56700003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1411ms) Started GET "/locomotive" for 127.0.0.1 at 2014-03-29 11:21:01 +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.6018ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e8c219d67b567000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4699ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (4.0ms) Completed 200 OK in 9.2ms (Views: 5.8ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-03-29 11:21:01 +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.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["53369e8c219d67b567000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4680ms) 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.4389ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e8c219d67b567000020"} update={"$set"=>{"remember_created_at"=>2014-03-29 10:21:01 UTC, "updated_at"=>2014-03-29 10:21:01 UTC}} flags=[] (0.1059ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"53369e8c219d67b567000020"} update={"$set"=>{"last_sign_in_at"=>2014-03-29 10:21:01 UTC, "current_sign_in_at"=>2014-03-29 10:21:01 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-03-29 10:21:01 UTC}} flags=[] (0.1061ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 8.5ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-03-29 11:21:01 +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.5367ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e8c219d67b567000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e8c219d67b567000020"]}} 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"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.0850ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.3680ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.5620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.4878ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e8c219d67b567000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7212ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (13.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_page.html.haml (7.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (24.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e8c219d67b567000020", :role=>:admin}}}} (0.5460ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_head.html.haml (5.1ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"53369e8c219d67b567000020"}} (0.4840ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e8c219d67b567000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5820ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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 (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (8.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 56.0ms (Views: 41.2ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-03-29 11:21:01 +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.7269ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"53369e8c219d67b567000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3431ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["53369e8c219d67b567000020"]}} 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_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.1892ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.4840ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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.4230ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"53369e8c219d67b567000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6862ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/menu/_contents.html.haml (12.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/content_assets/_picker.html.haml (8.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/theme_assets/_picker.html.haml (5.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_editable_elements.html.haml (5.2ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"53369e8c219d67b567000021"}, "$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"=>"53369e8c219d67b567000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7019ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/_form.html.haml (99.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (121.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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=>"53369e8c219d67b567000020", :role=>:admin}}}} (0.5431ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e8c219d67b567000020"}} (0.4902ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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"=>"53369e8c219d67b567000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5438ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_header.html.haml (8.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/cells/locomotive/main_menu/show.html.haml (0.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-c0bddd719ddf/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 160.5ms (Views: 143.4ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-03-29 11:21:01 +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.7608ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7577ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5000ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.4597ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4649ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (6.6643ms) 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 (37.6840ms) 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.4771ms) 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 (7.6091ms) 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} (12.2020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a786c87f6432c53000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"915385555c4fe77a1d0524412967783877169155", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"EnyymCeZMHtVRHWMGnpq", "api_key"=>"fdb55a3e198693f231aa881911a367663ff9600f", "updated_at"=>2014-04-01 08:27:24 UTC, "created_at"=>2014-04-01 08:27:24 UTC}] flags=[] (0.1721ms) 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} (28.4622ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a786c87f6432c53000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:27:23 UTC, "updated_at"=>2014-04-01 08:27:24 UTC, "memberships"=>[{"_id"=>"533a786c87f6432c53000003", "role"=>"admin", "account_id"=>"533a786c87f6432c53000001"}]}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a786c87f6432c53000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (26.5961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a786c87f6432c53000002", "_id"=>{"$ne"=>"533a786c87f6432c53000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0688ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a786c87f6432c53000004", "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"=>"533a786c87f6432c53000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:24 UTC, "created_at"=>2014-04-01 08:27:24 UTC}] flags=[] (0.2098ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a786c87f6432c53000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.9319ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a786c87f6432c53000004"]}}, "$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"=>["533a786c87f6432c53000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a786c87f6432c53000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a786c87f6432c53000002", "_id"=>{"$ne"=>"533a786e87f6432c53000005"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (6.6612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a786c87f6432c53000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a786e87f6432c53000005", "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"=>"533a786c87f6432c53000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:26 UTC, "created_at"=>2014-04-01 08:27:26 UTC}] flags=[] (0.4070ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a786e87f6432c53000005"]}}, "$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"=>"533a786e87f6432c53000005"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3681ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a786e87f6432c53000005"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a786c87f6432c53000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4470ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a786e87f6432c53000006", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a786c87f6432c53000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a786e87f6432c53000007", "updated_at"=>2014-04-01 08:27:26 UTC, "created_at"=>2014-04-01 08:27:26 UTC, "entries_custom_fields"=>[{"_id"=>"533a786e87f6432c53000007", "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.2620ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a786e87f6432c53000006"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a786e87f6432c53000008", "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", "updated_at"=>2014-04-01 08:27:26 UTC, "created_at"=>2014-04-01 08:27:26 UTC}}} flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a786e87f6432c53000009"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a786e87f6432c53000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (6.9671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a786e87f6432c53000006", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5331ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a786e87f6432c53000006"]}}} (0.4420ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a786e87f6432c53000009", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a786e87f6432c53000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a786e87f6432c53000006", "content_type_id"=>"533a786e87f6432c53000006", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a786c87f6432c53000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:27:26 UTC, "created_at"=>2014-04-01 08:27:26 UTC}] flags=[] (0.2031ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a787187f6432c5300000a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a786e87f6432c53000006"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6378ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a786e87f6432c53000006", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4973ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a786e87f6432c53000006"]}}} (0.4761ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a786e87f6432c53000006"]}}} (0.4392ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a786e87f6432c53000006"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (6.5939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a787187f6432c5300000a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a786e87f6432c53000006", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a786e87f6432c53000006", "content_type_id"=>"533a786e87f6432c53000006", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a786c87f6432c53000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:27:29 UTC, "created_at"=>2014-04-01 08:27:29 UTC}] flags=[] (0.2480ms) 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.7322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5491ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002", "_id"=>{"$ne"=>"533a787187f6432c5300000b"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6039ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a786c87f6432c53000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a787187f6432c5300000b", "parent_ids"=>["533a786c87f6432c53000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:29 UTC, "created_at"=>2014-04-01 08:27:29 UTC}] flags=[] (0.4151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a787187f6432c5300000b"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4392ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a787187f6432c5300000b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8211ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a787187f6432c5300000b"]}} 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.8481ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002", "_id"=>{"$ne"=>"533a787a87f6432c5300000c"}, "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"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a786c87f6432c53000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a787a87f6432c5300000c", "parent_ids"=>["533a786c87f6432c53000004"], "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"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:38 UTC, "created_at"=>2014-04-01 08:27:38 UTC}] flags=[] (0.2272ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a787a87f6432c5300000c"]}}, "$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"=>"533a787a87f6432c5300000c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3479ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a787a87f6432c5300000c"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002", "_id"=>{"$ne"=>"533a787a87f6432c5300000d"}, "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"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533a786c87f6432c53000004"}]}]}, "$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"=>"533a787a87f6432c5300000d", "parent_ids"=>["533a786c87f6432c53000004"], "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"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:38 UTC, "created_at"=>2014-04-01 08:27:38 UTC}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a787a87f6432c5300000d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3011ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a787a87f6432c5300000d"}, "$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"=>["533a787a87f6432c5300000d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1159ms) 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.5651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002", "_id"=>{"$ne"=>"533a787a87f6432c5300000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8171ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a786c87f6432c53000004", "site_id"=>"533a786c87f6432c53000002"}, "$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"=>"533a786c87f6432c53000004"}]}]}, "$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"=>"533a787a87f6432c5300000e", "parent_ids"=>["533a786c87f6432c53000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a786c87f6432c53000002", "parent_id"=>"533a786c87f6432c53000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:38 UTC, "created_at"=>2014-04-01 08:27:38 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a787a87f6432c5300000e"]}}, "$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"=>"533a787a87f6432c5300000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3557ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a787a87f6432c5300000e"]}} 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"=>{"site_id"=>"533a786c87f6432c53000002", "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"=>"533a786c87f6432c53000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.9460ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533a786c87f6432c53000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:27:42 UTC}} flags=[] (0.1781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002", "template_dependencies.en"=>{"$in"=>["533a786c87f6432c53000004"]}}, "$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_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_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"=>"533a787f87f6432c5300000f", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:27:23 UTC, "updated_at"=>2014-04-01 08:27:43 UTC, "memberships"=>[{"_id"=>"533a787f87f6432c53000010", "role"=>"admin", "account_id"=>"533a786c87f6432c53000001"}]}] flags=[] (0.3541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a787f87f6432c5300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5231ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a787f87f6432c5300000f", "_id"=>{"$ne"=>"533a787f87f6432c53000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4988ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a787f87f6432c53000011", "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"=>"533a787f87f6432c5300000f", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:43 UTC, "created_at"=>2014-04-01 08:27:43 UTC}] flags=[] (0.3290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a787f87f6432c5300000f", "template_dependencies.en"=>{"$in"=>["533a787f87f6432c53000011"]}}, "$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"=>"533a787f87f6432c53000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3779ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a787f87f6432c53000011"]}} 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_pages selector={"site_id"=>"533a787f87f6432c5300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7229ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a787f87f6432c5300000f", "_id"=>{"$ne"=>"533a788887f6432c53000012"}, "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"=>"533a787f87f6432c5300000f"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"533a788887f6432c53000012", "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"=>"533a787f87f6432c5300000f", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:52 UTC, "created_at"=>2014-04-01 08:27:52 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a787f87f6432c5300000f", "template_dependencies.en"=>{"$in"=>["533a788887f6432c53000012"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a788887f6432c53000012"}, "$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"=>["533a788887f6432c53000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1459ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a787f87f6432c5300000f", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a787f87f6432c5300000f", "_id"=>{"$ne"=>"533a788887f6432c53000013"}, "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"=>"533a787f87f6432c5300000f"}, "$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={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2680ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a788887f6432c53000013", "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"=>"533a787f87f6432c5300000f", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:27:52 UTC, "created_at"=>2014-04-01 08:27:52 UTC}] flags=[] (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a787f87f6432c5300000f", "template_dependencies.en"=>{"$in"=>["533a788887f6432c53000013"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (5.8270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a788887f6432c53000013"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3920ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a788887f6432c53000013"]}} 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_content_types selector={"site_id"=>"533a787f87f6432c5300000f", "slug"=>"examples"} 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_content_types documents=[{"_id"=>"533a788987f6432c53000014", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a787f87f6432c5300000f", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a788987f6432c53000015", "updated_at"=>2014-04-01 08:27:53 UTC, "created_at"=>2014-04-01 08:27:53 UTC, "entries_custom_fields"=>[{"_id"=>"533a788987f6432c53000015", "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.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a788987f6432c53000016"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a788987f6432c53000014"]}} 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"=>"533a788987f6432c53000014", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3960ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a788987f6432c53000014"]}}} (0.4017ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a788987f6432c53000016", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a788987f6432c53000014", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a788987f6432c53000014", "content_type_id"=>"533a788987f6432c53000014", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a787f87f6432c5300000f", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:27:53 UTC, "created_at"=>2014-04-01 08:27:53 UTC}] flags=[] (0.1583ms) Started GET "/locomotive" for 127.0.0.1 at 2014-04-01 10:28:08 +0200 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} (6.6948ms) 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.5531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a786c87f6432c53000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4301ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (22.0ms) Completed 200 OK in 49.7ms (Views: 38.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-04-01 10:28:08 +0200 Compiled locomotive/not_logged_in.js (118ms) (pid 2703) Served asset /locomotive/not_logged_in.js - 200 OK (128ms) Started GET "/assets/locomotive/not_logged_in.css" for 127.0.0.1 at 2014-04-01 10:28:08 +0200 Compiled locomotive/blueprint/screen.css (0ms) (pid 2703) Compiled locomotive/font-awesome.css (233ms) (pid 2703) Compiled locomotive/not_logged_in/installation.css (1231ms) (pid 2703) Compiled locomotive/not_logged_in/layout.css (1080ms) (pid 2703) Compiled locomotive/not_logged_in.css (2566ms) (pid 2703) Served asset /locomotive/not_logged_in.css - 200 OK (2574ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-04-01 10:28:10 +0200 Served asset /locomotive/background/body.png - 200 OK (4ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-04-01 10:28:11 +0200 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.9201ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a786c87f6432c53000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6831ms) 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.1718ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a786c87f6432c53000001"} update={"$set"=>{"remember_created_at"=>2014-04-01 08:28:11 UTC, "updated_at"=>2014-04-01 08:28:11 UTC}} flags=[] (0.2129ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a786c87f6432c53000001"} update={"$set"=>{"last_sign_in_at"=>2014-04-01 08:28:11 UTC, "current_sign_in_at"=>2014-04-01 08:28:11 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-04-01 08:28:11 UTC}} flags=[] (0.2339ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 41.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-04-01 10:28:11 +0200 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.6442ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a786c87f6432c53000001"}, "$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_accounts selector={"_id"=>{"$in"=>["533a786c87f6432c53000001"]}} 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"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.1079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.3578ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.5913ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.3750ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a786e87f6432c53000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6599ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (24.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (2.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (3.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (9.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (48.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a786c87f6432c53000001", :role=>:admin}}}} (0.5860ms) Rendered locomotive/shared/_main_app_head.html.haml (1.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_head.html.haml (15.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533a786c87f6432c53000001"}} (0.5298ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a786c87f6432c53000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6902ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_site_picker.html.haml (4.5ms) 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 (8.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (35.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (1.4ms) Completed 200 OK in 143.7ms (Views: 125.8ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-04-01 10:28:11 +0200 Compiled select2/select2.js (2ms) (pid 2703) Compiled locomotive/ICanHandlebarz.js (0ms) (pid 2703) Compiled locomotive/backbone.modelbinding.js (0ms) (pid 2703) Compiled locomotive/backbone.sync.js (0ms) (pid 2703) Compiled locomotive/cmd.js (0ms) (pid 2703) Compiled locomotive/cookies.js (0ms) (pid 2703) Compiled locomotive/datepicker_i18n.js (7ms) (pid 2703) Compiled locomotive/editable_field.js (0ms) (pid 2703) Compiled locomotive/form_submit_notification.js (0ms) (pid 2703) Compiled locomotive/growl.js (0ms) (pid 2703) Compiled locomotive/handlebars.js (1ms) (pid 2703) Compiled locomotive/jquery-ui-timepicker-addon.js (2ms) (pid 2703) Compiled locomotive/liquid_mode.js (0ms) (pid 2703) Compiled locomotive/menu_toggler.js (0ms) (pid 2703) Compiled locomotive/resize.js (0ms) (pid 2703) Compiled locomotive/slugify.js (0ms) (pid 2703) Compiled locomotive/smartupdater.js (0ms) (pid 2703) Compiled locomotive/subscribe.js (0ms) (pid 2703) Compiled locomotive/tag-it.min.js (0ms) (pid 2703) Compiled locomotive/toggle.js (0ms) (pid 2703) Compiled locomotive/vendor.js (160ms) (pid 2703) Compiled locomotive/utils/aloha_settings.js (98ms) (pid 2703) Compiled locomotive/utils/core_ext.js (0ms) (pid 2703) Compiled locomotive/utils/growl.js (0ms) (pid 2703) Compiled locomotive/utils/handlebar_helpers.js (85ms) (pid 2703) Compiled locomotive/utils/tinymce_settings.js (149ms) (pid 2703) Compiled locomotive/models/account.js (116ms) (pid 2703) Compiled locomotive/models/content_asset.js (134ms) (pid 2703) Compiled locomotive/models/content_entry.js (170ms) (pid 2703) Compiled locomotive/models/content_type.js (130ms) (pid 2703) Compiled locomotive/models/custom_field.js (137ms) (pid 2703) Compiled locomotive/models/custom_field_select_option.js (97ms) (pid 2703) Compiled locomotive/models/domain.js (70ms) (pid 2703) Compiled locomotive/models/editable_element.js (111ms) (pid 2703) Compiled locomotive/models/membership.js (103ms) (pid 2703) Compiled locomotive/models/page.js (102ms) (pid 2703) Compiled locomotive/models/site.js (119ms) (pid 2703) Compiled locomotive/models/snippet.js (80ms) (pid 2703) Compiled locomotive/models/theme_asset.js (85ms) (pid 2703) Compiled locomotive/models/translation.js (80ms) (pid 2703) Compiled locomotive/views/application_view.js (192ms) (pid 2703) Compiled locomotive/views/content_assets/picker_item_view.js (120ms) (pid 2703) Compiled locomotive/views/shared/asset_picker_view.js (141ms) (pid 2703) Compiled locomotive/views/content_assets/picker_view.js (423ms) (pid 2703) Compiled locomotive/views/shared/form_view.js (205ms) (pid 2703) Compiled locomotive/views/content_entries/_form_view.js (486ms) (pid 2703) Compiled locomotive/views/content_entries/_popup_form_view.js (223ms) (pid 2703) Compiled locomotive/views/content_entries/edit_view.js (146ms) (pid 2703) Compiled locomotive/views/content_entries/index_view.js (157ms) (pid 2703) Compiled locomotive/views/content_entries/new_view.js (84ms) (pid 2703) Compiled locomotive/views/content_types/_form_view.js (167ms) (pid 2703) Compiled locomotive/views/content_types/custom_field_entry_view.js (156ms) (pid 2703) Compiled locomotive/views/content_types/custom_fields_view.js (138ms) (pid 2703) Compiled locomotive/views/content_types/edit_view.js (91ms) (pid 2703) Compiled locomotive/views/content_types/new_view.js (84ms) (pid 2703) Compiled locomotive/views/content_types/select_options_view.js (119ms) (pid 2703) Compiled locomotive/views/sites/domains_view.js (127ms) (pid 2703) Compiled locomotive/views/current_site/edit_view.js (268ms) (pid 2703) Compiled locomotive/views/editable_elements/control_view.js (87ms) (pid 2703) Compiled locomotive/views/editable_elements/edit_all_view.js (131ms) (pid 2703) Compiled locomotive/views/editable_elements/file_view.js (159ms) (pid 2703) Compiled locomotive/views/editable_elements/text_view.js (123ms) (pid 2703) Compiled locomotive/views/inline_editor/application_view.js (172ms) (pid 2703) Compiled locomotive/views/inline_editor/toolbar_view.js (189ms) (pid 2703) Compiled locomotive/views/my_account/edit_view.js (95ms) (pid 2703) Compiled locomotive/views/pages/_form_view.js (218ms) (pid 2703) Compiled locomotive/views/pages/edit_view.js (110ms) (pid 2703) Compiled locomotive/views/pages/index_view.js (86ms) (pid 2703) Compiled locomotive/views/pages/list_view.js (99ms) (pid 2703) Compiled locomotive/views/pages/new_view.js (79ms) (pid 2703) Compiled locomotive/views/shared/fields/_relationship_view.js (106ms) (pid 2703) Compiled locomotive/views/shared/fields/belongs_to_view.js (95ms) (pid 2703) Compiled locomotive/views/shared/fields/file_view.js (157ms) (pid 2703) Compiled locomotive/views/shared/fields/has_many_view.js (164ms) (pid 2703) Compiled locomotive/views/shared/fields/many_to_many_view.js (169ms) (pid 2703) Compiled locomotive/views/shared/fields/select_view.js (144ms) (pid 2703) Compiled locomotive/views/shared/list_item_view.js (84ms) (pid 2703) Compiled locomotive/views/shared/list_view.js (107ms) (pid 2703) Compiled locomotive/views/sites/domain_entry_view.js (89ms) (pid 2703) Compiled locomotive/views/sites/membership_entry_view.js (93ms) (pid 2703) Compiled locomotive/views/sites/memberships_view.js (101ms) (pid 2703) Compiled locomotive/views/sites/new_view.js (102ms) (pid 2703) Compiled locomotive/views/snippets/_form_view.js (118ms) (pid 2703) Compiled locomotive/views/snippets/edit_view.js (77ms) (pid 2703) Compiled locomotive/views/snippets/list_item_view.js (83ms) (pid 2703) Compiled locomotive/views/snippets/list_view.js (100ms) (pid 2703) Compiled locomotive/views/snippets/new_view.js (83ms) (pid 2703) Compiled locomotive/views/theme_assets/_form_view.js (151ms) (pid 2703) Compiled locomotive/views/theme_assets/edit_view.js (83ms) (pid 2703) Compiled locomotive/views/theme_assets/image_picker_view.js (107ms) (pid 2703) Compiled locomotive/views/theme_assets/index_view.js (151ms) (pid 2703) Compiled locomotive/views/theme_assets/list_item_view.js (75ms) (pid 2703) Compiled locomotive/views/theme_assets/list_view.js (83ms) (pid 2703) Compiled locomotive/views/theme_assets/new_view.js (91ms) (pid 2703) Compiled locomotive/views/translations/_form_view.js (88ms) (pid 2703) Compiled locomotive/views/translations/edit_view.js (76ms) (pid 2703) Compiled locomotive/views/translations/new_view.js (80ms) (pid 2703) Compiled locomotive/application.js (9628ms) (pid 2703) Compiled locomotive.js (9882ms) (pid 2703) Served asset /locomotive.js - 200 OK (9911ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-04-01 10:28:21 +0200 Compiled locomotive/jquery/ui.css (360ms) (pid 2703) Compiled locomotive/jquery.tagit.css (0ms) (pid 2703) Compiled select2/select2.css (274ms) (pid 2703) Compiled locomotive/toggle.css (448ms) (pid 2703) Compiled locomotive/liquid_mode.css (0ms) (pid 2703) Compiled locomotive/shared/_helpers.css (617ms) (pid 2703) Compiled locomotive/shared/_picker.css (1016ms) (pid 2703) Compiled locomotive/shared/common.css (594ms) (pid 2703) Compiled locomotive/shared/content_locale_picker.css (986ms) (pid 2703) Compiled locomotive/shared/growl.css (168ms) (pid 2703) Compiled locomotive/backoffice/_box.css (2018ms) (pid 2703) Compiled locomotive/backoffice/_buttons.css (601ms) (pid 2703) Compiled locomotive/backoffice/application.css (3129ms) (pid 2703) Compiled locomotive/backoffice/codemirror_changes.css (496ms) (pid 2703) Compiled locomotive/backoffice/content_assets.css (1266ms) (pid 2703) Compiled locomotive/backoffice/datepicker.css (506ms) (pid 2703) Compiled locomotive/backoffice/dialog_changes.css (1348ms) (pid 2703) Compiled locomotive/backoffice/editable_elements.css (2416ms) (pid 2703) Compiled locomotive/backoffice/formtastic_changes.css (1537ms) (pid 2703) Compiled locomotive/backoffice/layout.css (1308ms) (pid 2703) Compiled locomotive/backoffice/menu/sub.css (308ms) (pid 2703) WARNING: This version of the transform module has been deprecated and will be removed. on line 3 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/compass-0.12.4/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss from line 5 of /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/assets/stylesheets/locomotive/backoffice/menu/main.css.scss Compiled locomotive/backoffice/menu/main.css (229ms) (pid 2703) Compiled locomotive/backoffice/menu/default.css (175ms) (pid 2703) Compiled locomotive/backoffice/menu.css (729ms) (pid 2703) Compiled locomotive/backoffice/menu/_colors.css (159ms) (pid 2703) Compiled locomotive/backoffice/menu/_helpers.css (4ms) (pid 2703) Compiled locomotive/backoffice/pagination.css (961ms) (pid 2703) Compiled locomotive/backoffice/sites_picker.css (807ms) (pid 2703) Compiled locomotive/backoffice/tagit_changes.css (512ms) (pid 2703) Compiled locomotive.css (22424ms) (pid 2703) Served asset /locomotive.css - 200 OK (22438ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-04-01 10:28:43 +0200 Served asset /locomotive/search_bar.js - 200 OK (8ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-04-01 10:28:43 +0200 Served asset /locomotive/search_bar.css - 200 OK (4ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-04-01 10:28:43 +0200 Served asset /locomotive/list/item-left.png - 200 OK (4ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-04-01 10:28:43 +0200 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-04-01 10:28:43 +0200 Served asset /locomotive/nocoffee.png - 200 OK (3ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-04-01 10:28:43 +0200 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.9420ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a786c87f6432c53000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a786c87f6432c53000001"]}} flags=[:slave_ok] 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"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.0200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.1978ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.5190ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a786c87f6432c53000002"}, "$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.4461ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a786e87f6432c53000006"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7691ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (13.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a786c87f6432c53000001", :role=>:admin}}}} (0.6890ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_head.html.haml (5.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533a786c87f6432c53000001"}} (0.4637ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a786c87f6432c53000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5760ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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.9ms) Rendered locomotive/shared/_main_app_header.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (9.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 65.6ms (Views: 42.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-04-01 10:28:44 +0200 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 (2.0158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a786c87f6432c53000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a786c87f6432c53000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6168ms) Completed 200 OK in 725.1ms (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.7453ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (13.5260ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (10.9751ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (7.9250ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (7.6890ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (3.4039ms) 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 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.8349ms) 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.3991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a78be87f6432c53000017", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"caabba798438ca1380b16bdea9cd05997e84567b", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"GeBdcdiiKmx3K5hQgKGN", "api_key"=>"f2dc334ffe4d9b3deab60c1c9cb1ead827ecc899", "updated_at"=>2014-04-01 08:28:46 UTC, "created_at"=>2014-04-01 08:28:46 UTC}] flags=[] (0.1431ms) 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.7441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a78be87f6432c53000018", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:27:23 UTC, "updated_at"=>2014-04-01 08:28:46 UTC, "memberships"=>[{"_id"=>"533a78be87f6432c53000019", "role"=>"admin", "account_id"=>"533a78be87f6432c53000017"}]}] flags=[] (0.1602ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78be87f6432c53000018", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8409ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78be87f6432c53000018", "_id"=>{"$ne"=>"533a78be87f6432c5300001a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4582ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78be87f6432c5300001a", "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"=>"533a78be87f6432c53000018", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:46 UTC, "created_at"=>2014-04-01 08:28:46 UTC}] flags=[] (0.2022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78be87f6432c5300001a"]}}, "$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"=>"533a78be87f6432c5300001a"}, "$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"=>["533a78be87f6432c5300001a"]}} 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"=>"533a78be87f6432c53000018", "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"=>"533a78be87f6432c53000018", "_id"=>{"$ne"=>"533a78bf87f6432c5300001b"}, "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"=>"533a78be87f6432c53000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5469ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78bf87f6432c5300001b", "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"=>"533a78be87f6432c53000018", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:47 UTC, "created_at"=>2014-04-01 08:28:47 UTC}] flags=[] (0.2198ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78bf87f6432c5300001b"]}}, "$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"=>"533a78bf87f6432c5300001b"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3934ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78bf87f6432c5300001b"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1538ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a78be87f6432c53000018", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7622ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a78bf87f6432c5300001c", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a78be87f6432c53000018", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a78bf87f6432c5300001d", "updated_at"=>2014-04-01 08:28:47 UTC, "created_at"=>2014-04-01 08:28:47 UTC, "entries_custom_fields"=>[{"_id"=>"533a78bf87f6432c5300001d", "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.2191ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a78bf87f6432c5300001c"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a78bf87f6432c5300001e", "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", "updated_at"=>2014-04-01 08:28:47 UTC, "created_at"=>2014-04-01 08:28:47 UTC}}} flags=[] (0.3021ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a78bf87f6432c5300001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}} 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_content_entries selector={"content_type_id"=>"533a78bf87f6432c5300001c", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4408ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}}} (0.3593ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a78bf87f6432c5300001f", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a78bf87f6432c5300001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a78bf87f6432c5300001c", "content_type_id"=>"533a78bf87f6432c5300001c", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a78be87f6432c53000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:28:47 UTC, "created_at"=>2014-04-01 08:28:47 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a78c187f6432c53000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a78bf87f6432c5300001c", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5851ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}}} (0.4768ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}}} (0.3810ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.7811ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a78c187f6432c53000020", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a78bf87f6432c5300001c", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a78bf87f6432c5300001c", "content_type_id"=>"533a78bf87f6432c5300001c", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a78be87f6432c53000018", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:28:49 UTC, "created_at"=>2014-04-01 08:28:49 UTC}] flags=[] (0.2680ms) 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.7429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6127ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018", "_id"=>{"$ne"=>"533a78c187f6432c53000021"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533a78be87f6432c5300001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6411ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78c187f6432c53000021", "parent_ids"=>["533a78be87f6432c5300001a"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:49 UTC, "created_at"=>2014-04-01 08:28:49 UTC}] flags=[] (0.2258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78c187f6432c53000021"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a78c187f6432c53000021"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4091ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78c187f6432c53000021"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>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_pages selector={"site_id"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "$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"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018", "_id"=>{"$ne"=>"533a78c487f6432c53000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a78be87f6432c5300001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4590ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78c487f6432c53000022", "parent_ids"=>["533a78be87f6432c5300001a"], "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"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:52 UTC, "created_at"=>2014-04-01 08:28:52 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78c487f6432c53000022"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3092ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78c487f6432c53000022"}, "$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"=>["533a78c487f6432c53000022"]}} 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.6320ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "$or"=>[{"slug.en"=>"seems-findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018", "_id"=>{"$ne"=>"533a78c487f6432c53000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7050ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a78be87f6432c5300001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4609ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78c487f6432c53000023", "parent_ids"=>["533a78be87f6432c5300001a"], "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"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:52 UTC, "created_at"=>2014-04-01 08:28:52 UTC}] flags=[] (0.2251ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78c487f6432c53000023"]}}, "$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"=>"533a78c487f6432c53000023"}, "$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"=>["533a78c487f6432c53000023"]}} 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={"$query"=>{"slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6421ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018", "_id"=>{"$ne"=>"533a78c487f6432c53000024"}, "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"=>"533a78be87f6432c5300001a", "site_id"=>"533a78be87f6432c53000018"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a78be87f6432c5300001a"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4973ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78c487f6432c53000024", "parent_ids"=>["533a78be87f6432c5300001a"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a78be87f6432c53000018", "parent_id"=>"533a78be87f6432c5300001a", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:52 UTC, "created_at"=>2014-04-01 08:28:52 UTC}] flags=[] (0.2301ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78c487f6432c53000024"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3293ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78c487f6432c53000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78c487f6432c53000024"]}} 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"=>"533a78be87f6432c53000018", "slug.en"=>"index"}, "$orderby"=>{"position"=>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_sites selector={"$query"=>{"_id"=>"533a78be87f6432c53000018"}, "$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"=>"533a78be87f6432c5300001a"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:28:55 UTC}} flags=[] (0.1962ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "template_dependencies.en"=>{"$in"=>["533a78be87f6432c5300001a"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>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_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"=>"533a78c887f6432c53000025", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:27:23 UTC, "updated_at"=>2014-04-01 08:28:56 UTC, "memberships"=>[{"_id"=>"533a78c887f6432c53000026", "role"=>"admin", "account_id"=>"533a78be87f6432c53000017"}]}] flags=[] (0.2789ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78c887f6432c53000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78c887f6432c53000025", "_id"=>{"$ne"=>"533a78c887f6432c53000027"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5732ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78c887f6432c53000027", "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"=>"533a78c887f6432c53000025", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:56 UTC, "created_at"=>2014-04-01 08:28:56 UTC}] flags=[] (0.2141ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78c887f6432c53000025", "template_dependencies.en"=>{"$in"=>["533a78c887f6432c53000027"]}}, "$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"=>"533a78c887f6432c53000027"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78c887f6432c53000027"]}} 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"=>"533a78c887f6432c53000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6189ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78c887f6432c53000025", "_id"=>{"$ne"=>"533a78c987f6432c53000028"}, "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"=>nil, "site_id"=>"533a78c887f6432c53000025"}, "$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"=>"533a78c987f6432c53000028", "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"=>"533a78c887f6432c53000025", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:57 UTC, "created_at"=>2014-04-01 08:28:57 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78c887f6432c53000025", "template_dependencies.en"=>{"$in"=>["533a78c987f6432c53000028"]}}, "$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"=>"533a78c987f6432c53000028"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3626ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78c987f6432c53000028"]}} 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_pages selector={"site_id"=>"533a78c887f6432c53000025", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78c887f6432c53000025", "_id"=>{"$ne"=>"533a78c987f6432c53000029"}, "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"=>nil, "site_id"=>"533a78c887f6432c53000025"}, "$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.2549ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78c987f6432c53000029", "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"=>"533a78c887f6432c53000025", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:28:58 UTC, "created_at"=>2014-04-01 08:28:58 UTC}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78c887f6432c53000025", "template_dependencies.en"=>{"$in"=>["533a78c987f6432c53000029"]}}, "$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"=>"533a78c987f6432c53000029"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78c987f6432c53000029"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a78c887f6432c53000025", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5302ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a78cb87f6432c5300002a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a78c887f6432c53000025", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a78cb87f6432c5300002b", "updated_at"=>2014-04-01 08:28:59 UTC, "created_at"=>2014-04-01 08:28:59 UTC, "entries_custom_fields"=>[{"_id"=>"533a78cb87f6432c5300002b", "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.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a78cb87f6432c5300002c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78cb87f6432c5300002a"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5560ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a78cb87f6432c5300002a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4878ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78cb87f6432c5300002a"]}}} (0.5362ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a78cb87f6432c5300002c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a78cb87f6432c5300002a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a78cb87f6432c5300002a", "content_type_id"=>"533a78cb87f6432c5300002a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a78c887f6432c53000025", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:28:59 UTC, "created_at"=>2014-04-01 08:28:59 UTC}] flags=[] (0.2220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a78bf87f6432c5300001f"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}} flags=[:slave_ok] limit=0 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={"_id"=>{"$ne"=>"533a78c187f6432c53000020"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}} 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::ContentEntry533a78bf87f6432c5300001c"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1709ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a78bf87f6432c5300001c"} update={"$set"=>{"updated_at"=>2014-04-01 08:29:01 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.1192ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a78bf87f6432c5300001c"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1271ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:01 +0200 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.6199ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "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 9.3ms (Views: 4.1ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-04-01 10:29:01 +0200 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.6351ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "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.5691ms) Rendered text template (0.0ms) Completed 200 OK in 1396.5ms (Views: 0.6ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a78bf87f6432c5300001c"} 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_content_entries selector={"content_type_id"=>"533a78bf87f6432c5300001c", "updated_at"=>{"$lt"=>2014-04-01 08:29:01 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry533a78bf87f6432c5300001c"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7660ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533a78be87f6432c53000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533a78bf87f6432c5300001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4082ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"533a78bf87f6432c5300001f"} update={"$set"=>{"updated_at"=>2014-04-01 08:29:02 UTC}} flags=[] (0.1271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533a78be87f6432c53000018"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533a78bf87f6432c5300001c"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4690ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"533a78c187f6432c53000020"} update={"$set"=>{"updated_at"=>2014-04-01 08:29:03 UTC}} flags=[] (0.1490ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:08 +0200 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.7191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$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 5.6ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-04-01 10:29:08 +0200 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.5271ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78be87f6432c53000018", "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.5698ms) Rendered text template (0.0ms) Completed 200 OK in 5958.5ms (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.6971ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.4112ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4219ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2498ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.8209ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.0152ms) 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.4599ms) 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.9482ms) 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.4611ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a78da87f6432c5300002d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"10efe45ac00c1dc4bf9340368e0806723d0959f3", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"GZ4TsaBkdYmsxjbNwNaT", "api_key"=>"09d05f1758db507a1a42c74bc84cc37fdd64eee6", "updated_at"=>2014-04-01 08:29:14 UTC, "created_at"=>2014-04-01 08:29:14 UTC}] flags=[] (0.1509ms) 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.9553ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a78da87f6432c5300002e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:27:23 UTC, "updated_at"=>2014-04-01 08:29:14 UTC, "memberships"=>[{"_id"=>"533a78da87f6432c5300002f", "role"=>"admin", "account_id"=>"533a78da87f6432c5300002d"}]}] flags=[] (0.1621ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78da87f6432c5300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9882ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78da87f6432c5300002e", "_id"=>{"$ne"=>"533a78da87f6432c53000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5267ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78da87f6432c53000030", "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"=>"533a78da87f6432c5300002e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:14 UTC, "created_at"=>2014-04-01 08:29:14 UTC}] flags=[] (0.3359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78da87f6432c53000030"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>{"parent_id"=>"533a78da87f6432c53000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4401ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78da87f6432c53000030"]}} 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"=>"533a78da87f6432c5300002e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78da87f6432c5300002e", "_id"=>{"$ne"=>"533a78e087f6432c53000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78da87f6432c5300002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533a78e087f6432c53000031", "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"=>"533a78da87f6432c5300002e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:20 UTC, "created_at"=>2014-04-01 08:29:20 UTC}] flags=[] (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78e087f6432c53000031"]}}, "$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"=>"533a78e087f6432c53000031"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4330ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78e087f6432c53000031"]}} 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"=>"533a78da87f6432c5300002e", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8020ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a78e087f6432c53000032", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a78da87f6432c5300002e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a78e087f6432c53000033", "updated_at"=>2014-04-01 08:29:20 UTC, "created_at"=>2014-04-01 08:29:20 UTC, "entries_custom_fields"=>[{"_id"=>"533a78e087f6432c53000033", "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.2909ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a78e087f6432c53000032"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a78e087f6432c53000034", "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", "updated_at"=>2014-04-01 08:29:20 UTC, "created_at"=>2014-04-01 08:29:20 UTC}}} flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a78e087f6432c53000035"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78e087f6432c53000032"]}} 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_content_entries selector={"content_type_id"=>"533a78e087f6432c53000032", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6721ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78e087f6432c53000032"]}}} (0.4911ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a78e087f6432c53000035", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a78e087f6432c53000032", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a78e087f6432c53000032", "content_type_id"=>"533a78e087f6432c53000032", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a78da87f6432c5300002e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:20 UTC, "created_at"=>2014-04-01 08:29:20 UTC}] flags=[] (0.2761ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a78e187f6432c53000036"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78e087f6432c53000032"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5739ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a78e087f6432c53000032", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4020ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78e087f6432c53000032"]}}} (0.5152ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78e087f6432c53000032"]}}} (0.3750ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78e087f6432c53000032"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6030ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a78e187f6432c53000036", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a78e087f6432c53000032", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a78e087f6432c53000032", "content_type_id"=>"533a78e087f6432c53000032", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a78da87f6432c5300002e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:21 UTC, "created_at"=>2014-04-01 08:29:21 UTC}] flags=[] (0.2108ms) 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.7391ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "$or"=>[{"slug.en"=>"findable"}]} 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"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e", "_id"=>{"$ne"=>"533a78e287f6432c53000037"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5686ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a78da87f6432c53000030"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78e287f6432c53000037", "parent_ids"=>["533a78da87f6432c53000030"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:23 UTC, "created_at"=>2014-04-01 08:29:23 UTC}] flags=[] (0.2208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78e287f6432c53000037"]}}, "$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"=>"533a78e287f6432c53000037"}, "$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"=>["533a78e287f6432c53000037"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1090ms) 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.6669ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5240ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e", "_id"=>{"$ne"=>"533a78e587f6432c53000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8042ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a78da87f6432c53000030"}]}]}, "$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"=>"533a78e587f6432c53000038", "parent_ids"=>["533a78da87f6432c53000030"], "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"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:25 UTC, "created_at"=>2014-04-01 08:29:25 UTC}] flags=[] (0.2110ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78e587f6432c53000038"]}}, "$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"=>"533a78e587f6432c53000038"}, "$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"=>["533a78e587f6432c53000038"]}} 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={"$query"=>{"slug.en"=>"index"}, "$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={"site_id"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "$or"=>[{"slug.en"=>"seems-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"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e", "_id"=>{"$ne"=>"533a78e587f6432c53000039"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e"}, "$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"=>"533a78da87f6432c53000030"}]}]}, "$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"=>"533a78e587f6432c53000039", "parent_ids"=>["533a78da87f6432c53000030"], "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"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:25 UTC, "created_at"=>2014-04-01 08:29:25 UTC}] flags=[] (0.2079ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78e587f6432c53000039"]}}, "$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"=>"533a78e587f6432c53000039"}, "$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"=>["533a78e587f6432c53000039"]}} 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.5918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e", "_id"=>{"$ne"=>"533a78e587f6432c5300003a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a78da87f6432c53000030", "site_id"=>"533a78da87f6432c5300002e"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a78da87f6432c53000030"}]}]}, "$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"=>"533a78e587f6432c5300003a", "parent_ids"=>["533a78da87f6432c53000030"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a78da87f6432c5300002e", "parent_id"=>"533a78da87f6432c53000030", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:25 UTC, "created_at"=>2014-04-01 08:29:25 UTC}] flags=[] (0.2401ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78e587f6432c5300003a"]}}, "$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"=>"533a78e587f6432c5300003a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3722ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a78e587f6432c5300003a"]}} 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={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8242ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533a78da87f6432c5300002e"}, "$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"=>"533a78da87f6432c53000030"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:29:29 UTC}} flags=[] (0.1991ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "template_dependencies.en"=>{"$in"=>["533a78da87f6432c53000030"]}}, "$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_accounts selector={"$query"=>{"name"=>"Admin"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8624ms) 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.4678ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a78ea87f6432c5300003b", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:27:23 UTC, "updated_at"=>2014-04-01 08:29:30 UTC, "memberships"=>[{"_id"=>"533a78ea87f6432c5300003c", "role"=>"admin", "account_id"=>"533a78da87f6432c5300002d"}]}] flags=[] (0.1953ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78ea87f6432c5300003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5219ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78ea87f6432c5300003b", "_id"=>{"$ne"=>"533a78ea87f6432c5300003d"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>"533a78ea87f6432c5300003d", "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"=>"533a78ea87f6432c5300003b", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:30 UTC, "created_at"=>2014-04-01 08:29:30 UTC}] flags=[] (0.2971ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78ea87f6432c5300003b", "template_dependencies.en"=>{"$in"=>["533a78ea87f6432c5300003d"]}}, "$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"=>"533a78ea87f6432c5300003d"}, "$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"=>["533a78ea87f6432c5300003d"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1681ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78ea87f6432c5300003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78ea87f6432c5300003b", "_id"=>{"$ne"=>"533a78f087f6432c5300003e"}, "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"=>"533a78ea87f6432c5300003b"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533a78f087f6432c5300003e", "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"=>"533a78ea87f6432c5300003b", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:36 UTC, "created_at"=>2014-04-01 08:29:36 UTC}] flags=[] (0.2611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78ea87f6432c5300003b", "template_dependencies.en"=>{"$in"=>["533a78f087f6432c5300003e"]}}, "$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"=>"533a78f087f6432c5300003e"}, "$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"=>["533a78f087f6432c5300003e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1411ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a78ea87f6432c5300003b", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5057ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78ea87f6432c5300003b", "_id"=>{"$ne"=>"533a78f087f6432c5300003f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7091ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a78ea87f6432c5300003b"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2730ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a78f087f6432c5300003f", "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"=>"533a78ea87f6432c5300003b", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:36 UTC, "created_at"=>2014-04-01 08:29:36 UTC}] flags=[] (0.2658ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78ea87f6432c5300003b", "template_dependencies.en"=>{"$in"=>["533a78f087f6432c5300003f"]}}, "$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"=>"533a78f087f6432c5300003f"}, "$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"=>["533a78f087f6432c5300003f"]}} 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_content_types selector={"site_id"=>"533a78ea87f6432c5300003b", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4802ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a78f187f6432c53000040", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a78ea87f6432c5300003b", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a78f187f6432c53000041", "updated_at"=>2014-04-01 08:29:37 UTC, "created_at"=>2014-04-01 08:29:37 UTC, "entries_custom_fields"=>[{"_id"=>"533a78f187f6432c53000041", "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"=>"533a78f187f6432c53000042"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a78f187f6432c53000040"]}} 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"=>"533a78f187f6432c53000040", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4852ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a78f187f6432c53000040"]}}} (0.4170ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a78f187f6432c53000042", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a78f187f6432c53000040", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a78f187f6432c53000040", "content_type_id"=>"533a78f187f6432c53000040", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a78ea87f6432c5300003b", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:37 UTC, "created_at"=>2014-04-01 08:29:37 UTC}] flags=[] (0.2129ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:40 +0200 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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6170ms) Rendered text template (0.0ms) Completed 200 OK in 5.9ms (Views: 0.5ms) Started GET "/en/search?search=findable" for 127.0.0.1 at 2014-04-01 10:29:40 +0200 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.6428ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "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.5651ms) Rendered text template (0.0ms) Completed 200 OK in 1612.8ms (Views: 0.4ms) Started GET "/findable" for 127.0.0.1 at 2014-04-01 10:29:42 +0200 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.7579ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "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.6399ms) Rendered text template (0.0ms) Completed 200 OK in 4.8ms (Views: 0.4ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:42 +0200 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.5541ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7670ms) Rendered text template (0.0ms) Completed 200 OK in 4.4ms (Views: 0.4ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-04-01 10:29:42 +0200 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.6731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a78da87f6432c5300002e", "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.6001ms) Rendered text template (0.0ms) Completed 200 OK in 3031.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 (1.0049ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (2.8100ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (2.6298ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.3261ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.7644ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.2269ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (0.8550ms) 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.5112ms) 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.4628ms) 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.0980ms) 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.1032ms) 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 (27.1099ms) 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.4909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a790087f643e254000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"576a20344cd6fead69dd8ba190b598d01ee4050a", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"o3Ze6gJxu8CvRNEzKfmy", "api_key"=>"37d41216c612410c2b668dc1161f7545d432e4f5", "updated_at"=>2014-04-01 08:29:52 UTC, "created_at"=>2014-04-01 08:29:52 UTC}] flags=[] (0.2222ms) 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.7281ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790087f643e254000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:29:52 UTC, "updated_at"=>2014-04-01 08:29:52 UTC, "memberships"=>[{"_id"=>"533a790087f643e254000003", "role"=>"admin", "account_id"=>"533a790087f643e254000001"}]}] flags=[] (0.2432ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790087f643e254000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"533a790087f643e254000002", "_id"=>{"$ne"=>"533a790187f643e254000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"533a790187f643e254000004", "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"=>"533a790087f643e254000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.2162ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000004"}, "$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"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000004"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3350ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000004"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4380ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790187f643e254000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790087f643e254000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790087f643e254000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"533a790087f643e254000002", "_id"=>{"$ne"=>"533a790187f643e254000006"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790087f643e254000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533a790187f643e254000006", "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"=>"533a790087f643e254000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000006"]}}, "$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"=>"533a790187f643e254000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000006"]}} 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"=>"533a790087f643e254000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790187f643e254000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790087f643e254000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790187f643e254000008", "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC, "entries_custom_fields"=>[{"_id"=>"533a790187f643e254000008", "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.2580ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790187f643e254000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a790187f643e254000009", "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", "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}}} flags=[] (0.2348ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790187f643e25400000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e254000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8700ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790187f643e254000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4501ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e254000007"]}}} (0.3860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790187f643e25400000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790187f643e254000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790187f643e254000007", "content_type_id"=>"533a790187f643e254000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a790087f643e254000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.1729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790187f643e254000007", "original_id"=>"533a790187f643e25400000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7968ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790187f643e25400000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533a790087f643e254000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790187f643e254000007", "original_id"=>"533a790187f643e25400000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790187f643e25400000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e254000007"]}} 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"=>"533a790187f643e254000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4959ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e254000007"]}}} (0.3891ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e254000007"]}}} (0.3572ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e254000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790187f643e25400000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790187f643e254000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790187f643e254000007", "content_type_id"=>"533a790187f643e254000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a790087f643e254000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.1638ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790187f643e254000007", "original_id"=>"533a790187f643e25400000c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3452ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790187f643e25400000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533a790087f643e254000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790187f643e254000007", "original_id"=>"533a790187f643e25400000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.6433ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002", "_id"=>{"$ne"=>"533a790187f643e25400000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790187f643e254000004"}]}]}, "$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"=>"533a790187f643e25400000e", "parent_ids"=>["533a790187f643e254000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.1738ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e25400000e"]}}, "$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"=>"533a790187f643e25400000e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e25400000e"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e25400000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4289ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790187f643e25400000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533a790087f643e254000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e25400000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (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.5500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002", "_id"=>{"$ne"=>"533a790187f643e254000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790187f643e254000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7091ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790187f643e254000010", "parent_ids"=>["533a790187f643e254000004"], "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"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.3891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000010"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"533a790187f643e254000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000010"]}} 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.6151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "$or"=>[{"slug.en"=>"seems-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"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002", "_id"=>{"$ne"=>"533a790187f643e254000011"}, "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"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790187f643e254000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8359ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790187f643e254000011", "parent_ids"=>["533a790187f643e254000004"], "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"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.4611ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000011"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6559ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000011"]}} 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.6132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4961ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002", "_id"=>{"$ne"=>"533a790187f643e254000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000004", "site_id"=>"533a790087f643e254000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790187f643e254000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533a790187f643e254000012", "parent_ids"=>["533a790187f643e254000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a790087f643e254000002", "parent_id"=>"533a790187f643e254000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.2139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000012"]}}, "$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"=>"533a790187f643e254000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3321ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000012"]}} 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"=>"533a790187f643e254000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3190ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790187f643e254000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533a790087f643e254000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6561ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533a790087f643e254000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3972ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533a790187f643e254000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:29:53 UTC}} flags=[] (0.1490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000004"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5481ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790187f643e254000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533a790087f643e254000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1440ms) 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.5491ms) 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.3600ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790187f643e254000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:29:52 UTC, "updated_at"=>2014-04-01 08:29:53 UTC, "memberships"=>[{"_id"=>"533a790187f643e254000015", "role"=>"admin", "account_id"=>"533a790087f643e254000001"}]}] flags=[] (0.3321ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790187f643e254000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5040ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790187f643e254000014", "_id"=>{"$ne"=>"533a790187f643e254000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533a790187f643e254000016", "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"=>"533a790187f643e254000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.3450ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790187f643e254000014", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000016"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7641ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2210ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000016", "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"=>"533a790187f643e254000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790187f643e254000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790187f643e254000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"533a790187f643e254000014", "_id"=>{"$ne"=>"533a790187f643e254000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6993ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790187f643e254000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7370ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790187f643e254000018", "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"=>"533a790187f643e254000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.2599ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790187f643e254000014", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000018"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790187f643e254000018"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5708ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000018"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1264ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790187f643e254000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5028ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790187f643e254000014", "_id"=>{"$ne"=>"533a790187f643e254000019"}, "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"=>"533a790187f643e254000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4790ms) 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.2620ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790187f643e254000019", "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"=>"533a790187f643e254000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.2038ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790187f643e254000014", "template_dependencies.en"=>{"$in"=>["533a790187f643e254000019"]}}, "$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"=>"533a790187f643e254000019"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3960ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790187f643e254000019"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000019", "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"=>"533a790187f643e25400001a", "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=>"533a790187f643e254000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790187f643e254000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1869ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790187f643e254000014", "slug"=>"examples"} 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"=>"533a790187f643e25400001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790187f643e254000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790187f643e25400001c", "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC, "entries_custom_fields"=>[{"_id"=>"533a790187f643e25400001c", "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.1826ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790187f643e25400001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e25400001b"]}} 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"=>"533a790187f643e25400001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790187f643e25400001b"]}}} (0.5603ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790187f643e25400001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790187f643e25400001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790187f643e25400001b", "content_type_id"=>"533a790187f643e25400001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a790187f643e254000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:53 UTC, "created_at"=>2014-04-01 08:29:53 UTC}] flags=[] (0.2158ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790187f643e25400001b", "original_id"=>"533a790187f643e25400001d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790187f643e25400001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533a790187f643e254000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790187f643e25400001b", "original_id"=>"533a790187f643e25400001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1390ms) Started GET "/locomotive" for 127.0.0.1 at 2014-04-01 10:29:54 +0200 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} (2.7027ms) 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.4641ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a790087f643e254000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.8750ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (32.9ms) Completed 200 OK in 67.2ms (Views: 53.0ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-04-01 10:29:54 +0200 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-04-01 10:29:54 +0200 Served asset /locomotive/not_logged_in.css - 200 OK (18ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-04-01 10:29:54 +0200 Served asset /locomotive/background/body.png - 200 OK (3ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-04-01 10:29:54 +0200 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.8061ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a790087f643e254000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.0271ms) 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.6778ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a790087f643e254000001"} update={"$set"=>{"remember_created_at"=>2014-04-01 08:29:54 UTC, "updated_at"=>2014-04-01 08:29:54 UTC}} flags=[] (0.4013ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a790087f643e254000001"} update={"$set"=>{"last_sign_in_at"=>2014-04-01 08:29:54 UTC, "current_sign_in_at"=>2014-04-01 08:29: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-04-01 08:29:54 UTC}} flags=[] (0.1659ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 32.1ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-04-01 10:29:54 +0200 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.5848ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790087f643e254000001"}, "$orderby"=>{:_id=>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_accounts selector={"_id"=>{"$in"=>["533a790087f643e254000001"]}} flags=[:slave_ok] limit=0 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"=>{"site_id"=>"533a790087f643e254000002"}, "$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.4338ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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.6101ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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.0531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a790187f643e254000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7510ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (38.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (3.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (6.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (18.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (77.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_main_app_head_before_backbone.html.haml (2.4ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships"=>{"$elemMatch"=>{:account_id=>"533a790087f643e254000001", :role=>:admin}}}} (0.8287ms) Rendered locomotive/shared/_main_app_head.html.haml (4.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_head.html.haml (30.3ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533a790087f643e254000001"}} (0.6478ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a790087f643e254000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8090ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_site_picker.html.haml (7.6ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/views/locomotive/shared/_search_bar.html.haml (6.5ms) Rendered locomotive/shared/_main_app_header.html.haml (9.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (48.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (5.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (2.0ms) Completed 200 OK in 224.0ms (Views: 193.7ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive.js - 200 OK (225ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive.css - 200 OK (182ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive/search_bar.js - 200 OK (9ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive/search_bar.css - 200 OK (5ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive/list/item-left.png - 200 OK (3ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive/nocoffee.png - 200 OK (5ms) Started GET "/assets/locomotive/plugins/sites_picker_top_arrow.png" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 Served asset /locomotive/plugins/sites_picker_top_arrow.png - 200 OK (2ms) Started GET "/locomotive/pages" for 127.0.0.1 at 2014-04-01 10:29:55 +0200 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.1609ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790087f643e254000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4208ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a790087f643e254000001"]}} 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_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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.1508ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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.7509ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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.7651ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790087f643e254000002"}, "$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.6258ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a790187f643e254000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (1.3990ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (22.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (9.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (12.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (38.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a790087f643e254000001", :role=>:admin}}}} (0.5269ms) Rendered locomotive/shared/_main_app_head.html.haml (1.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_head.html.haml (6.9ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533a790087f643e254000001"}} (1.0240ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/global_actions/show.html.haml (0.9ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"533a790087f643e254000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.1139ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_site_picker.html.haml (3.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.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (15.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (0.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (0.6ms) Completed 200 OK in 97.4ms (Views: 69.5ms) Started GET "/locomotive/search.json?per_page=10&query=findable+" for 127.0.0.1 at 2014-04-01 10:29:56 +0200 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 (1.5249ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790087f643e254000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a790087f643e254000001"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5996ms) 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"=>"533a790087f643e254000002", "locale"=>"en"}} (0.6649ms) Completed 200 OK in 35.3ms (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.6931ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (12.6388ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (3.3479ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.6091ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.9951ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (2.1999ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (1.1649ms) 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 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.1202ms) 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.1912ms) 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.7602ms) 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.7999ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a790487f643e25400001f", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"f4a81eafe85f5e52e1b3dd24217be8828a7aa631", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"vuWPxEooBK88S5BSQcGu", "api_key"=>"02e1636563a7e5b0cd992cafcc4f404337e902fa", "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.2081ms) 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.6909ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790487f643e254000020", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:29:52 UTC, "updated_at"=>2014-04-01 08:29:56 UTC, "memberships"=>[{"_id"=>"533a790487f643e254000021", "role"=>"admin", "account_id"=>"533a790487f643e25400001f"}]}] flags=[] (0.1543ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790487f643e254000020", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.3180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790487f643e254000020", "_id"=>{"$ne"=>"533a790487f643e254000022"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.9148ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790487f643e254000022", "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"=>"533a790487f643e254000020", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.3073ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e254000022"]}}, "$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"=>"533a790487f643e254000022"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5052ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790487f643e254000022"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.4139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e254000022", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.9673ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790487f643e254000023", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790487f643e254000020", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e254000022", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.5410ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790487f643e254000020", "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"=>"533a790487f643e254000020", "_id"=>{"$ne"=>"533a790487f643e254000024"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8998ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790487f643e254000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.1868ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790487f643e254000024", "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"=>"533a790487f643e254000020", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.6139ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e254000024"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000024"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5980ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790487f643e254000024"]}} 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"=>"533a790487f643e254000020", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790487f643e254000025", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790487f643e254000020", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790487f643e254000026", "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC, "entries_custom_fields"=>[{"_id"=>"533a790487f643e254000026", "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.4900ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790487f643e254000025"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a790487f643e254000027", "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", "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}}} flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790487f643e254000028"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790487f643e254000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0970ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790487f643e254000025", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5770ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790487f643e254000025"]}}} (0.5267ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790487f643e254000028", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790487f643e254000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790487f643e254000025", "content_type_id"=>"533a790487f643e254000025", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a790487f643e254000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.4160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790487f643e254000025", "original_id"=>"533a790487f643e254000028", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790487f643e254000029", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533a790487f643e254000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790487f643e254000025", "original_id"=>"533a790487f643e254000028", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.3932ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790487f643e25400002a"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790487f643e254000025"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6337ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790487f643e254000025", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0290ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790487f643e254000025"]}}} (0.8249ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790487f643e254000025"]}}} (1.1659ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790487f643e254000025"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (1.2138ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790487f643e25400002a", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790487f643e254000025", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790487f643e254000025", "content_type_id"=>"533a790487f643e254000025", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a790487f643e254000020", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.4501ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790487f643e254000025", "original_id"=>"533a790487f643e25400002a", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533a790487f643e25400002b", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533a790487f643e254000020", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790487f643e254000025", "original_id"=>"533a790487f643e25400002a", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2611ms) 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.0676ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6931ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020", "_id"=>{"$ne"=>"533a790487f643e25400002c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790487f643e254000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7360ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790487f643e25400002c", "parent_ids"=>["533a790487f643e254000022"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.3467ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e25400002c"]}}, "$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"=>"533a790487f643e25400002c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5791ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790487f643e25400002c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2460ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e25400002c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6731ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790487f643e25400002d", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533a790487f643e254000020", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e25400002c", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2208ms) 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.8137ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "$or"=>[{"slug.en"=>"unpublished-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (1.0047ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020", "_id"=>{"$ne"=>"533a790487f643e25400002e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8152ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020"}, "$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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790487f643e254000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7927ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790487f643e25400002e", "parent_ids"=>["533a790487f643e254000022"], "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"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.3493ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e25400002e"]}}, "$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"=>"533a790487f643e25400002e"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7138ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790487f643e25400002e"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.3064ms) 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.8337ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9322ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020", "_id"=>{"$ne"=>"533a790487f643e25400002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.4500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.4870ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790487f643e254000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.5900ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790487f643e25400002f", "parent_ids"=>["533a790487f643e254000022"], "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"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:56 UTC, "created_at"=>2014-04-01 08:29:56 UTC}] flags=[] (0.3951ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e25400002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] 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"=>"533a790487f643e25400002f"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8242ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790487f643e25400002f"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2749ms) 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.6835ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.9408ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020", "_id"=>{"$ne"=>"533a790487f643e254000030"}, "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"=>"533a790487f643e254000022", "site_id"=>"533a790487f643e254000020"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6468ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790487f643e254000022"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6189ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790487f643e254000030", "parent_ids"=>["533a790487f643e254000022"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a790487f643e254000020", "parent_id"=>"533a790487f643e254000022", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2451ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e254000030"]}}, "$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"=>"533a790487f643e254000030"}, "$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"=>["533a790487f643e254000030"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e254000030", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3159ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000031", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533a790487f643e254000020", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e254000030", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"533a790487f643e254000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4838ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533a790487f643e254000022"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:29:57 UTC}} flags=[] (0.2108ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "template_dependencies.en"=>{"$in"=>["533a790487f643e254000022"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790487f643e254000022", "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 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790487f643e254000023"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533a790487f643e254000020", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} 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.5140ms) 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"=>"533a790587f643e254000032", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:29:52 UTC, "updated_at"=>2014-04-01 08:29:57 UTC, "memberships"=>[{"_id"=>"533a790587f643e254000033", "role"=>"admin", "account_id"=>"533a790487f643e25400001f"}]}] flags=[] (0.1364ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e254000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e254000032", "_id"=>{"$ne"=>"533a790587f643e254000034"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4327ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000034", "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"=>"533a790587f643e254000032", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1981ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e254000032", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000034"]}}, "$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"=>"533a790587f643e254000034"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3252ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e254000034"]}} 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"=>"533a790587f643e254000034", "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"=>"533a790587f643e254000035", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790587f643e254000032", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000034", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1528ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e254000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e254000032", "_id"=>{"$ne"=>"533a790587f643e254000036"}, "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"=>"533a790587f643e254000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4632ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000036", "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"=>"533a790587f643e254000032", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1838ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e254000032", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000036"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790587f643e254000036"}, "$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"=>["533a790587f643e254000036"]}} 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"=>"533a790587f643e254000032", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5109ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e254000032", "_id"=>{"$ne"=>"533a790587f643e254000037"}, "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"=>nil, "site_id"=>"533a790587f643e254000032"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6106ms) 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.3781ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000037", "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"=>"533a790587f643e254000032", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1957ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e254000032", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000037"]}}, "$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"=>"533a790587f643e254000037"}, "$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"=>["533a790587f643e254000037"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000037", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3200ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000038", "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=>"533a790587f643e254000032", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000037", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3400ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790587f643e254000032", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4737ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790587f643e254000039", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790587f643e254000032", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790587f643e25400003a", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC, "entries_custom_fields"=>[{"_id"=>"533a790587f643e25400003a", "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"=>"533a790587f643e25400003b"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000039"]}} 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"=>"533a790587f643e254000039", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6230ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000039"]}}} (0.5419ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790587f643e25400003b", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790587f643e254000039", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790587f643e254000039", "content_type_id"=>"533a790587f643e254000039", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a790587f643e254000032", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2770ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790587f643e254000039", "original_id"=>"533a790587f643e25400003b", "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"=>"533a790587f643e25400003c", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533a790587f643e254000032", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790587f643e254000039", "original_id"=>"533a790587f643e25400003b", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2022ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.6940ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7200ms) 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-04-01 10:29:57 +0200 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.9034ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "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.8051ms) 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"=>"533a790487f643e254000020", "locale"=>"en"}} (0.6490ms) Rendered text template (0.0ms) Completed 200 OK in 9.3ms (Views: 0.5ms) Started GET "/findable" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.6781ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "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.5970ms) Rendered text template (0.0ms) Completed 200 OK in 5.0ms (Views: 0.5ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.6399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8521ms) Rendered text template (0.0ms) Completed 200 OK in 6.3ms (Views: 0.7ms) Started GET "/en/search?search=not+found" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.7329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790487f643e254000020", "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.6211ms) 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"=>"533a790487f643e254000020", "locale"=>"en"}} (0.6630ms) Rendered text template (0.0ms) Completed 200 OK in 6.8ms (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.7620ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8149ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5691ms) 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.5140ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.4680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.3879ms) 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.3970ms) 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.1268ms) 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.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 (1.8861ms) 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.3471ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a790587f643e25400003d", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"9f4d04046e3989b9719684fe97a1718399b312dc", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"rBy4WCUxgTjWBXiK2sie", "api_key"=>"764269ae2202e0e3e791f4b5e59d6e6e7cdbc91b", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 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.3951ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790587f643e25400003e", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:29:52 UTC, "updated_at"=>2014-04-01 08:29:57 UTC, "memberships"=>[{"_id"=>"533a790587f643e25400003f", "role"=>"admin", "account_id"=>"533a790587f643e25400003d"}]}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e25400003e", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7112ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e25400003e", "_id"=>{"$ne"=>"533a790587f643e254000040"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.3850ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000040", "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"=>"533a790587f643e25400003e", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000040"]}}, "$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"=>"533a790587f643e254000040"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4461ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e254000040"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5441ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000041", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790587f643e25400003e", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000040", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e25400003e", "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"=>"533a790587f643e25400003e", "_id"=>{"$ne"=>"533a790587f643e254000042"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e25400003e"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4432ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000042", "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"=>"533a790587f643e25400003e", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1941ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000042"]}}, "$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"=>"533a790587f643e254000042"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4430ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e254000042"]}} 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_content_types selector={"site_id"=>"533a790587f643e25400003e", "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"=>"533a790587f643e254000043", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790587f643e25400003e", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790587f643e254000044", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC, "entries_custom_fields"=>[{"_id"=>"533a790587f643e254000044", "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.2010ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790587f643e254000043"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a790587f643e254000045", "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", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}}} flags=[] (0.1891ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790587f643e254000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4642ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790587f643e254000043", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}}} (0.4401ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790587f643e254000046", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790587f643e254000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "content_type_id"=>"533a790587f643e254000043", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a790587f643e25400003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "original_id"=>"533a790587f643e254000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4671ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000047", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533a790587f643e25400003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "original_id"=>"533a790587f643e254000046", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1950ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790587f643e254000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}} 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"=>"533a790587f643e254000043", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3510ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}}} (0.4179ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}}} (0.2940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.4721ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790587f643e254000048", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790587f643e254000043", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "content_type_id"=>"533a790587f643e254000043", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a790587f643e25400003e", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 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::ContentEntry533a790587f643e254000043", "original_id"=>"533a790587f643e254000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3493ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000049", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533a790587f643e25400003e", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "original_id"=>"533a790587f643e254000048", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.1333ms) 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"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "$or"=>[{"slug.en"=>"findable"}]} 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_pages selector={"$query"=>{"parent_id"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e", "_id"=>{"$ne"=>"533a790587f643e25400004a"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790587f643e254000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 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"=>"533a790587f643e25400004a", "parent_ids"=>["533a790587f643e254000040"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2182ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e25400004a"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790587f643e25400004a"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3531ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e25400004a"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e25400004a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3257ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e25400004b", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533a790587f643e25400003e", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e25400004a", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1760ms) 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.5851ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "$or"=>[{"slug.en"=>"unpublished-findable"}]} 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"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e", "_id"=>{"$ne"=>"533a790587f643e25400004c"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e"}, "$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"=>"533a790587f643e254000040"}]}]}, "$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"=>"533a790587f643e25400004c", "parent_ids"=>["533a790587f643e254000040"], "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"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2120ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e25400004c"]}}, "$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"=>"533a790587f643e25400004c"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3591ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e25400004c"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1211ms) 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"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4861ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e", "_id"=>{"$ne"=>"533a790587f643e25400004d"}, "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"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790587f643e254000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6657ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e25400004d", "parent_ids"=>["533a790587f643e254000040"], "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"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2041ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e25400004d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4044ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790587f643e25400004d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3891ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e25400004d"]}} 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.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "$or"=>[{"slug.en"=>"search"}]} 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"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e", "_id"=>{"$ne"=>"533a790587f643e25400004e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0664ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790587f643e254000040", "site_id"=>"533a790587f643e25400003e"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790587f643e254000040"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] 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"=>"533a790587f643e25400004e", "parent_ids"=>["533a790587f643e254000040"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a790587f643e25400003e", "parent_id"=>"533a790587f643e254000040", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2511ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e25400004e"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790587f643e25400004e"}, "$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"=>["533a790587f643e25400004e"]}} 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"=>"533a790587f643e25400004e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 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"=>"533a790587f643e25400004f", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533a790587f643e25400003e", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e25400004e", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.2203ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"533a790587f643e25400003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3800ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533a790587f643e254000040"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:29:57 UTC}} flags=[] (0.1709ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000040"]}}, "$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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000040", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7079ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790587f643e254000041"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533a790587f643e25400003e", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1502ms) 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.3161ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790587f643e254000050", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:29:52 UTC, "updated_at"=>2014-04-01 08:29:57 UTC, "memberships"=>[{"_id"=>"533a790587f643e254000051", "role"=>"admin", "account_id"=>"533a790587f643e25400003d"}]}] flags=[] (0.1328ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e254000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>"533a790587f643e254000050", "_id"=>{"$ne"=>"533a790587f643e254000052"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5021ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000052", "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"=>"533a790587f643e254000050", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e254000050", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000052"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3059ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790587f643e254000052"}, "$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"=>["533a790587f643e254000052"]}} 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"=>"533a790587f643e254000052", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000053", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790587f643e254000050", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000052", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2823ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790587f643e254000050", "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"=>"533a790587f643e254000050", "_id"=>{"$ne"=>"533a790587f643e254000054"}, "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"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e254000050"}, "$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"=>"533a790587f643e254000054", "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"=>"533a790587f643e254000050", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.2151ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e254000050", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000054"]}}, "$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"=>"533a790587f643e254000054"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3378ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e254000054"]}} 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={"site_id"=>"533a790587f643e254000050", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5419ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e254000050", "_id"=>{"$ne"=>"533a790587f643e254000055"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 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"=>{"parent_id"=>nil, "site_id"=>"533a790587f643e254000050"}, "$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"=>{"_id"=>{"$in"=>[]}}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.2780ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790587f643e254000055", "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"=>"533a790587f643e254000050", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1967ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e254000050", "template_dependencies.en"=>{"$in"=>["533a790587f643e254000055"]}}, "$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"=>"533a790587f643e254000055"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3941ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790587f643e254000055"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000055", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3130ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790587f643e254000056", "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=>"533a790587f643e254000050", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790587f643e254000055", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.2179ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790587f643e254000050", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4089ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790587f643e254000057", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790587f643e254000050", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790587f643e254000058", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC, "entries_custom_fields"=>[{"_id"=>"533a790587f643e254000058", "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.2232ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790587f643e254000059"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000057"]}} flags=[:slave_ok] limit=0 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={"content_type_id"=>"533a790587f643e254000057", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4592ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000057"]}}} (0.4108ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790587f643e254000059", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790587f643e254000057", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790587f643e254000057", "content_type_id"=>"533a790587f643e254000057", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a790587f643e254000050", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:29:57 UTC, "created_at"=>2014-04-01 08:29:57 UTC}] flags=[] (0.1590ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790587f643e254000057", "original_id"=>"533a790587f643e254000059", "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"=>"533a790587f643e25400005a", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533a790587f643e254000050", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790587f643e254000057", "original_id"=>"533a790587f643e254000059", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1779ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790587f643e254000046"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}} 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"=>"533a790587f643e254000048"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5643ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}} update={"$set"=>{"_label_field_name"=>"name"}} flags=[:multi] (0.1450ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790587f643e254000043"} update={"$set"=>{"updated_at"=>2014-04-01 08:29:57 UTC, "entries_custom_fields_version"=>1, "entries_custom_fields.1.searchable"=>true}} flags=[] (0.0958ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790587f643e254000043"} update={"$set"=>{"custom_fields_recipe.rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "custom_fields_recipe.version"=>1}, "$unset"=>{}, "$rename"=>{}} flags={:multi=>true} (0.1259ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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"=>"533a790587f643e25400003e", "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 5.0ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.5648ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "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.6771ms) 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"=>"533a790587f643e25400003e", "locale"=>"en"}} (0.5131ms) Rendered text template (0.0ms) Completed 200 OK in 5.3ms (Views: 0.4ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790587f643e254000043"} 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"=>"533a790587f643e254000043", "updated_at"=>{"$lt"=>2014-04-01 08:29:57 UTC}, "_type"=>{"$in"=>["Locomotive::ContentEntry533a790587f643e254000043"]}} 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_sites selector={"$query"=>{"_id"=>"533a790587f643e25400003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4361ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533a790587f643e254000043"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4499ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"533a790587f643e254000046"} update={"$set"=>{"updated_at"=>2014-04-01 08:29:57 UTC}} flags=[] (0.1180ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "original_id"=>"533a790587f643e254000046", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5202ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790587f643e254000047"} update={"$set"=>{"stored"=>{"name"=>"Findable entry", "stuff"=>"Some stuff", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533a790587f643e25400003e", :content_type_slug=>"examples"}, "content"=>["Findable entry", "Some stuff"]}} flags=[] (0.2019ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533a790587f643e25400003e"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3889ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"_id"=>"533a790587f643e254000043"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4220ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>"533a790587f643e254000048"} update={"$set"=>{"updated_at"=>2014-04-01 08:29:57 UTC}} flags=[] (0.1583ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790587f643e254000043", "original_id"=>"533a790587f643e254000048", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5581ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790587f643e254000049"} update={"$set"=>{"stored"=>{"name"=>"Hidden", "stuff"=>"Not findable", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533a790587f643e25400003e", :content_type_slug=>"examples"}, "content"=>["Hidden", "Not findable"]}} flags=[] (0.1390ms) Started GET "/" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.6049ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "depth"=>0, "fullpath.en"=>{"$in"=>["index"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5231ms) Rendered text template (0.0ms) Completed 200 OK in 4.6ms (Views: 0.5ms) Started GET "/en/search?search=stuff" for 127.0.0.1 at 2014-04-01 10:29:57 +0200 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.6111ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790587f643e25400003e", "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.6409ms) 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"=>"533a790587f643e25400003e", "locale"=>"en"}} (0.4957ms) 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.6118ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.8790ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5949ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5589ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4930ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.5319ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.5119ms) MOPED: 127.0.0.1:27017 COMMAND database=admin command={:ismaster=>1} (1.6880ms) 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.5891ms) 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.5951ms) 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.1683ms) 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.1521ms) 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.8519ms) 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.4649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a790c87f64328a0000001", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"deba0069376abd49e52c3fdc2a4ce2f21b8f3780", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"hzssYKrWc4sbEbu3cKQ5", "api_key"=>"e276b81e2e78b59c75e98bc1a0432d43dce60cd5", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.1431ms) 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.7391ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790c87f64328a0000002", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:30:04 UTC, "updated_at"=>2014-04-01 08:30:04 UTC, "memberships"=>[{"_id"=>"533a790c87f64328a0000003", "role"=>"admin", "account_id"=>"533a790c87f64328a0000001"}]}] flags=[] (0.1740ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790c87f64328a0000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.8690ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790c87f64328a0000002", "_id"=>{"$ne"=>"533a790c87f64328a0000004"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5860ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000004", "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"=>"533a790c87f64328a0000002", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.3529ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000004"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4389ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000004"]}}, "$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"=>["533a790c87f64328a0000004"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1359ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790c87f64328a0000005", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790c87f64328a0000002", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000004", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790c87f64328a0000002", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"533a790c87f64328a0000002", "_id"=>{"$ne"=>"533a790c87f64328a0000006"}, "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"=>"533a790c87f64328a0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000006", "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"=>"533a790c87f64328a0000002", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.1671ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000006"]}}, "$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=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000006"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3839ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790c87f64328a0000006"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.2329ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790c87f64328a0000002", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4501ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790c87f64328a0000007", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790c87f64328a0000002", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790c87f64328a0000008", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC, "entries_custom_fields"=>[{"_id"=>"533a790c87f64328a0000008", "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.2241ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790c87f64328a0000007"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a790c87f64328a0000009", "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", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}}} flags=[] (0.1862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790c87f64328a000000a"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a0000007"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8440ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790c87f64328a0000007", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4730ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a0000007"]}}} (0.4508ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790c87f64328a000000a", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790c87f64328a0000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790c87f64328a0000007", "content_type_id"=>"533a790c87f64328a0000007", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a790c87f64328a0000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.1678ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790c87f64328a0000007", "original_id"=>"533a790c87f64328a000000a", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4358ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790c87f64328a000000b", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533a790c87f64328a0000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790c87f64328a0000007", "original_id"=>"533a790c87f64328a000000a", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.1802ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790c87f64328a000000c"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a0000007"]}} 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"=>"533a790c87f64328a0000007", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4830ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a0000007"]}}} (0.4129ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a0000007"]}}} (0.3321ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a0000007"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.5040ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790c87f64328a000000c", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790c87f64328a0000007", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790c87f64328a0000007", "content_type_id"=>"533a790c87f64328a0000007", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a790c87f64328a0000002", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2069ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790c87f64328a0000007", "original_id"=>"533a790c87f64328a000000c", "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"=>"533a790c87f64328a000000d", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533a790c87f64328a0000002", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790c87f64328a0000007", "original_id"=>"533a790c87f64328a000000c", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] flags=[] (0.2842ms) 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"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5300ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002", "_id"=>{"$ne"=>"533a790c87f64328a000000e"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] 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"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790c87f64328a0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5918ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a000000e", "parent_ids"=>["533a790c87f64328a0000004"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2270ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a000000e"]}}, "$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"=>"533a790c87f64328a000000e"}, "$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"=>["533a790c87f64328a000000e"]}} 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"=>"533a790c87f64328a000000e", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.2921ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790c87f64328a000000f", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533a790c87f64328a0000002", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a000000e", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.1848ms) 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"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "$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"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002", "_id"=>{"$ne"=>"533a790c87f64328a0000010"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6652ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002"}, "$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"=>"533a790c87f64328a0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4859ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000010", "parent_ids"=>["533a790c87f64328a0000004"], "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"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000010"]}}, "$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"=>"533a790c87f64328a0000010"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3588ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790c87f64328a0000010"]}} 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.7911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "$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"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002", "_id"=>{"$ne"=>"533a790c87f64328a0000011"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.0281ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790c87f64328a0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5877ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000011", "parent_ids"=>["533a790c87f64328a0000004"], "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"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2751ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000011"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000011"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.0147ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790c87f64328a0000011"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1431ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "$or"=>[{"slug.en"=>"search"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002", "_id"=>{"$ne"=>"533a790c87f64328a0000012"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.3880ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000004", "site_id"=>"533a790c87f64328a0000002"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6363ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790c87f64328a0000004"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.9520ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000012", "parent_ids"=>["533a790c87f64328a0000004"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a790c87f64328a0000002", "parent_id"=>"533a790c87f64328a0000004", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2477ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000012"]}}, "$orderby"=>{"position"=>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_pages selector={"$query"=>{"parent_id"=>"533a790c87f64328a0000012"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3462ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790c87f64328a0000012"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1066ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000012", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4201ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790c87f64328a0000013", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533a790c87f64328a0000002", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000012", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.6027ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "slug.en"=>"index"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.9629ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"$query"=>{"_id"=>"533a790c87f64328a0000002"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4179ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533a790c87f64328a0000004"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:30:04 UTC}} flags=[] (0.1752ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000004"]}}, "$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"=>"533a790c87f64328a0000004", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.7241ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790c87f64328a0000005"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533a790c87f64328a0000002", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.3681ms) 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.6893ms) 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.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790c87f64328a0000014", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:30:04 UTC, "updated_at"=>2014-04-01 08:30:04 UTC, "memberships"=>[{"_id"=>"533a790c87f64328a0000015", "role"=>"admin", "account_id"=>"533a790c87f64328a0000001"}]}] flags=[] (0.1500ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790c87f64328a0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5462ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790c87f64328a0000014", "_id"=>{"$ne"=>"533a790c87f64328a0000016"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.5991ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000016", "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"=>"533a790c87f64328a0000014", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.8161ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000014", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000016"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 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"=>{"parent_id"=>"533a790c87f64328a0000016"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4489ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790c87f64328a0000016"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1097ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000016", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3724ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790c87f64328a0000017", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790c87f64328a0000014", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000016", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.2918ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790c87f64328a0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6502ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790c87f64328a0000014", "_id"=>{"$ne"=>"533a790c87f64328a0000018"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.5221ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790c87f64328a0000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533a790c87f64328a0000018", "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"=>"533a790c87f64328a0000014", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2282ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000014", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000018"]}}, "$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"=>"533a790c87f64328a0000018"}, "$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"=>["533a790c87f64328a0000018"]}} 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"=>"533a790c87f64328a0000014", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.6952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790c87f64328a0000014", "_id"=>{"$ne"=>"533a790c87f64328a0000019"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (2.0490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790c87f64328a0000014"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (1.6909ms) 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.4079ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790c87f64328a0000019", "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"=>"533a790c87f64328a0000014", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.2260ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000014", "template_dependencies.en"=>{"$in"=>["533a790c87f64328a0000019"]}}, "$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"=>"533a790c87f64328a0000019"}, "$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"=>["533a790c87f64328a0000019"]}} 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"=>"533a790c87f64328a0000019", "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"=>"533a790c87f64328a000001a", "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=>"533a790c87f64328a0000014", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790c87f64328a0000019", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.3192ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790c87f64328a0000014", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.7682ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790c87f64328a000001b", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790c87f64328a0000014", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790c87f64328a000001c", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC, "entries_custom_fields"=>[{"_id"=>"533a790c87f64328a000001c", "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.1938ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790c87f64328a000001d"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a000001b"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (1.3068ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"content_type_id"=>"533a790c87f64328a000001b", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5450ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790c87f64328a000001b"]}}} (0.4480ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790c87f64328a000001d", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790c87f64328a000001b", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790c87f64328a000001b", "content_type_id"=>"533a790c87f64328a000001b", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a790c87f64328a0000014", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:30:04 UTC, "created_at"=>2014-04-01 08:30:04 UTC}] flags=[] (0.1979ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790c87f64328a000001b", "original_id"=>"533a790c87f64328a000001d", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533a790c87f64328a000001e", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533a790c87f64328a0000014", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790c87f64328a000001b", "original_id"=>"533a790c87f64328a000001d", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.2623ms) Started GET "/locomotive" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 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.8240ms) 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.4952ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a790c87f64328a0000001"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5460ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (17.5ms) Completed 200 OK in 36.2ms (Views: 30.3ms) Started GET "/assets/locomotive/not_logged_in.js" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 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-04-01 10:30:06 +0200 Served asset /locomotive/not_logged_in.css - 200 OK (11ms) Started GET "/assets/locomotive/background/body.png" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 Served asset /locomotive/background/body.png - 200 OK (1ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 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.5810ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a790c87f64328a0000001"]}}, "$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.5541ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a790c87f64328a0000001"} update={"$set"=>{"remember_created_at"=>2014-04-01 08:30:06 UTC, "updated_at"=>2014-04-01 08:30:06 UTC}} flags=[] (0.1459ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a790c87f64328a0000001"} update={"$set"=>{"last_sign_in_at"=>2014-04-01 08:30:06 UTC, "current_sign_in_at"=>2014-04-01 08:30: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-04-01 08:30:06 UTC}} flags=[] (0.2100ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 20.7ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790c87f64328a0000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3247ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a790c87f64328a0000001"]}} 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_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002"}, "$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.3628ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002"}, "$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.4520ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002"}, "$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.6819ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002"}, "$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.4487ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a790c87f64328a0000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.8750ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (26.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (2.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (4.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (11.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (49.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a790c87f64328a0000001", :role=>:admin}}}} (0.6201ms) Rendered locomotive/shared/_main_app_head.html.haml (2.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_head.html.haml (14.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533a790c87f64328a0000001"}} (0.6242ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a790c87f64328a0000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5782ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_site_picker.html.haml (3.9ms) 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.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (32.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (2.9ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (1.7ms) Completed 200 OK in 137.0ms (Views: 119.8ms) Started GET "/assets/locomotive.css" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 Served asset /locomotive.css - 200 OK (44ms) Started GET "/assets/locomotive.js" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 Served asset /locomotive.js - 200 OK (205ms) Started GET "/assets/locomotive/search_bar.css" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 Served asset /locomotive/search_bar.css - 200 OK (3ms) Started GET "/assets/locomotive/search_bar.js" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 Served asset /locomotive/search_bar.js - 200 OK (5ms) Started GET "/assets/locomotive/list/item-left.png" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 Served asset /locomotive/list/item-left.png - 200 OK (1ms) Started GET "/assets/locomotive/nocoffee.png" for 127.0.0.1 at 2014-04-01 10:30:06 +0200 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-04-01 10:30:06 +0200 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-04-01 10:30:06 +0200 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.6831ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790c87f64328a0000001"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3569ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a790c87f64328a0000001"]}} 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"=>"533a790c87f64328a0000002"}, "$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.3862ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002"}, "$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.5429ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790c87f64328a0000002"}, "$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.4399ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a790c87f64328a0000007"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7582ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (15.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790c87f64328a0000002"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.8550ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (4.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/custom_fields/_select_templates.html.haml (3.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/custom_fields/_form.html.haml (66.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790c87f64328a0000002", "entries_custom_fields.type"=>{"$in"=>["belongs_to", "many_to_many"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4702ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/content_types/_form.html.haml (90.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_form_actions.html.haml (3.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/content_types/new.html.haml within /locomotive/layouts/application (118.2ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a790c87f64328a0000001", :role=>:admin}}}} (0.6118ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a790c87f64328a0000001"}} (0.5839ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/global_actions/show.html.haml (1.0ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_sites selector={"memberships.account_id"=>"533a790c87f64328a0000001"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6227ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (9.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 155.6ms (Views: 142.6ms) Started GET "/assets/locomotive/form/input-sep.png" for 127.0.0.1 at 2014-04-01 10:30:07 +0200 Served asset /locomotive/form/input-sep.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.7052ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (2.2600ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (1.1680ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (1.4901ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (1.2653ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.6940ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.7119ms) 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 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.1202ms) 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 (1.1921ms) 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.3903ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_accounts documents=[{"_id"=>"533a790f87f64328a0000020", "email"=>"admin@locomotiveapp.org", "encrypted_password"=>"753581efbe672f44886b9c835c2d8f4efc212e26", "sign_in_count"=>0, "locale"=>"en", "name"=>"Admin", "password_salt"=>"dBW7CUNzLrvyNoLpkXyz", "api_key"=>"502de7961118fd5af890b104138ca77a41ac49a7", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.1209ms) 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.7980ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790f87f64328a0000021", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test.example.com"], "name"=>"Locomotive test website", "subdomain"=>"test", "created_at"=>2014-04-01 08:30:04 UTC, "updated_at"=>2014-04-01 08:30:07 UTC, "memberships"=>[{"_id"=>"533a790f87f64328a0000022", "role"=>"admin", "account_id"=>"533a790f87f64328a0000020"}]}] flags=[] (0.2000ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5667ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790f87f64328a0000021", "_id"=>{"$ne"=>"533a790f87f64328a0000023"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.4673ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790f87f64328a0000023", "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"=>"533a790f87f64328a0000021", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.2801ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000023"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3958ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790f87f64328a0000023"]}} 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=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a0000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4048ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a0000024", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790f87f64328a0000021", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a0000023", "locale"=>"en", "language"=>"english", "content"=>["Home page", "Content of the home page"]}] flags=[] (0.1612ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000021", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} 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"=>nil, "site_id"=>"533a790f87f64328a0000021", "_id"=>{"$ne"=>"533a790f87f64328a0000025"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6289ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790f87f64328a0000021"}, "$orderby"=>{"position"=>-1}} flags=[:slave_ok] limit=-1 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"=>"533a790f87f64328a0000025", "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"=>"533a790f87f64328a0000021", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.2470ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000025"]}}, "$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_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000025"}, "$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"=>["533a790f87f64328a0000025"]}} 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"=>"533a790f87f64328a0000021", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5171ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790f87f64328a0000026", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790f87f64328a0000021", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790f87f64328a0000027", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC, "entries_custom_fields"=>[{"_id"=>"533a790f87f64328a0000027", "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.2370ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_content_types selector={"_id"=>"533a790f87f64328a0000026"} update={"$push"=>{"entries_custom_fields"=>{"_id"=>"533a790f87f64328a0000028", "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", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}}} flags=[] (0.1960ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790f87f64328a0000029"}, "_slug.en"=>"findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a0000026"]}} 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_entries selector={"content_type_id"=>"533a790f87f64328a0000026", "$or"=>[{"_slug.en"=>"findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5980ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a0000026"]}}} (0.4339ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790f87f64328a0000029", "_position"=>0, "_visible"=>true, "name"=>"Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790f87f64328a0000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790f87f64328a0000026", "content_type_id"=>"533a790f87f64328a0000026", "_slug"=>{"en"=>"findable-entry"}, "site_id"=>"533a790f87f64328a0000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 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::ContentEntry533a790f87f64328a0000026", "original_id"=>"533a790f87f64328a0000029", "locale"=>"en"}, "$orderby"=>{:_id=>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=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a000002a", "stored"=>{"name"=>"Findable entry", :search_type=>"Examples", :label=>"Findable entry", :_slug=>"findable-entry", :site_id=>"533a790f87f64328a0000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790f87f64328a0000026", "original_id"=>"533a790f87f64328a0000029", "locale"=>"en", "language"=>"english", "content"=>["Findable entry"]}] flags=[] (0.2518ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790f87f64328a000002b"}, "_slug.en"=>"hidden", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a0000026"]}} 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"=>"533a790f87f64328a0000026", "$or"=>[{"_slug.en"=>"hidden"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3510ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a0000026"]}}} (0.4070ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a0000026"]}}} (0.3119ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:aggregate=>"locomotive_content_entries", :pipeline=>[{"$match"=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a0000026"]}, "_position"=>{"$nin"=>[nil]}}}, {"$group"=>{"_id"=>"_position", "count"=>{"$sum"=>1}, "max"=>{"$max"=>"$_position"}, "min"=>{"$min"=>"$_position"}, "sum"=>{"$sum"=>"$_position"}, "avg"=>{"$avg"=>"$_position"}}}]} (0.6647ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790f87f64328a000002b", "_position"=>1, "_visible"=>true, "name"=>"Hidden", "stuff"=>"Not findable", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790f87f64328a0000026", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}, {"name"=>"stuff", "type"=>"text", "required"=>false, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790f87f64328a0000026", "content_type_id"=>"533a790f87f64328a0000026", "_slug"=>{"en"=>"hidden"}, "site_id"=>"533a790f87f64328a0000021", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 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::ContentEntry533a790f87f64328a0000026", "original_id"=>"533a790f87f64328a000002b", "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 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a000002c", "stored"=>{"name"=>"Hidden", :search_type=>"Examples", :label=>"Hidden", :_slug=>"hidden", :site_id=>"533a790f87f64328a0000021", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790f87f64328a0000026", "original_id"=>"533a790f87f64328a000002b", "locale"=>"en", "language"=>"english", "content"=>["Hidden"]}] 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.5701ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "$or"=>[{"slug.en"=>"findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021", "_id"=>{"$ne"=>"533a790f87f64328a000002d"}, "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"=>"533a790f87f64328a0000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.7939ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790f87f64328a000002d", "parent_ids"=>["533a790f87f64328a0000023"], "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"}, "title"=>{"en"=>"Please search for this findable page"}, "slug"=>{"en"=>"findable"}, "site_id"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>0, "fullpath"=>{"en"=>"findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.3531ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a000002d"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3879ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a000002d"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3970ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790f87f64328a000002d"]}} 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"=>"533a790f87f64328a000002d", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3090ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a000002e", "stored"=>{:title=>"Please search for this findable page", :searchable_content=>"This is what you were looking for", :search_type=>"page", :label=>"Please search for this findable page", :site_id=>"533a790f87f64328a0000021", :fullpath=>"findable"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a000002d", "locale"=>"en", "language"=>"english", "content"=>["Please search for this findable page", "This is what you were looking for"]}] flags=[] (0.2067ms) 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.5929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "$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"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021", "_id"=>{"$ne"=>"533a790f87f64328a000002f"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.6471ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021"}, "$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"=>"533a790f87f64328a0000023"}]}]}, "$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"=>"533a790f87f64328a000002f", "parent_ids"=>["533a790f87f64328a0000023"], "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"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>1, "fullpath"=>{"en"=>"unpublished-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.2551ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a000002f"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4001ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a000002f"}, "$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"=>["533a790f87f64328a000002f"]}} 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.6809ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "$or"=>[{"slug.en"=>"seems-findable"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5662ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021", "_id"=>{"$ne"=>"533a790f87f64328a0000030"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.8330ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021"}, "$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={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790f87f64328a0000023"}]}]}, "$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"=>"533a790f87f64328a0000030", "parent_ids"=>["533a790f87f64328a0000023"], "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"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>2, "fullpath"=>{"en"=>"seems-findable"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.2620ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000030"]}}, "$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"=>"533a790f87f64328a0000030"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4852ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790f87f64328a0000030"]}} update={"$set"=>{"templatized"=>false, "templatized_from_parent"=>false, "target_klass_name"=>nil}} flags={:multi=>true} (0.1037ms) 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) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "$or"=>[{"slug.en"=>"search"}]} 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_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021", "_id"=>{"$ne"=>"533a790f87f64328a0000031"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (1.1890ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000023", "site_id"=>"533a790f87f64328a0000021"}, "$orderby"=>{"position"=>-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_pages selector={"$query"=>{"$and"=>[{"$or"=>[{"_id"=>"533a790f87f64328a0000023"}]}]}, "$orderby"=>{"depth"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6299ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790f87f64328a0000031", "parent_ids"=>["533a790f87f64328a0000023"], "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"=>" * Search results:\n \n"}, "title"=>{"en"=>"search"}, "slug"=>{"en"=>"search"}, "site_id"=>"533a790f87f64328a0000021", "parent_id"=>"533a790f87f64328a0000023", "serialized_template"=>{"en"=>#}, "target_klass_name"=>nil, "position"=>3, "fullpath"=>{"en"=>"search"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.3052ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000031"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4818ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000031"}, "$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"=>["533a790f87f64328a0000031"]}} 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"=>"533a790f87f64328a0000031", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3111ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a0000032", "stored"=>{:title=>"search", :searchable_content=>" * Search results:\n \n \n \n", :search_type=>"page", :label=>"search", :site_id=>"533a790f87f64328a0000021", :fullpath=>"search"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a0000031", "locale"=>"en", "language"=>"english", "content"=>["search", " * Search results:\n \n \n \n"]}] flags=[] (0.1659ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "slug.en"=>"index"}, "$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_sites selector={"$query"=>{"_id"=>"533a790f87f64328a0000021"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3629ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"_id"=>"533a790f87f64328a0000023"} update={"$set"=>{"raw_template"=>{"en"=>"\n
\n \n \n \n
"}, "serialized_template"=>{"en"=>#}, "updated_at"=>2014-04-01 08:30:07 UTC}} flags=[] (0.1788ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000023"]}}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4132ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a0000023", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.6049ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=active_search_mongoid_indices selector={"_id"=>"533a790f87f64328a0000024"} update={"$set"=>{"stored"=>{:title=>"Home page", :searchable_content=>"\n \n Search\n \n \n ", :search_type=>"page", :label=>"Home page", :site_id=>"533a790f87f64328a0000021", :fullpath=>"index"}, "content"=>["Home page", "\n \n Search\n \n \n "]}} flags=[] (0.1450ms) 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.6001ms) 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.3211ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_sites documents=[{"_id"=>"533a790f87f64328a0000033", "locales"=>["en"], "timezone_name"=>"UTC", "domains"=>["test2.example.com"], "name"=>"Locomotive test website #2", "subdomain"=>"test2", "created_at"=>2014-04-01 08:30:04 UTC, "updated_at"=>2014-04-01 08:30:07 UTC, "memberships"=>[{"_id"=>"533a790f87f64328a0000034", "role"=>"admin", "account_id"=>"533a790f87f64328a0000020"}]}] flags=[] (0.1731ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"site_id"=>"533a790f87f64328a0000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"index"}]} 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"=>nil, "site_id"=>"533a790f87f64328a0000033", "_id"=>{"$ne"=>"533a790f87f64328a0000035"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} 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_pages documents=[{"_id"=>"533a790f87f64328a0000035", "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"=>"533a790f87f64328a0000033", "slug"=>{"en"=>"index"}, "title"=>{"en"=>"Home page"}, "serialized_template"=>{"en"=>#}, "position"=>0, "fullpath"=>{"en"=>"index"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.2911ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000033", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000035"]}}, "$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"=>"533a790f87f64328a0000035"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.3798ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790f87f64328a0000035"]}} 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"=>"533a790f87f64328a0000035", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.3068ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a0000036", "stored"=>{:title=>"Home page", :searchable_content=>"Content of the home page", :search_type=>"page", :label=>"Home page", :site_id=>"533a790f87f64328a0000033", :fullpath=>"index"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a0000035", "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"=>"533a790f87f64328a0000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"404"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.5200ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790f87f64328a0000033", "_id"=>{"$ne"=>"533a790f87f64328a0000037"}, "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"=>"533a790f87f64328a0000033"}, "$orderby"=>{"position"=>-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=locomotive_pages documents=[{"_id"=>"533a790f87f64328a0000037", "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"=>"533a790f87f64328a0000033", "slug"=>{"en"=>"404"}, "title"=>{"en"=>"Page not found"}, "serialized_template"=>{"en"=>#}, "position"=>1, "fullpath"=>{"en"=>"404"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.6490ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000033", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000037"]}}, "$orderby"=>{"position"=>1}} 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_pages selector={"$query"=>{"parent_id"=>"533a790f87f64328a0000037"}, "$orderby"=>{"position"=>1}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5939ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_pages selector={"parent_ids"=>{"$in"=>["533a790f87f64328a0000037"]}} 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"=>"533a790f87f64328a0000033", "parent_id"=>nil, "$or"=>[{"slug.en"=>"rickroll"}]} 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"=>"533a790f87f64328a0000033", "_id"=>{"$ne"=>"533a790f87f64328a0000038"}, "position"=>{"$ne"=>nil}}, "$orderby"=>{"position"=>1}} flags=[] limit=0 skip=0 batch_size=nil fields=nil (0.7482ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"parent_id"=>nil, "site_id"=>"533a790f87f64328a0000033"}, "$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.2649ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_pages documents=[{"_id"=>"533a790f87f64328a0000038", "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"=>"533a790f87f64328a0000033", "serialized_template"=>{"en"=>#}, "position"=>2, "fullpath"=>{"en"=>"rickroll"}, "locales"=>[:en], "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.2191ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000033", "template_dependencies.en"=>{"$in"=>["533a790f87f64328a0000038"]}}, "$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"=>"533a790f87f64328a0000038"}, "$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"=>["533a790f87f64328a0000038"]}} 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"=>"533a790f87f64328a0000038", "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"=>"533a790f87f64328a0000039", "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=>"533a790f87f64328a0000033", :fullpath=>"rickroll"}, "original_type"=>"Locomotive::Page", "original_id"=>"533a790f87f64328a0000038", "locale"=>"en", "language"=>"english", "content"=>["This should never show up in the search, even if it would be findable", "Rickroll"]}] flags=[] (0.1841ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790f87f64328a0000033", "slug"=>"examples"} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.4208ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_types documents=[{"_id"=>"533a790f87f64328a000003a", "order_direction"=>"asc", "entries_custom_fields_version"=>0, "public_submission_enabled"=>false, "name"=>"Examples", "description"=>"The list of my projects", "site_id"=>"533a790f87f64328a0000033", "serialized_item_template"=>#, "slug"=>"examples", "order_by"=>"created_at", "label_field_name"=>"name", "label_field_id"=>"533a790f87f64328a000003b", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC, "entries_custom_fields"=>[{"_id"=>"533a790f87f64328a000003b", "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.2439ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"_id"=>{"$ne"=>"533a790f87f64328a000003c"}, "_slug.en"=>"not-findable-entry", "_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a000003a"]}} 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_content_entries selector={"content_type_id"=>"533a790f87f64328a000003a", "$or"=>[{"_slug.en"=>"not-findable-entry"}]} flags=[] limit=1 skip=0 batch_size=nil fields={:_id=>1} (0.3970ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_content_entries", :query=>{"_type"=>{"$in"=>["Locomotive::ContentEntry533a790f87f64328a000003a"]}}} (0.4621ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=locomotive_content_entries documents=[{"_id"=>"533a790f87f64328a000003c", "_position"=>0, "_visible"=>true, "name"=>"NOT Findable entry", "stuff"=>"Some stuff", "custom_fields_recipe"=>{"name"=>"ContentEntry533a790f87f64328a000003a", "rules"=>[{"name"=>"name", "type"=>"string", "required"=>true, "unique"=>false, "localized"=>false}], "version"=>0, "model_name"=>"Locomotive::ContentEntry"}, "_type"=>"Locomotive::ContentEntry533a790f87f64328a000003a", "content_type_id"=>"533a790f87f64328a000003a", "_slug"=>{"en"=>"not-findable-entry"}, "site_id"=>"533a790f87f64328a0000033", "_translated"=>{"en"=>true}, "_label_field_name"=>"name", "updated_at"=>2014-04-01 08:30:07 UTC, "created_at"=>2014-04-01 08:30:07 UTC}] flags=[] (0.3002ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=active_search_mongoid_indices selector={"$query"=>{"original_type"=>"Locomotive::ContentEntry533a790f87f64328a000003a", "original_id"=>"533a790f87f64328a000003c", "locale"=>"en"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4749ms) MOPED: 127.0.0.1:27017 INSERT database=locomotive_search_test collection=active_search_mongoid_indices documents=[{"_id"=>"533a790f87f64328a000003d", "stored"=>{"name"=>"NOT Findable entry", :search_type=>"Examples", :label=>"NOT Findable entry", :_slug=>"not-findable-entry", :site_id=>"533a790f87f64328a0000033", :content_type_slug=>"examples"}, "original_type"=>"Locomotive::ContentEntry533a790f87f64328a000003a", "original_id"=>"533a790f87f64328a000003c", "locale"=>"en", "language"=>"english", "content"=>["NOT Findable entry"]}] flags=[] (0.1638ms) Started GET "/locomotive" for 127.0.0.1 at 2014-04-01 10:30:07 +0200 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.5729ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a790f87f64328a0000020"]}}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4561ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/sessions/new.html.haml within /locomotive/layouts/not_logged_in (4.8ms) Completed 200 OK in 9.5ms (Views: 6.4ms) Started POST "/locomotive/sign_in" for 127.0.0.1 at 2014-04-01 10:30:07 +0200 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.7689ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>{"$in"=>["533a790f87f64328a0000020"]}}, "$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={"$query"=>{"email"=>"admin@locomotiveapp.org"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.5093ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a790f87f64328a0000020"} update={"$set"=>{"remember_created_at"=>2014-04-01 08:30:07 UTC, "updated_at"=>2014-04-01 08:30:07 UTC}} flags=[] (0.1340ms) MOPED: 127.0.0.1:27017 UPDATE database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>"533a790f87f64328a0000020"} update={"$set"=>{"last_sign_in_at"=>2014-04-01 08:30:07 UTC, "current_sign_in_at"=>2014-04-01 08:30:07 UTC, "last_sign_in_ip"=>"127.0.0.1", "current_sign_in_ip"=>"127.0.0.1", "sign_in_count"=>1, "updated_at"=>2014-04-01 08:30:07 UTC}} flags=[] (0.1938ms) Redirected to http://test.example.com:7171/locomotive/pages Completed 302 Found in 10.0ms Started GET "/locomotive/pages" for 127.0.0.1 at 2014-04-01 10:30:07 +0200 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.7498ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790f87f64328a0000020"}, "$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"=>["533a790f87f64328a0000020"]}} 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_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.0939ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.1160ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.7071ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.3929ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a790f87f64328a0000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.6828ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (13.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (4.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_page.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/index.html.haml within /locomotive/layouts/application (22.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a790f87f64328a0000020", :role=>:admin}}}} (0.5839ms) Rendered locomotive/shared/_main_app_head.html.haml (0.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a790f87f64328a0000020"}} (0.5059ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a790f87f64328a0000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5629ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_site_picker.html.haml (2.0ms) 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.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (8.6ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (0.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (0.2ms) Completed 200 OK in 57.1ms (Views: 40.4ms) Started GET "/locomotive/pages/new" for 127.0.0.1 at 2014-04-01 10:30:07 +0200 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.8469ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"$query"=>{"_id"=>"533a790f87f64328a0000020"}, "$orderby"=>{:_id=>1}} flags=[:slave_ok] limit=-1 skip=0 batch_size=nil fields=nil (0.4022ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_accounts selector={"_id"=>{"$in"=>["533a790f87f64328a0000020"]}} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.4771ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.2290ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.5581ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.3920ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_entries selector={"$query"=>{"content_type_id"=>"533a790f87f64328a0000026"}, "$orderby"=>{"updated_at"=>-1}} flags=[:slave_ok] limit=5 skip=0 batch_size=nil fields=nil (0.7398ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/menu/_contents.html.haml (12.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/actions/_contents.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/content_assets/_picker.html.haml (7.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/theme_assets/_picker.html.haml (4.5ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_editable_elements.html.haml (5.7ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_pages selector={"$query"=>{"site_id"=>"533a790f87f64328a0000021"}, "$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.6649ms) MOPED: 127.0.0.1:27017 QUERY database=locomotive_search_test collection=locomotive_content_types selector={"site_id"=>"533a790f87f64328a0000021"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.6931ms) Rendered /Users/didier/Documents/LocomotiveCMS/gems/search/app/cells/locomotive/partials/searchable.html.haml (3.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/_form.html.haml (97.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_form_actions.html.haml (0.3ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/pages/new.html.haml within /locomotive/layouts/application (119.1ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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=>"533a790f87f64328a0000020", :role=>:admin}}}} (0.7949ms) Rendered locomotive/shared/_main_app_head.html.haml (0.7ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_head.html.haml (5.6ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:count=>"locomotive_sites", :query=>{"memberships.account_id"=>"533a790f87f64328a0000020"}} (0.4489ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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"=>"533a790f87f64328a0000020"} flags=[:slave_ok] limit=0 skip=0 batch_size=nil fields=nil (0.5190ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/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.8ms) Rendered locomotive/shared/_main_app_header.html.haml (1.0ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_header.html.haml (6.8ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/cells/locomotive/main_menu/show.html.haml (0.4ms) Rendered /Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/bundler/gems/engine-89566d497862/app/views/locomotive/shared/_footer.html.haml (0.3ms) Completed 200 OK in 154.4ms (Views: 139.1ms) Started GET "/assets/locomotive/jquery/images/ui-icons_222222_256x240.png" for 127.0.0.1 at 2014-04-01 10:30:08 +0200 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.6399ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"active_search_mongoid_indices"} (0.7622ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_accounts"} (0.5288ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_sites"} (0.5379ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_pages"} (0.4411ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_types"} (0.3872ms) MOPED: 127.0.0.1:27017 COMMAND database=locomotive_search_test command={:drop=>"locomotive_content_entries"} (0.4909ms)