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)